aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-12-19 11:28:58 -0700
committerTom Rini <trini@konsulko.com>2024-12-27 15:16:10 -0600
commita7d4d119440f9e1b7c8c3806a2ebe2008f7785d7 (patch)
tree025643c46ce78fca243b2f22d80d4b7835d9de01
parent5f158d8832cf10f76eed3277253ca7ff43df04d7 (diff)
downloadu-boot-a7d4d119440f9e1b7c8c3806a2ebe2008f7785d7.tar.gz
spl: Allow serial to be disabled in any XPL phase
The current check looks only at SPL, but TPL or VPL might have a different setting. Update the condition. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/spl/spl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 7c57eb8539b..91ee07f7079 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -837,7 +837,7 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
*/
void preloader_console_init(void)
{
-#ifdef CONFIG_SPL_SERIAL
+#if CONFIG_IS_ENABLED(SERIAL)
gd->baudrate = CONFIG_BAUDRATE;
serial_init(); /* serial communications setup */