aboutsummaryrefslogtreecommitdiff
path: root/drivers/video/simplefb.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-10-09 17:47:27 -0400
committerTom Rini <trini@konsulko.com>2021-10-09 17:47:27 -0400
commitf331497d3ad4166f9826e7674793ae04094b29c1 (patch)
tree09c8df48a0b48eee7780e7594ddc33fc2c8f59d4 /drivers/video/simplefb.c
parent2a2d8e94ddc75c2c8d456e9163aa5dac510badcf (diff)
parent79c05335a9c101f0b54f2f378d0b08c9b765e1a3 (diff)
downloadu-boot-WIP/09Oct2021.zip
u-boot-WIP/09Oct2021.tar.gz
u-boot-WIP/09Oct2021.tar.bz2
Merge tag 'video-20211009' of https://source.denx.de/u-boot/custodians/u-boot-videoWIP/09Oct2021
- add 30bpp support (EFI, simplefb, vidconsole) - fix video console name in CONSOLE_MUX Kconfig help - move mxsfb driver config option to Kconfig - remove unused mx3fb driver # gpg verification failed.
Diffstat (limited to 'drivers/video/simplefb.c')
-rw-r--r--drivers/video/simplefb.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c
index fd58426..2b0d883 100644
--- a/drivers/video/simplefb.c
+++ b/drivers/video/simplefb.c
@@ -50,8 +50,18 @@ static int simple_video_probe(struct udevice *dev)
if (strcmp(format, "r5g6b5") == 0) {
uc_priv->bpix = VIDEO_BPP16;
- } else if (strcmp(format, "a8b8g8r8") == 0) {
+ } else if (strcmp(format, "a8b8g8r8") == 0 ||
+ strcmp(format, "x8b8g8r8") == 0) {
uc_priv->bpix = VIDEO_BPP32;
+ uc_priv->format = VIDEO_X8B8G8R8;
+ } else if (strcmp(format, "a8r8g8b8") == 0 ||
+ strcmp(format, "x8r8g8b8") == 0) {
+ uc_priv->bpix = VIDEO_BPP32;
+ uc_priv->format = VIDEO_X8R8G8B8;
+ } else if (strcmp(format, "a2r10g10b10") == 0 ||
+ strcmp(format, "x2r10g10b10") == 0) {
+ uc_priv->bpix = VIDEO_BPP32;
+ uc_priv->format = VIDEO_X2R10G10B10;
} else {
printf("%s: invalid format: %s\n", __func__, format);
return -EINVAL;