rockchip: board: init debug uart if not use pre-loader serial

Pre-loader serial has higher priority.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Idd736b78454f7bc662abe61d25bbfa3a3e4c0d90
This commit is contained in:
Joseph Chen 2019-12-03 20:49:59 +08:00
parent 27e62cd7db
commit 5d5f363eb9
1 changed files with 7 additions and 1 deletions

View File

@ -540,9 +540,15 @@ static void early_download_init(void)
#endif #endif
} }
static void board_debug_init(void)
{
if (!gd->serial.using_pre_serial)
board_debug_uart_init();
}
int board_init(void) int board_init(void)
{ {
board_debug_uart_init(); board_debug_init();
#ifdef DEBUG #ifdef DEBUG
soc_clk_dump(); soc_clk_dump();