diff options
author | Wenyou Yang <wenyou.yang@atmel.com> | 2017-03-24 11:34:05 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-04-13 14:44:51 -0600 |
commit | 5bede73c6c2478f2da9be64ee3a0d13d4b20f893 (patch) | |
tree | c249de226aae9dd1280988337e5f9f0ae4e3438d | |
parent | 730a7b47105ad6b6766344e59bb04c0cbb2e586a (diff) | |
download | u-boot-5bede73c6c2478f2da9be64ee3a0d13d4b20f893.zip u-boot-5bede73c6c2478f2da9be64ee3a0d13d4b20f893.tar.gz u-boot-5bede73c6c2478f2da9be64ee3a0d13d4b20f893.tar.bz2 |
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 <wenyou.yang@atmel.com>
-rw-r--r-- | arch/arm/mach-at91/spl_atmel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/spl_atmel.c b/arch/arm/mach-at91/spl_atmel.c index 847a30b..b75c2cc 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(); } |