[PATCH] i810fb: Stop LCD displays from flickering
authorAntonino A. Daplas <adaplas@gmail.com>
Fri, 9 Sep 2005 20:10:05 +0000 (13:10 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 21:03:41 +0000 (14:03 -0700)
Stop LCD displays from flickering during high loads.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/i810/i810_main.c

index 082ddd2089a5ebd9b70b76723958f64cd31cc253..7018ffffcbc4e391f8dbc8076a072ed59f865f82 100644 (file)
@@ -311,6 +311,8 @@ static void i810_hires(u8 __iomem *mmio)
        val = i810_readb(CR_DATA_CGA, mmio);
        i810_writeb(CR_INDEX_CGA, mmio, CR80);
        i810_writeb(CR_DATA_CGA, mmio, val | 1);
+       /* Stop LCD displays from flickering */
+       i810_writel(MEM_MODE, mmio, i810_readl(MEM_MODE, mmio) | 4);
 }
 
 /**