public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] mpc83xx: Make it boot again
@ 2010-11-04 14:45 Joakim Tjernlund
  2010-11-04 16:47 ` Wood Scott-B07421
  2010-11-12 15:58 ` Kumar Gala
  0 siblings, 2 replies; 30+ messages in thread
From: Joakim Tjernlund @ 2010-11-04 14:45 UTC (permalink / raw)
  To: u-boot

After the removal of COLD/WARM start flags my mpc8321
board didn't boot anymore.
Trial and error suggests that map_flash_by_law1 needs
an isync(padding with 4 nop's also did the trick)
after updating LBLAWAR1 to make sure the the change has
reached the HW before continuing with the code that depends on it.
Add an isync to remap_flash_by_law0 for good measure too.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
---
 arch/powerpc/cpu/mpc83xx/start.S |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/cpu/mpc83xx/start.S b/arch/powerpc/cpu/mpc83xx/start.S
index e8b1ebc..d3ec580 100644
--- a/arch/powerpc/cpu/mpc83xx/start.S
+++ b/arch/powerpc/cpu/mpc83xx/start.S
@@ -1191,6 +1191,7 @@ map_flash_by_law1:
 	bne 1b
 
 	stw r4, LBLAWAR1(r3) /* LBLAWAR1 <= 8MB Flash Size */
+	isync /* Wait for HW to catch up */
 	blr
 
 	/* Though all the LBIU Local Access Windows and LBC Banks will be
@@ -1229,5 +1230,6 @@ remap_flash_by_law0:
 	xor r4, r4, r4
 	stw r4, LBLAWBAR1(r3)
 	stw r4, LBLAWAR1(r3) /* Off LBIU LAW1 */
+	isync /* Wait for HW to catch up */
 	blr
 #endif /* CONFIG_SYS_FLASHBOOT */
-- 
1.7.2.2

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

end of thread, other threads:[~2010-11-17 21:00 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-04 14:45 [U-Boot] [PATCH] mpc83xx: Make it boot again Joakim Tjernlund
2010-11-04 16:47 ` Wood Scott-B07421
2010-11-04 16:57   ` Timur Tabi
2010-11-04 19:49     ` Wood Scott-B07421
2010-11-05  8:24       ` Andre Schwarz
2010-11-10 12:46       ` Joakim Tjernlund
2010-11-12 15:43         ` Joakim Tjernlund
2010-11-04 17:02   ` Joakim Tjernlund
2010-11-12 15:58   ` Kumar Gala
2010-11-12 17:22     ` Scott Wood
2010-11-12 19:26       ` Kumar Gala
2010-11-12 19:31         ` Scott Wood
2010-11-15  9:57           ` Andre Schwarz
2010-11-15 10:13             ` Joakim Tjernlund
2010-11-15 14:40               ` Liu Dave-R63238
2010-11-15 15:05                 ` Andre Schwarz
2010-11-15 16:43                   ` Liu Dave-R63238
2010-11-15 17:30                     ` Joakim Tjernlund
2010-11-15 18:37                       ` Scott Wood
2010-11-15 23:49                         ` Liu Dave-R63238
2010-11-17 16:57                     ` Joakim Tjernlund
2010-11-17 17:02                       ` Liu Dave-R63238
2010-11-17 17:05                       ` Scott Wood
     [not found]                         ` <OFEC1AFE7E. <20101117130325.6069bede@udp111988uds.am.freescale.net>
2010-11-17 17:26                         ` Joakim Tjernlund
2010-11-17 19:03                           ` Scott Wood
2010-11-17 19:15                             ` Joakim Tjernlund
2010-11-17 19:27                               ` Scott Wood
2010-11-17 21:00                                 ` Joakim Tjernlund
2010-11-12 15:58 ` Kumar Gala
2010-11-12 16:36   ` Joakim Tjernlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox