All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] Fix comments for map_flash_by_law1
@ 2010-04-09 11:06 Gao Ya'nan
  2010-04-09 11:06 ` [U-Boot] [PATCH 2/2] {ACR,SPCR,SCCR}_XXX have left-shifted values Gao Ya'nan
  2010-04-14  1:59 ` [U-Boot] [PATCH 1/2] Fix comments for map_flash_by_law1 Kim Phillips
  0 siblings, 2 replies; 4+ messages in thread
From: Gao Ya'nan @ 2010-04-09 11:06 UTC (permalink / raw)
  To: u-boot

---
 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-15 22:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-09 11:06 [U-Boot] [PATCH 1/2] Fix comments for map_flash_by_law1 Gao Ya'nan
2010-04-09 11:06 ` [U-Boot] [PATCH 2/2] {ACR,SPCR,SCCR}_XXX have left-shifted values Gao Ya'nan
2010-04-14  1:59 ` [U-Boot] [PATCH 1/2] Fix comments for map_flash_by_law1 Kim Phillips
2010-04-15 22:26   ` Kim Phillips

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.