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@xxxxxxxxxxxxxx> --- 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 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox