rockchip: board: move hotkey getc earlier

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I5bdf84563f2aae957c707cb12633c4840e58afc0
This commit is contained in:
Joseph Chen 2020-02-21 16:46:27 +08:00
parent b173f38e43
commit 46f6140176
1 changed files with 6 additions and 7 deletions

View File

@ -525,13 +525,6 @@ static void early_download_init(void)
printf("Pwrkey download init failed\n");
#endif
if (!tstc())
return;
gd->console_evt = getc();
if (gd->console_evt <= 0x1a) /* 'z' */
printf("Hotkey: ctrl+%c\n", (gd->console_evt + 'a' - 1));
#if (CONFIG_ROCKCHIP_BOOT_MODE_REG > 0)
if (is_hotkey(HK_BROM_DNL)) {
printf("Enter bootrom download...");
@ -547,6 +540,12 @@ static void board_debug_init(void)
{
if (!gd->serial.using_pre_serial)
board_debug_uart_init();
if (tstc()) {
gd->console_evt = getc();
if (gd->console_evt <= 0x1a) /* 'z' */
printf("Hotkey: ctrl+%c\n", gd->console_evt + 'a' - 1);
}
}
int board_init(void)