]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
fbdev: vt8623fb: better resume from STR
authorOndrej Zajicek <santiago@crfreenet.org>
Mon, 28 Apr 2008 09:15:17 +0000 (02:15 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Apr 2008 15:58:38 +0000 (08:58 -0700)
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>
drivers/video/vt8623fb.c

index f6895ef6bf5944f40e60138942f520c085704a44..0b9dd22f3ee6f43eaa1572e04c483c1d670b7a07 100644 (file)
@@ -436,6 +436,10 @@ static int vt8623fb_set_par(struct fb_info *info)
        svga_wcrt_multi(vt8623_offset_regs, offset_value);
        svga_wseq_multi(vt8623_fetch_count_regs, fetch_value);
 
+       /* Clear H/V Skew */
+       svga_wcrt_mask(0x03, 0x00, 0x60);
+       svga_wcrt_mask(0x05, 0x00, 0x60);
+
        if (info->var.vmode & FB_VMODE_DOUBLE)
                svga_wcrt_mask(0x09, 0x80, 0x80);
        else