aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/imxfb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/imxfb.c b/drivers/video/imxfb.c
index 9dd27576db71..bd1cb75cd14b 100644
--- a/drivers/video/imxfb.c
+++ b/drivers/video/imxfb.c
@@ -495,9 +495,9 @@ static int imxfb_activate_var(struct fb_var_screeninfo *var, struct fb_info *inf
495 info->fix.id, var->lower_margin); 495 info->fix.id, var->lower_margin);
496#endif 496#endif
497 497
498 writel(HCR_H_WIDTH(var->hsync_len) | 498 writel(HCR_H_WIDTH(var->hsync_len - 1) |
499 HCR_H_WAIT_1(var->right_margin) | 499 HCR_H_WAIT_1(var->right_margin - 1) |
500 HCR_H_WAIT_2(var->left_margin), 500 HCR_H_WAIT_2(var->left_margin - 3),
501 fbi->regs + LCDC_HCR); 501 fbi->regs + LCDC_HCR);
502 502
503 writel(VCR_V_WIDTH(var->vsync_len) | 503 writel(VCR_V_WIDTH(var->vsync_len) |