diff mbox

[U-Boot,v2,3/4] ARM: spl: atmel: move mem_init() advance in SPL init.

Message ID 20170324033406.16457-4-wenyou.yang@atmel.com
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Wenyou Yang March 24, 2017, 3:34 a.m. UTC
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 <wenyou.yang@atmel.com>
---

Changes in v2: None

 arch/arm/mach-at91/spl_atmel.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Simon Glass April 13, 2017, 9:17 p.m. UTC | #1
On 23 March 2017 at 21:34, Wenyou Yang <wenyou.yang@atmel.com> wrote:
> 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 <wenyou.yang@atmel.com>
> ---
>
> Changes in v2: None
>
>  arch/arm/mach-at91/spl_atmel.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Applied to u-boot-dm, thanks!
diff mbox

Patch

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();
 }