aboutsummaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorGiulio Benetti <giulio.benetti@benettiengineering.com>2021-04-04 20:21:33 +0200
committerStefano Babic <sbabic@denx.de>2021-04-08 20:29:53 +0200
commit45dae4a3c717a3ecff0997000b0dbbd3d81d6d00 (patch)
treec45dffb5732921860a95c6b3e3c5ff4302892931 /board/freescale
parent8166bb24288ef97c1c5692ac950e357c4ec8d71d (diff)
downloadu-boot-45dae4a3c717a3ecff0997000b0dbbd3d81d6d00.zip
u-boot-45dae4a3c717a3ecff0997000b0dbbd3d81d6d00.tar.gz
u-boot-45dae4a3c717a3ecff0997000b0dbbd3d81d6d00.tar.bz2
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 <giulio.benetti@benettiengineering.com>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/imxrt1020-evk/imxrt1020-evk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/imxrt1020-evk/imxrt1020-evk.c b/board/freescale/imxrt1020-evk/imxrt1020-evk.c
index 35241ac..479e66b 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 */
}