summaryrefslogtreecommitdiff
path: root/arch/arm/mach-at91
diff options
context:
space:
mode:
authorWenyou Yang <wenyou.yang@atmel.com>2017-03-24 03:34:04 (GMT)
committerSimon Glass <sjg@chromium.org>2017-04-13 20:44:51 (GMT)
commit730a7b47105ad6b6766344e59bb04c0cbb2e586a (patch)
tree7e4dda84a56e220dd6865f443b01f2089ad61439 /arch/arm/mach-at91
parentc00d7c33ba0150ccac01aad67a56295bfc8ed824 (diff)
downloadu-boot-730a7b47105ad6b6766344e59bb04c0cbb2e586a.tar.xz
ARM: spl: atmel: bring in serial device before init
Before setting up the serial communications, bring in the serial device from the device tree file. Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r--arch/arm/mach-at91/spl_atmel.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/spl_atmel.c b/arch/arm/mach-at91/spl_atmel.c
index 688289e..847a30b 100644
--- a/arch/arm/mach-at91/spl_atmel.c
+++ b/arch/arm/mach-at91/spl_atmel.c
@@ -77,6 +77,8 @@ void s_init(void)
void board_init_f(ulong dummy)
{
+ int ret;
+
switch_to_main_crystal_osc();
#ifdef CONFIG_SAMA5D2
@@ -99,6 +101,12 @@ void board_init_f(ulong dummy)
board_early_init_f();
+ ret = spl_init();
+ if (ret) {
+ debug("spl_init() failed: %d\n", ret);
+ hang();
+ }
+
preloader_console_init();
mem_init();