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>
void board_init_f(ulong dummy)
{
void board_init_f(ulong dummy)
{
switch_to_main_crystal_osc();
#ifdef CONFIG_SAMA5D2
switch_to_main_crystal_osc();
#ifdef CONFIG_SAMA5D2
+ ret = spl_init();
+ if (ret) {
+ debug("spl_init() failed: %d\n", ret);
+ hang();
+ }
+
preloader_console_init();
mem_init();
preloader_console_init();
mem_init();