From: Darren Etheridge Date: Fri, 23 Aug 2013 21:52:53 +0000 (-0500) Subject: video: da8xx-fb: fix the polarities of the hsync/vsync pulse X-Git-Tag: v3.12-rc1~137^2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=028cd86b794f4a7f09525587c8e9ab6b03a6fa0f;p=~emulex%2Finfiniband.git 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 Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 9a05ccbd46c..e030e17a83f 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, 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;