aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Etheridge <detheridge@ti.com>2013-08-23 17:52:50 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-08-30 07:50:26 -0400
commita592d9fd63ca619ba4c15e8d83ec6c955eb18eaa (patch)
tree659344da9b90a8711603c0a0ac2f9bf777206b46
parentb1a9329cd5c4a26cdc2b12015ad055174a09e4ad (diff)
video: da8xx-fb fixing incorrect porch mappings
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>
-rw-r--r--drivers/video/da8xx-fb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index ea9771f98301..0a0983f88075 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -783,10 +783,10 @@ static int lcd_init(struct da8xx_fb_par *par, const struct lcd_ctrl_config *cfg,
783 return ret; 783 return ret;
784 784
785 /* Configure the vertical and horizontal sync properties. */ 785 /* Configure the vertical and horizontal sync properties. */
786 lcd_cfg_vertical_sync(panel->lower_margin, panel->vsync_len, 786 lcd_cfg_vertical_sync(panel->upper_margin, panel->vsync_len,
787 panel->upper_margin); 787 panel->lower_margin);
788 lcd_cfg_horizontal_sync(panel->right_margin, panel->hsync_len, 788 lcd_cfg_horizontal_sync(panel->left_margin, panel->hsync_len,
789 panel->left_margin); 789 panel->right_margin);
790 790
791 /* Configure for disply */ 791 /* Configure for disply */
792 ret = lcd_cfg_display(cfg, panel); 792 ret = lcd_cfg_display(cfg, panel);