]> git.baikalelectronics.ru Git - uboot.git/commit
board: freescale: imxrt1050-evk: fix console is not enabled while init dram
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Sun, 4 Apr 2021 18:21:34 +0000 (20:21 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 8 Apr 2021 18:29:53 +0000 (20:29 +0200)
commita6587b4124d987eb1641e35d88236e5d7aa3e36f
tree2905e703c2fda0ad8685f0f2373e5fd9083e7400
parent4a82bc10b51eb965f553fb53c9ae5eb0b7220514
board: freescale: imxrt1050-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>
board/freescale/imxrt1050-evk/imxrt1050-evk.c