diff mbox series

stdio: gate splash_display() on CONFIG_BMP instead of CONFIG_CMD_BMP

Message ID 20260901-stdio-splash-fix-bmp-guard-v1-1-78e2e75ae441@baylibre.com
State New
Delegated to: Tom Rini
Headers show
Series stdio: gate splash_display() on CONFIG_BMP instead of CONFIG_CMD_BMP | expand

Commit Message

Julien Stephan Sept. 1, 2026, 3:24 p.m. UTC
stdio_add_devices() calls splash_display() only when CONFIG_CMD_BMP is
enabled. However splash_display() depends on the BMP display support
selected by CONFIG_BMP, not on the "bmp" command (CONFIG_CMD_BMP).

As a result the boot splash is not shown when BMP display support is
enabled without the bmp command. Gate the call on CONFIG_BMP instead.

Fixes: 5eb83c0ac114 ("splash: display splash in DM_VIDEO configurations")
Signed-off-by: Julien Stephan <jstephan@baylibre.com>
---
 common/stdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


---
base-commit: cd5bd0cb98ececd1e2eb69d0093e4940b25c9941
change-id: 20260901-stdio-splash-fix-bmp-guard-351d02d73457

Best regards,
--  
Julien Stephan <jstephan@baylibre.com>
diff mbox series

Patch

diff --git a/common/stdio.c b/common/stdio.c
index 038e576147b..271a37e959c 100644
--- a/common/stdio.c
+++ b/common/stdio.c
@@ -332,7 +332,7 @@  int stdio_add_devices(void)
 			}
 		}
 		if (IS_ENABLED(CONFIG_SPLASH_SCREEN) &&
-		    IS_ENABLED(CONFIG_CMD_BMP))
+		    IS_ENABLED(CONFIG_BMP))
 			splash_display();
 	}