Commit 7e8549bc authored by Sascha Hauer's avatar Sascha Hauer

imxfb: Fix margin settings

The var->hsync_len, var->right_margin and var->left_margin fields
should contain the real values, not the hardware dependent values.
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent 1d0f9870
...@@ -495,9 +495,9 @@ static int imxfb_activate_var(struct fb_var_screeninfo *var, struct fb_info *inf ...@@ -495,9 +495,9 @@ static int imxfb_activate_var(struct fb_var_screeninfo *var, struct fb_info *inf
info->fix.id, var->lower_margin); info->fix.id, var->lower_margin);
#endif #endif
writel(HCR_H_WIDTH(var->hsync_len) | writel(HCR_H_WIDTH(var->hsync_len - 1) |
HCR_H_WAIT_1(var->right_margin) | HCR_H_WAIT_1(var->right_margin - 1) |
HCR_H_WAIT_2(var->left_margin), HCR_H_WAIT_2(var->left_margin - 3),
fbi->regs + LCDC_HCR); fbi->regs + LCDC_HCR);
writel(VCR_V_WIDTH(var->vsync_len) | writel(VCR_V_WIDTH(var->vsync_len) |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment