mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-18 16:01:32 +01:00
configs: npcm: remove CONFIG_SYS_SKIP_UART_INIT
Set the uart clock frequency according to dts by default. If CONFIG_SYS_SKIP_UART_INIT is not enabled, no need to do board_set_console to change the console bootarg. Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
This commit is contained in:
parent
9878805816
commit
58fa3b5159
@ -94,5 +94,12 @@ int dram_init_banksize(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
EVENT_SPY_SIMPLE(EVT_LAST_STAGE_INIT, board_set_console);
|
||||
static int last_stage_init(void)
|
||||
{
|
||||
#ifdef CONFIG_SYS_SKIP_UART_INIT
|
||||
return board_set_console();
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
EVENT_SPY_SIMPLE(EVT_LAST_STAGE_INIT, last_stage_init);
|
||||
|
||||
|
||||
@ -64,7 +64,9 @@ static int last_stage_init(void)
|
||||
}
|
||||
sprintf(value, "ttyS%d,115200n8", dev->seq_);
|
||||
env_set("console", value);
|
||||
#ifdef CONFIG_SYS_SKIP_UART_INIT
|
||||
return board_set_console();
|
||||
#endif
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@ -17,7 +17,6 @@ CONFIG_SYS_LOAD_ADDR=0x06208000
|
||||
CONFIG_WATCHDOG_TIMEOUT_MSECS=120000
|
||||
# CONFIG_PSCI_RESET is not set
|
||||
CONFIG_ARCH_NPCM8XX=y
|
||||
CONFIG_SYS_SKIP_UART_INIT=y
|
||||
CONFIG_TARGET_ARBEL_EVB=y
|
||||
CONFIG_ENV_ADDR=0x807C0000
|
||||
# CONFIG_EFI_LOADER is not set
|
||||
|
||||
@ -16,7 +16,6 @@ CONFIG_DEFAULT_DEVICE_TREE="nuvoton-npcm750-evb"
|
||||
CONFIG_DM_RESET=y
|
||||
CONFIG_SYS_LOAD_ADDR=0x10000000
|
||||
CONFIG_TARGET_POLEG=y
|
||||
CONFIG_SYS_SKIP_UART_INIT=y
|
||||
CONFIG_ENV_ADDR=0x80100000
|
||||
CONFIG_FIT=y
|
||||
CONFIG_USE_BOOTCOMMAND=y
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user