]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/video/da8xx-fb.c
video: da8xx-fb: fix the polarities of the hsync/vsync pulse
[karo-tx-linux.git] / 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;