aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2008-04-28 05:15:17 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-28 11:58:38 -0400
commit8f5af9de9cf3cbf51c5758a1d5ea266aea6fe175 (patch)
treeca82a473b7df2ea701dd647f4746f6df23991d37 /drivers/video
parent9201a8584c9bdb45b7b32cb3d2280c3dfbc76e39 (diff)
fbdev: vt8623fb: better resume from STR
After resume from STR, image is shifted by 8 pixels to the left. This patch fixes it. Signed-off-by: Ondrej Zajicek <santiago@crfreenet.org> Cc: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/vt8623fb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/vt8623fb.c b/drivers/video/vt8623fb.c
index f6895ef6bf59..0b9dd22f3ee6 100644
--- a/drivers/video/vt8623fb.c
+++ b/drivers/video/vt8623fb.c
@@ -436,6 +436,10 @@ static int vt8623fb_set_par(struct fb_info *info)
436 svga_wcrt_multi(vt8623_offset_regs, offset_value); 436 svga_wcrt_multi(vt8623_offset_regs, offset_value);
437 svga_wseq_multi(vt8623_fetch_count_regs, fetch_value); 437 svga_wseq_multi(vt8623_fetch_count_regs, fetch_value);
438 438
439 /* Clear H/V Skew */
440 svga_wcrt_mask(0x03, 0x00, 0x60);
441 svga_wcrt_mask(0x05, 0x00, 0x60);
442
439 if (info->var.vmode & FB_VMODE_DOUBLE) 443 if (info->var.vmode & FB_VMODE_DOUBLE)
440 svga_wcrt_mask(0x09, 0x80, 0x80); 444 svga_wcrt_mask(0x09, 0x80, 0x80);
441 else 445 else