projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72330b0
)
i.MX Framebuffer: fix margins
author
Sascha Hauer
<s.hauer@pengutronix.de>
Tue, 16 Dec 2008 10:44:08 +0000
(11:44 +0100)
committer
Sascha Hauer
<s.hauer@pengutronix.de>
Tue, 16 Dec 2008 14:40:20 +0000
(15:40 +0100)
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>
drivers/video/imxfb.c
patch
|
blob
|
history
diff --git
a/drivers/video/imxfb.c
b/drivers/video/imxfb.c
index 1bccf5ad0c7da91b37a8363099d2dedc880b41b2..feaae73f56ac61355dd64f8f1d2e2cc595b521d2 100644
(file)
--- a/
drivers/video/imxfb.c
+++ b/
drivers/video/imxfb.c
@@
-410,13
+410,13
@@
static int imxfb_activate_var(struct fb_var_screeninfo *var, struct fb_info *inf
#endif
writel(HCR_H_WIDTH(var->hsync_len) |
- HCR_H_WAIT_1(var->
lef
t_margin) |
- HCR_H_WAIT_2(var->
righ
t_margin),
+ HCR_H_WAIT_1(var->
righ
t_margin) |
+ HCR_H_WAIT_2(var->
lef
t_margin),
fbi->regs + LCDC_HCR);
writel(VCR_V_WIDTH(var->vsync_len) |
- VCR_V_WAIT_1(var->
upp
er_margin) |
- VCR_V_WAIT_2(var->
low
er_margin),
+ VCR_V_WAIT_1(var->
low
er_margin) |
+ VCR_V_WAIT_2(var->
upp
er_margin),
fbi->regs + LCDC_VCR);
writel(SIZE_XMAX(var->xres) | SIZE_YMAX(var->yres),