mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-05 02:50:44 +09:00
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>
This commit is contained in:
parent
c00d7c33ba
commit
730a7b4710
@ -77,6 +77,8 @@ void s_init(void)
|
|||||||
|
|
||||||
void board_init_f(ulong dummy)
|
void board_init_f(ulong dummy)
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
switch_to_main_crystal_osc();
|
switch_to_main_crystal_osc();
|
||||||
|
|
||||||
#ifdef CONFIG_SAMA5D2
|
#ifdef CONFIG_SAMA5D2
|
||||||
@ -99,6 +101,12 @@ void board_init_f(ulong dummy)
|
|||||||
|
|
||||||
board_early_init_f();
|
board_early_init_f();
|
||||||
|
|
||||||
|
ret = spl_init();
|
||||||
|
if (ret) {
|
||||||
|
debug("spl_init() failed: %d\n", ret);
|
||||||
|
hang();
|
||||||
|
}
|
||||||
|
|
||||||
preloader_console_init();
|
preloader_console_init();
|
||||||
|
|
||||||
mem_init();
|
mem_init();
|
||||||
|
Loading…
Reference in New Issue
Block a user