From: Giulio Benetti Date: Sun, 4 Apr 2021 18:21:33 +0000 (+0200) Subject: board: freescale: imxrt1020-evk: fix console is not enabled while init dram X-Git-Tag: baikal/mips/sdk5.9~34^2^2~109^2~26 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=4a82bc10b51eb965f553fb53c9ae5eb0b7220514;p=uboot.git board: freescale: imxrt1020-evk: 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 --- diff --git a/board/freescale/imxrt1020-evk/imxrt1020-evk.c b/board/freescale/imxrt1020-evk/imxrt1020-evk.c index 35241acd22..479e66bddc 100644 --- a/board/freescale/imxrt1020-evk/imxrt1020-evk.c +++ b/board/freescale/imxrt1020-evk/imxrt1020-evk.c @@ -60,8 +60,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 */ }