From: Wenyou Yang Date: Fri, 24 Mar 2017 03:34:05 +0000 (+0800) Subject: ARM: spl: atmel: move mem_init() advance in SPL init. X-Git-Tag: v2017.05-rc2~8^2~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5bede73c6c2478f2da9be64ee3a0d13d4b20f893;p=oweals%2Fu-boot.git ARM: spl: atmel: move mem_init() advance in SPL init. Because the MMC SPL puts the bbs section in the ddr memory, move calling mem_init() before calling spl_init(). Signed-off-by: Wenyou Yang --- diff --git a/arch/arm/mach-at91/spl_atmel.c b/arch/arm/mach-at91/spl_atmel.c index 847a30b9a9..b75c2ccefd 100644 --- a/arch/arm/mach-at91/spl_atmel.c +++ b/arch/arm/mach-at91/spl_atmel.c @@ -101,6 +101,8 @@ void board_init_f(ulong dummy) board_early_init_f(); + mem_init(); + ret = spl_init(); if (ret) { debug("spl_init() failed: %d\n", ret); @@ -109,5 +111,4 @@ void board_init_f(ulong dummy) preloader_console_init(); - mem_init(); }