Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 028cd86b authored by Darren Etheridge's avatar Darren Etheridge Committed by Tomi Valkeinen
Browse files

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: default avatarDarren Etheridge <detheridge@ti.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 2645ad16
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;