]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commitdiff
OMAPDSS: OMAPFB: Add BGRA32 support in FB Driver
authorSreenidhi Koti <sreenidhi@ti.com>
Mon, 22 Oct 2012 09:24:50 +0000 (14:54 +0530)
committerPraneeth Bajjuri <praneeth@ti.com>
Fri, 12 Jul 2013 22:28:59 +0000 (17:28 -0500)
Description: This patch adds BGRA32 color format support for FB driver
relevant to OMAP5 ES2.0 silicons,

Change-Id: I841682437f6a74d355e249431373681cbbdb8ff5
Signed-off-by: Sreenidhi Koti <sreenidhi@ti.com>
drivers/video/omap2/omapfb/omapfb-main.c

index 061a133b36a46d43e7bba7df6d81b58f5b7ee482..19c030bb21f7c28c7b5b6aa49dacbb84653a8f48 100644 (file)
@@ -320,6 +320,13 @@ static struct omapfb_colormode omapfb_colormodes[] = {
                .green  = { .length = 8, .offset = 16, .msb_right = 0 },
                .blue   = { .length = 8, .offset = 8, .msb_right = 0 },
                .transp = { .length = 0, .offset = 0, .msb_right = 0 },
+       }, {
+               .dssmode = OMAP_DSS_COLOR_BGRA32,
+               .bits_per_pixel = 32,
+               .red    = { .length = 8, .offset = 8, .msb_right = 0 },
+               .green  = { .length = 8, .offset = 16, .msb_right = 0 },
+               .blue   = { .length = 8, .offset = 24, .msb_right = 0 },
+               .transp = { .length = 8, .offset = 0, .msb_right = 0 },
        },
 };