]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
configs: npcm: remove CONFIG_SYS_SKIP_UART_INIT
authorJim Liu <jim.t90615@gmail.com>
Thu, 7 Aug 2025 05:32:24 +0000 (13:32 +0800)
committerTom Rini <trini@konsulko.com>
Mon, 18 Aug 2025 22:40:24 +0000 (16:40 -0600)
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>
board/nuvoton/arbel_evb/arbel_evb.c
board/nuvoton/poleg_evb/poleg_evb.c
configs/arbel_evb_defconfig
configs/poleg_evb_defconfig

index 16dbaa96e8ced9a3ec0032260c4bfcb250df6c16..05c4dd187fe35a018d8bd6624dcc1c43f1fe760e 100644 (file)
@@ -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);
 
index 0a3c052a019f4f1968f9abe5ae57bfa40f86dcd0..9dfe97443633c51a71ee8ac0019aac7b53ae2ed7 100644 (file)
@@ -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;
index 8572ad204d8263244dfec1448fdc2775138eeeaa..11ad19f56db9e8cb51632a6b0ecc6877d2d77c0e 100644 (file)
@@ -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
index a87e918117ce1d04d62b6bd2f1b56955c7004a93..0803fb1a857900e9da6f7aa50dc2089cd50717df 100644 (file)
@@ -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