Commit ed9f5b75 authored by notaz's avatar notaz Committed by H. Nikolaus Schaller

spl: init console as early as possible

allows to see messages from DRAM setup code.
parent f02d28c6
......@@ -157,6 +157,11 @@ void early_system_init(void)
do_io_settings();
#endif
setup_early_clocks();
#ifdef CONFIG_SPL_BUILD
/* a hack to get the console early */
asm volatile("ldr r0,=preloader_console_init; blx r0"
::: "r0", "r1", "r2", "r3", "lr", "memory");
#endif
do_board_detect();
vcores_init();
prcm_init();
......
......@@ -462,6 +462,9 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
*/
void preloader_console_init(void)
{
if (gd->have_console)
return;
gd->bd = &bdata;
gd->baudrate = CONFIG_BAUDRATE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment