Explorar o código

video: da8xx-fb: fix the polarities of the hsync/vsync pulse

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>
Darren Etheridge %!s(int64=12) %!d(string=hai) anos
pai
achega
028cd86b79
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      drivers/video/da8xx-fb.c

+ 2 - 2
drivers/video/da8xx-fb.c

@@ -493,12 +493,12 @@ static int lcd_cfg_display(const struct lcd_ctrl_config *cfg,
 	else
 	else
 		reg &= ~LCD_SYNC_EDGE;
 		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;
 		reg |= LCD_INVERT_LINE_CLOCK;
 	else
 	else
 		reg &= ~LCD_INVERT_LINE_CLOCK;
 		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;
 		reg |= LCD_INVERT_FRAME_CLOCK;
 	else
 	else
 		reg &= ~LCD_INVERT_FRAME_CLOCK;
 		reg &= ~LCD_INVERT_FRAME_CLOCK;