Skip to content

Commit

Permalink
board: freescale: imxrt1050-evk: fix console is not enabled while ini…
Browse files Browse the repository at this point in the history
…t 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 <[email protected]>
  • Loading branch information
giuliobenetti authored and sbabic committed Apr 8, 2021
1 parent 45dae4a commit eeb47ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/freescale/imxrt1050-evk/imxrt1050-evk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}

Expand Down

0 comments on commit eeb47ee

Please sign in to comment.