]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00224910 IPUv3 fb:Correct logic to check BGR24 for if= option
authorLiu Ying <Ying.liu@freescale.com>
Wed, 19 Sep 2012 02:26:25 +0000 (10:26 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:26 +0000 (08:35 +0200)
This patch corrects the logic to check BGR24 pixel format for
'if=' option in kernel bootup command line of framebuffer.
After applying the patch, users may use 'if=BGR24' to specify
the display data format to be BGR24. For example, 'video=mxcfb0:
dev=lcd,LCD_VIDEO_NAME,if=BGR24' makes IPUv3 output BGR24 data
to fb0's lcd panel.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 7ab85674f63eb1388e44a61e17891f0e283c409a)

drivers/video/mxc/mxc_ipuv3_fb.c

index 745c485016d0a0bb865f97e2ce556635c7842394..8152c47a44343b754b9b96627e44084021b318d6 100644 (file)
@@ -1887,7 +1887,7 @@ static int mxcfb_option_setup(struct platform_device *pdev)
                        if (!strncmp(opt+3, "RGB24", 5)) {
                                pdata->interface_pix_fmt = IPU_PIX_FMT_RGB24;
                                continue;
-                       } else if (!strncmp(opt+6, "BGR24", 5)) {
+                       } else if (!strncmp(opt+3, "BGR24", 5)) {
                                pdata->interface_pix_fmt = IPU_PIX_FMT_BGR24;
                                continue;
                        }