[PATCH] video: simplefb: Add a8r8g8b8 support

Sascha Hauer s.hauer at pengutronix.de
Wed Dec 18 10:48:49 EST 2013


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/video/simplefb.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c
index fcd7517..3572629 100644
--- a/drivers/video/simplefb.c
+++ b/drivers/video/simplefb.c
@@ -37,7 +37,15 @@ static const struct simplefb_mode simplefb_modes[] = {
 		.green	= { .length = 6, .offset = 5 },
 		.blue	= { .length = 5, .offset = 0 },
 		.transp	= { .length = 0, .offset = 0 },
+	}, {
+		.format	= "a8r8g8b8",
+		.bpp	= 32,
+		.red	= { .length = 8, .offset = 16 },
+		.green	= { .length = 8, .offset = 8 },
+		.blue	= { .length = 8, .offset = 0 },
+		.transp	= { .length = 8, .offset = 24 },
 	},
+
 };
 
 static bool simplefb_bitfield_cmp(const struct fb_bitfield *a,
-- 
1.8.5.1




More information about the barebox mailing list