rockchip: Fix SPL console output when ROCKCHIP_SPL_BACK_TO_BROM is enabled
authorSandy Patterson <apatterson@sightlogix.com>
Wed, 10 Aug 2016 14:21:47 +0000 (10:21 -0400)
committerSimon Glass <sjg@chromium.org>
Sun, 2 Oct 2016 00:35:01 +0000 (18:35 -0600)
commit427351dc1d054b6d92814017f3ea6694474949b7
treefba94a303c9f8e5769ea8d46829ef9293a560a1b
parent2179a07c0c7d1a87ccf13b3f3124c107de7dab91
rockchip: Fix SPL console output when ROCKCHIP_SPL_BACK_TO_BROM is enabled

Move back_to_bootrom() call later in SPL init so that the console is
initialized and printouts happen.

Currently when ROCKCHIP_SPL_BACK_TO_BROM is enabled there is no console
output from the SPL init stages.

I wasn't sure exactly where this should happen, so if we are set to do
run spl_board_init, then go back to bootrom there after
preloader_console_init(). Otherwise fall back to old behavior of doing
it in board_init_f.

Signed-off-by: Sandy Patterson <apatterson@sightlogix.com>
Acked-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-rockchip/rk3288-board-spl.c