From: Antonino A. Daplas <adaplas@gmail.com> Date: Fri, 9 Sep 2005 20:10:05 +0000 (-0700) Subject: [PATCH] i810fb: Stop LCD displays from flickering X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=63edceac69889e48b1b39f40ca0a4c00fdc3bbb0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [PATCH] i810fb: Stop LCD displays from flickering 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> --- diff --git a/drivers/video/i810/i810_main.c b/drivers/video/i810/i810_main.c index 082ddd2089a5..7018ffffcbc4 100644 --- a/drivers/video/i810/i810_main.c +++ b/drivers/video/i810/i810_main.c @@ -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); } /**