aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/da8xx-fb.c
diff options
context:
space:
mode:
authorDarren Etheridge <detheridge@ti.com>2013-08-23 17:52:53 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-08-30 07:51:30 -0400
commit028cd86b794f4a7f09525587c8e9ab6b03a6fa0f (patch)
tree9a4b8adb63ada4b8820349f22474eda804eb78df /drivers/video/da8xx-fb.c
parent2645ad16218354a87f6154ca4ef0fac70a98486b (diff)
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>
Diffstat (limited to 'drivers/video/da8xx-fb.c')
-rw-r--r--drivers/video/da8xx-fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index 9a05ccbd46c4..e030e17a83f2 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -493,12 +493,12 @@ static int lcd_cfg_display(const struct lcd_ctrl_config *cfg,
493 else 493 else
494 reg &= ~LCD_SYNC_EDGE; 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 reg |= LCD_INVERT_LINE_CLOCK; 497 reg |= LCD_INVERT_LINE_CLOCK;
498 else 498 else
499 reg &= ~LCD_INVERT_LINE_CLOCK; 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 reg |= LCD_INVERT_FRAME_CLOCK; 502 reg |= LCD_INVERT_FRAME_CLOCK;
503 else 503 else
504 reg &= ~LCD_INVERT_FRAME_CLOCK; 504 reg &= ~LCD_INVERT_FRAME_CLOCK;