forked from pool/u-boot
Guillaume GARDET
c8ce9a56ae
- Remove ls1012afrdmqspi flavor since it has been removed upstream with commit b60274e6900ed1b08ad41f6d7fdebb2726ded108 - Update to 2024.01 OBS-URL: https://build.opensuse.org/request/show/1138155 OBS-URL: https://build.opensuse.org/package/show/hardware:boot/u-boot?expand=0&rev=203
43 lines
1.5 KiB
Diff
43 lines
1.5 KiB
Diff
From 004ecbc32e40e1d041c7696cb948bacce39ad86d Mon Sep 17 00:00:00 2001
|
|
From: "Ivan T. Ivanov" <iivanov@suse.de>
|
|
Date: Mon, 18 Dec 2023 17:33:10 +0100
|
|
Subject: [PATCH] bcm2835: brcm,bcm2708-fb device is using r5g6b5 format
|
|
|
|
brcm,bcm2708-fb device provided by firmware on RPi5 uses
|
|
16 bits per pixel. Update driver to properly handle this.
|
|
|
|
Signed-off-by: Ivan T. Ivanov <iivanov@suse.de>
|
|
---
|
|
drivers/video/bcm2835.c | 10 +++++-----
|
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/drivers/video/bcm2835.c b/drivers/video/bcm2835.c
|
|
index 14942526f1..245c958b6e 100644
|
|
--- a/drivers/video/bcm2835.c
|
|
+++ b/drivers/video/bcm2835.c
|
|
@@ -43,7 +43,7 @@ static int bcm2835_video_probe(struct udevice *dev)
|
|
|
|
uc_priv->xsize = w;
|
|
uc_priv->ysize = h;
|
|
- uc_priv->bpix = VIDEO_BPP32;
|
|
+ uc_priv->bpix = dev_get_driver_data(dev);
|
|
plat->base = fb_base;
|
|
plat->size = fb_size;
|
|
|
|
@@ -51,11 +51,11 @@ static int bcm2835_video_probe(struct udevice *dev)
|
|
}
|
|
|
|
static const struct udevice_id bcm2835_video_ids[] = {
|
|
- { .compatible = "brcm,bcm2835-hdmi" },
|
|
- { .compatible = "brcm,bcm2711-hdmi0" },
|
|
- { .compatible = "brcm,bcm2708-fb" },
|
|
+ { .compatible = "brcm,bcm2835-hdmi", .data = VIDEO_BPP32},
|
|
+ { .compatible = "brcm,bcm2711-hdmi0", .data = VIDEO_BPP32},
|
|
+ { .compatible = "brcm,bcm2708-fb", .data = VIDEO_BPP16 },
|
|
#if !IS_ENABLED(CONFIG_VIDEO_DT_SIMPLEFB)
|
|
- { .compatible = "simple-framebuffer" },
|
|
+ { .compatible = "simple-framebuffer", .data = VIDEO_BPP32},
|
|
#endif
|
|
{ }
|
|
};
|