--- cpu/mpc83xx/start.S | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpu/mpc83xx/start.S b/cpu/mpc83xx/start.S index 68bb620..d7b03a9 100644 --- a/cpu/mpc83xx/start.S +++ b/cpu/mpc83xx/start.S @@ -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 -- 1.7.0 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot