[PATCH 1/4] ARM Ka-Ro TX25: fix running in SDRAM test

Sascha Hauer s.hauer at pengutronix.de
Thu Jan 17 04:37:41 EST 2013


The end of SDRAM is at 0x9fffffff, not at 0x8fffffff. This fixes starting
barebox when it is located in the second SDRAM bank.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/arm/boards/karo-tx25/lowlevel.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boards/karo-tx25/lowlevel.c b/arch/arm/boards/karo-tx25/lowlevel.c
index 9c5cc5c..d0afad2 100644
--- a/arch/arm/boards/karo-tx25/lowlevel.c
+++ b/arch/arm/boards/karo-tx25/lowlevel.c
@@ -130,7 +130,7 @@ void __bare_init __naked reset(void)
 
 	/* Skip SDRAM initialization if we run from RAM */
 	r = get_pc();
-	if (r > 0x80000000 && r < 0x90000000)
+	if (r > 0x80000000 && r < 0xa0000000)
 		board_init_lowlevel_return();
 
 	/* set to 3.3v SDRAM */
-- 
1.7.10.4




More information about the barebox mailing list