summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-08-18 16:41:50 -0600
committerTom Rini <[email protected]>2025-08-18 16:41:50 -0600
commitbb21c0b8d8da652d9df30d445a6b14bcb2c179ae (patch)
treea8a114cc57033e98dbd12e0d0fbe847a37643c1a /board
parent4a2f360bd280b2b5af1c5daffbc189590c83c995 (diff)
parent58fa3b5159cf4090ed926507d7778ebd1dc0686f (diff)
Merge patch series "modify npcm7xx/8xx feature and bug fixed"
Jim Liu <[email protected]> says: modify npcm7xx/8xx feature and bug fixed Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'board')
-rw-r--r--board/nuvoton/arbel_evb/arbel_evb.c9
-rw-r--r--board/nuvoton/poleg_evb/poleg_evb.c2
2 files changed, 10 insertions, 1 deletions
diff --git a/board/nuvoton/arbel_evb/arbel_evb.c b/board/nuvoton/arbel_evb/arbel_evb.c
index 16dbaa96e8c..05c4dd187fe 100644
--- a/board/nuvoton/arbel_evb/arbel_evb.c
+++ b/board/nuvoton/arbel_evb/arbel_evb.c
@@ -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);
diff --git a/board/nuvoton/poleg_evb/poleg_evb.c b/board/nuvoton/poleg_evb/poleg_evb.c
index 0a3c052a019..9dfe9744363 100644
--- a/board/nuvoton/poleg_evb/poleg_evb.c
+++ b/board/nuvoton/poleg_evb/poleg_evb.c
@@ -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;