Patchwork [U-Boot,1/2] mpc83xx: Fix comments on map_flash_by_law1

login
register
mail settings
Submitter Gao Ya'nan
Date April 11, 2010, 12:08 a.m.
Message ID <1270944532-2050-1-git-send-email-abutter.gao@gmail.com>
Download mbox | patch
Permalink /patch/71751/
State Changes Requested
Delegated to: Kim Phillips
Headers show

Comments

Gao Ya'nan - April 11, 2010, 12:08 a.m.
---
 cpu/mpc83xx/start.S |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

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