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

spl: init console as early as possible

allows to see messages from DRAM setup code.
parent f02d28c6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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();
+3 −0
Original line number Diff line number Diff line
@@ -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;