video: da8xx-fb fixing incorrect porch mappings
authorDarren Etheridge <detheridge@ti.com>
Fri, 23 Aug 2013 21:52:50 +0000 (16:52 -0500)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 30 Aug 2013 11:50:26 +0000 (14:50 +0300)
The driver was mapping the wrong fbdev margins to the
front porch / back porch for both vertical and horizontal
timings.

This patch corrects it so that:

hfp = right margin
hbp = left margin
vbp = upper margin
vfp = lower margin

Signed-off-by: Darren Etheridge <detheridge@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/da8xx-fb.c

index ea9771f98301939c3f1acf8757c39cc60e1a9606..0a0983f880751aaa0e922214cf10142b217617a6 100644 (file)
@@ -783,10 +783,10 @@ static int lcd_init(struct da8xx_fb_par *par, const struct lcd_ctrl_config *cfg,
                return ret;
 
        /* Configure the vertical and horizontal sync properties. */
-       lcd_cfg_vertical_sync(panel->lower_margin, panel->vsync_len,
-                       panel->upper_margin);
-       lcd_cfg_horizontal_sync(panel->right_margin, panel->hsync_len,
-                       panel->left_margin);
+       lcd_cfg_vertical_sync(panel->upper_margin, panel->vsync_len,
+                       panel->lower_margin);
+       lcd_cfg_horizontal_sync(panel->left_margin, panel->hsync_len,
+                       panel->right_margin);
 
        /* Configure for disply */
        ret = lcd_cfg_display(cfg, panel);