@@ -1156,7 +1156,7 @@ map_flash_by_law1:
ori r4, r4, (CONFIG_SYS_FLASH_BASE)@l
stw r4, LBLAWBAR1(r3) /* LBLAWBAR1 <= CONFIG_SYS_FLASH_BASE */
- /* Store 0x80000012 + log2(CONFIG_SYS_FLASH_SIZE) into LBLAWAR1 */
+ /* Store 0x80000012 + log2(CONFIG_SYS_FLASH_SIZE) + 1 into LBLAWAR1 */
lis r4, (0x80000012)@h
ori r4, r4, (0x80000012)@l
li r5, CONFIG_SYS_FLASH_SIZE
@@ -1164,7 +1164,7 @@ map_flash_by_law1:
addi r4, r4, 1
bne 1b
- stw r4, LBLAWAR1(r3) /* LBLAWAR1 <= 8MB Flash Size */
+ stw r4, LBLAWAR1(r3) /* LBLAWAR1 <= Flash Size */
blr
/* Though all the LBIU Local Access Windows and LBC Banks will be