Changeset 6 for trunk/tools/bootloader_tsar/boot_hba_driver.c
- Timestamp:
- Apr 26, 2017, 2:14:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/bootloader_tsar/boot_hba_driver.c
r1 r6 7 7 8 8 #include <boot_config.h> 9 #include <hard_config.h> 9 10 #include <boot_hba_driver.h> 10 11 #include <boot_mmc_driver.h> … … 15 16 #endif 16 17 17 #ifndef IO_CXY 18 # error "The IO_CXY value should be defined in the 'boot_config.h' file" 18 #ifndef Y_IO 19 # error "The Y_IO value should be defined in the 'hard_config.h' file" 20 #endif 21 22 #ifndef X_IO 23 # error "The X_IO value should be defined in the 'hard_config.h' file" 24 #endif 25 26 #ifndef Y_WIDTH 27 # error "The Y_WIDTH value should be defined in the 'hard_config.h' file" 19 28 #endif 20 29 … … 47 56 static uint32_t boot_hba_get_register(uint32_t reg) 48 57 { 49 cxy_t cxy = IO_CXY;58 cxy_t cxy = (X_IO << Y_WIDTH) + Y_IO; 50 59 uint32_t * ptr = (uint32_t *)SEG_IOC_BASE + reg; 51 60 … … 61 70 void boot_hba_set_register(uint32_t reg, uint32_t val) 62 71 { 63 cxy_t cxy = IO_CXY;72 cxy_t cxy = (X_IO << Y_WIDTH) + Y_IO; 64 73 uint32_t * ptr = (uint32_t *)SEG_IOC_BASE + reg; 65 74
Note: See TracChangeset
for help on using the changeset viewer.