From: Jason Wessel <jason.wessel@windriver.com>
Date: Wed, 26 Jul 2023 02:42:34 +0000 (+0800)
Subject: bcm2835: Add simiple-framebuffer for use with fkms
X-Git-Tag: v2025.01-rc5-pxa1908~888^2~1
X-Git-Url: http://git.dujemihanovic.xyz/img/static/login.html?a=commitdiff_plain;h=28cd244e847c9a3becc954b5d911a7e67f34b14a;p=u-boot.git

bcm2835: Add simiple-framebuffer for use with fkms

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>
---

diff --git a/drivers/video/bcm2835.c b/drivers/video/bcm2835.c
index c2962932c9..14942526f1 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" },
+#if !IS_ENABLED(CONFIG_VIDEO_DT_SIMPLEFB)
+	{ .compatible = "simple-framebuffer" },
+#endif
 	{ }
 };