diff mbox series

[1/2] bcm2835: Add simiple-framebuffer for use with fkms

Message ID 20230726024235.2429215-2-Meng.Li@windriver.com
State Accepted
Delegated to: Anatolij Gustschin
Headers show
Series patches used to enable u-boot video driver on raspberry pi 4B platform | expand

Commit Message

Meng Li July 26, 2023, 2:42 a.m. UTC
From: Jason Wessel <jason.wessel@windriver.com>

When the fkms dtb overlay is used only the simple-framebuffer is
presented as a usable video display. So, add "simple-framebuffer"
compatible to enable video driver bcm2835.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Meng Li <Meng.Li@windriver.com>
---
 drivers/video/bcm2835.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/drivers/video/bcm2835.c b/drivers/video/bcm2835.c
index c2962932c9..9078755c76 100644
--- a/drivers/video/bcm2835.c
+++ b/drivers/video/bcm2835.c
@@ -54,6 +54,9 @@  static const struct udevice_id bcm2835_video_ids[] = {
 	{ .compatible = "brcm,bcm2835-hdmi" },
 	{ .compatible = "brcm,bcm2711-hdmi0" },
 	{ .compatible = "brcm,bcm2708-fb" },
+#ifndef CONFIG_VIDEO_DT_SIMPLEFB
+	{ .compatible = "simple-framebuffer" },
+#endif
 	{ }
 };