fbdev: da8xx-fb: fix videomodes of lcd panels
authorSushaanth Srirangapathi <sushaanth.s@ti.com>
Mon, 29 Feb 2016 13:12:19 +0000 (18:42 +0530)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:12:56 +0000 (13:12 +0000)
commit 713fced8d10fa1c759c8fb6bf9aaa681bae68cad upstream.

Commit 028cd86b794f4a ("video: da8xx-fb: fix the polarities of the
hsync/vsync pulse") fixes polarities of HSYNC/VSYNC pulse but
forgot to update known_lcd_panels[] which had sync values
according to old logic. This breaks LCD at least on DA850 EVM.

This patch fixes this issue and I have tested this for panel
"Sharp_LK043T1DG01" using DA850 EVM board.

Fixes: 028cd86b794f4a ("video: da8xx-fb: fix the polarities of the hsync/vsync pulse")
Signed-off-by: Sushaanth Srirangapathi <sushaanth.s@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/video/da8xx-fb.c

index 0810939936f4137037bbdc975967111b5b4cc9ca..b13bfb2e52a215fae7f438b620239c9e6ad1891f 100644 (file)
@@ -226,8 +226,7 @@ static struct fb_videomode known_lcd_panels[] = {
                .lower_margin   = 2,
                .hsync_len      = 0,
                .vsync_len      = 0,
-               .sync           = FB_SYNC_CLK_INVERT |
-                       FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
+               .sync           = FB_SYNC_CLK_INVERT,
        },
        /* Sharp LK043T1DG01 */
        [1] = {
@@ -241,7 +240,7 @@ static struct fb_videomode known_lcd_panels[] = {
                .lower_margin   = 2,
                .hsync_len      = 41,
                .vsync_len      = 10,
-               .sync           = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
+               .sync           = 0,
                .flag           = 0,
        },
        [2] = {
@@ -256,7 +255,7 @@ static struct fb_videomode known_lcd_panels[] = {
                .lower_margin   = 10,
                .hsync_len      = 10,
                .vsync_len      = 10,
-               .sync           = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
+               .sync           = 0,
                .flag           = 0,
        },
 };