提交 6bd8845a 编写于 作者: G Giulio Benetti 提交者: Stefano Babic

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: NGiulio Benetti <giulio.benetti@benettiengineering.com>
上级 eeb47ee4
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册