]> git.karo-electronics.de Git - linux-beck.git/commitdiff
video: da8xx-fb: fix the polarities of the hsync/vsync pulse
authorDarren Etheridge <detheridge@ti.com>
Fri, 23 Aug 2013 21:52:53 +0000 (16:52 -0500)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 30 Aug 2013 11:51:30 +0000 (14:51 +0300)
The polarities were being set to active low when fbdev was requesting active
high.  This patch reverses it so that what is set into the LCD controller is
correct.

Signed-off-by: Darren Etheridge <detheridge@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/da8xx-fb.c

index 9a05ccbd46c4de1c61dd2ed8341fb94068956f89..e030e17a83f296320eadf0013831d4c435344184 100644 (file)
@@ -493,12 +493,12 @@ static int lcd_cfg_display(const struct lcd_ctrl_config *cfg,
        else
                reg &= ~LCD_SYNC_EDGE;
 
-       if (panel->sync & FB_SYNC_HOR_HIGH_ACT)
+       if ((panel->sync & FB_SYNC_HOR_HIGH_ACT) == 0)
                reg |= LCD_INVERT_LINE_CLOCK;
        else
                reg &= ~LCD_INVERT_LINE_CLOCK;
 
-       if (panel->sync & FB_SYNC_VERT_HIGH_ACT)
+       if ((panel->sync & FB_SYNC_VERT_HIGH_ACT) == 0)
                reg |= LCD_INVERT_FRAME_CLOCK;
        else
                reg &= ~LCD_INVERT_FRAME_CLOCK;