The upper/lower and left/right margins are mixed up in the driver.
Fix it

Acked-by: Krzysztof Helt <krzysztof.h1@poczta.fm>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2008-12-16 11:44:08 +01:00
Родитель 72330b0eee
Коммит d6ed5755ac
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -410,13 +410,13 @@ static int imxfb_activate_var(struct fb_var_screeninfo *var, struct fb_info *inf
#endif #endif
writel(HCR_H_WIDTH(var->hsync_len) | writel(HCR_H_WIDTH(var->hsync_len) |
HCR_H_WAIT_1(var->left_margin) | HCR_H_WAIT_1(var->right_margin) |
HCR_H_WAIT_2(var->right_margin), HCR_H_WAIT_2(var->left_margin),
fbi->regs + LCDC_HCR); fbi->regs + LCDC_HCR);
writel(VCR_V_WIDTH(var->vsync_len) | writel(VCR_V_WIDTH(var->vsync_len) |
VCR_V_WAIT_1(var->upper_margin) | VCR_V_WAIT_1(var->lower_margin) |
VCR_V_WAIT_2(var->lower_margin), VCR_V_WAIT_2(var->upper_margin),
fbi->regs + LCDC_VCR); fbi->regs + LCDC_VCR);
writel(SIZE_XMAX(var->xres) | SIZE_YMAX(var->yres), writel(SIZE_XMAX(var->xres) | SIZE_YMAX(var->yres),