From 3e55fdba51e9063f64c1dfedf877caa3722686ab Mon Sep 17 00:00:00 2001 From: Sandor Yu Date: Wed, 13 Nov 2013 10:13:14 +0800 Subject: [PATCH] ENGR00287579 mxsfb: i.MX6SL clean master bit before enter suspend Clean lcdif bus master bit when lcdif enter low power mode. Restore the master bit when lcdif back to work mode. Signed-off-by: Sandor Yu --- drivers/video/fbdev/mxsfb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/video/fbdev/mxsfb.c b/drivers/video/fbdev/mxsfb.c index ef4e750578fc..09bfd79748f9 100644 --- a/drivers/video/fbdev/mxsfb.c +++ b/drivers/video/fbdev/mxsfb.c @@ -366,6 +366,7 @@ static void mxsfb_enable_controller(struct fb_info *fb_info) reg |= VDCTRL4_SYNC_SIGNALS_ON; writel(reg, host->base + LCDC_VDCTRL4); + writel(CTRL_MASTER, host->base + LCDC_CTRL + REG_SET); writel(CTRL_RUN, host->base + LCDC_CTRL + REG_SET); host->enabled = 1; @@ -395,6 +396,8 @@ static void mxsfb_disable_controller(struct fb_info *fb_info) loop--; } + writel(CTRL_MASTER, host->base + LCDC_CTRL + REG_CLR); + reg = readl(host->base + LCDC_VDCTRL4); writel(reg & ~VDCTRL4_SYNC_SIGNALS_ON, host->base + LCDC_VDCTRL4); @@ -980,6 +983,7 @@ static void mxsfb_shutdown(struct platform_device *pdev) * might interfere with the BootROM's boot mode pads sampling. */ writel(CTRL_RUN, host->base + LCDC_CTRL + REG_CLR); + writel(CTRL_MASTER, host->base + LCDC_CTRL + REG_CLR); clk_disable_axi(host); } -- 2.39.5