Skip to content

Commit 028cd86

Browse files
DarrenEtheridgetomba
authored andcommitted
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>
1 parent 2645ad1 commit 028cd86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/video/da8xx-fb.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,12 +493,12 @@ static int lcd_cfg_display(const struct lcd_ctrl_config *cfg,
493493
else
494494
reg &= ~LCD_SYNC_EDGE;
495495

496-
if (panel->sync & FB_SYNC_HOR_HIGH_ACT)
496+
if ((panel->sync & FB_SYNC_HOR_HIGH_ACT) == 0)
497497
reg |= LCD_INVERT_LINE_CLOCK;
498498
else
499499
reg &= ~LCD_INVERT_LINE_CLOCK;
500500

501-
if (panel->sync & FB_SYNC_VERT_HIGH_ACT)
501+
if ((panel->sync & FB_SYNC_VERT_HIGH_ACT) == 0)
502502
reg |= LCD_INVERT_FRAME_CLOCK;
503503
else
504504
reg &= ~LCD_INVERT_FRAME_CLOCK;

0 commit comments

Comments
 (0)