From 2681dca4c787322733d881ea3dfed713d73e41b8 Mon Sep 17 00:00:00 2001 From: Giulio Benetti Date: Sun, 4 Apr 2021 20:21:35 +0200 Subject: [PATCH] board: st: stm32f746-disco: fix console is not enabled while init dram While initializing dram in spl_dram_init(), mdelay() is called that in order calls get_ticks() that verifies if timer exists, if doesn't, it throws a panic(), but since preloader_console_init() has still not been called those panic()s will fail. This doesn't help debugging, so let's setup console before calling spl_dram_init() by moving it after spl_dram_init(). Signed-off-by: Giulio Benetti --- board/st/stm32f746-disco/stm32f746-disco.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c index 143cc6e1ea..efa38a0e26 100644 --- a/board/st/stm32f746-disco/stm32f746-disco.c +++ b/board/st/stm32f746-disco/stm32f746-disco.c @@ -69,8 +69,8 @@ int spl_dram_init(void) } void spl_board_init(void) { - spl_dram_init(); preloader_console_init(); + spl_dram_init(); arch_cpu_init(); /* to configure mpu for sdram rw permissions */ } u32 spl_boot_device(void)