Commit 028cd86b794f4a7f09525587c8e9ab6b03a6fa0f

Authored by Darren Etheridge
Committed by Tomi Valkeinen
1 parent 2645ad1621

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

drivers/video/da8xx-fb.c
... ... @@ -493,12 +493,12 @@
493 493 else
494 494 reg &= ~LCD_SYNC_EDGE;
495 495  
496   - if (panel->sync & FB_SYNC_HOR_HIGH_ACT)
  496 + if ((panel->sync & FB_SYNC_HOR_HIGH_ACT) == 0)
497 497 reg |= LCD_INVERT_LINE_CLOCK;
498 498 else
499 499 reg &= ~LCD_INVERT_LINE_CLOCK;
500 500  
501   - if (panel->sync & FB_SYNC_VERT_HIGH_ACT)
  501 + if ((panel->sync & FB_SYNC_VERT_HIGH_ACT) == 0)
502 502 reg |= LCD_INVERT_FRAME_CLOCK;
503 503 else
504 504 reg &= ~LCD_INVERT_FRAME_CLOCK;