index 25a6812504e8642a3c6e2546d07b0d58eaaf0163..75e5509d7b92e5f6d4f8f556e4da86072f580502 100644 (file)
--- a/src/main/iblinitspinor.c
+++ b/src/main/iblinitspinor.c
/* Read the SPI mapping information from the nor flash */
for (;;) {
- if (hwSpiRead (IBL_CFG_SPI_MAP_TABLE_DATA_ADDR, /* The address on the flash of the data mapping */
- sizeof(iblBootMap_t), /* The number of bytes to read */
- (UINT8 *)&map) /* Where to store the data */
+ if (hwSpiRead ((IBL_CFG_SPI_MAP_TABLE_DATA_ADDR_MSW << 16) | /* The address on the flash of the data mapping */
+ IBL_CFG_SPI_MAP_TABLE_DATA_ADDR_LSW,
+ sizeof(iblBootMap_t), /* The number of bytes to read */
+ (UINT8 *)&map) /* Where to store the data */
== 0) {