]> Git Repo - J-u-boot.git/commitdiff
spl: Allow serial to be disabled in any XPL phase
authorSimon Glass <[email protected]>
Sat, 7 Dec 2024 17:24:03 +0000 (10:24 -0700)
committerTom Rini <[email protected]>
Thu, 12 Dec 2024 22:35:24 +0000 (16:35 -0600)
The current check looks only at SPL, but TPL or VPL might have a
different setting. Update the condition.

Signed-off-by: Simon Glass <[email protected]>
common/spl/spl.c

index 7c57eb8539b786cccb148cb451295d109e6d6300..91ee07f70795f3a8e7abf87762164204d1253d67 100644 (file)
@@ -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 */
This page took 0.034236 seconds and 4 git commands to generate.