Skip to content

Commit

Permalink
video: da8xx-fb: fix the polarities of the hsync/vsync pulse
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Darren Etheridge authored and Tomi Valkeinen committed Aug 30, 2013
1 parent 2645ad1 commit 028cd86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/da8xx-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 028cd86

Please sign in to comment.