rockchip: board: move hotkey getc earlier
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I5bdf84563f2aae957c707cb12633c4840e58afc0
This commit is contained in:
parent
b173f38e43
commit
46f6140176
|
|
@ -525,13 +525,6 @@ static void early_download_init(void)
|
||||||
printf("Pwrkey download init failed\n");
|
printf("Pwrkey download init failed\n");
|
||||||
#endif
|
#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 (CONFIG_ROCKCHIP_BOOT_MODE_REG > 0)
|
||||||
if (is_hotkey(HK_BROM_DNL)) {
|
if (is_hotkey(HK_BROM_DNL)) {
|
||||||
printf("Enter bootrom download...");
|
printf("Enter bootrom download...");
|
||||||
|
|
@ -547,6 +540,12 @@ static void board_debug_init(void)
|
||||||
{
|
{
|
||||||
if (!gd->serial.using_pre_serial)
|
if (!gd->serial.using_pre_serial)
|
||||||
board_debug_uart_init();
|
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)
|
int board_init(void)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue