From: hjc Date: Sat, 24 Aug 2013 02:18:36 +0000 (+0800) Subject: rk3188 lcdc: pull down hsync and vsync to prevent leakage in suspend X-Git-Tag: firefly_0821_release~6695 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=960ef7a76f2417e8a3c710857b365cb94e18b98e;p=firefly-linux-kernel-4.4.55.git rk3188 lcdc: pull down hsync and vsync to prevent leakage in suspend --- diff --git a/drivers/video/rockchip/lcdc/rk3188_lcdc.c b/drivers/video/rockchip/lcdc/rk3188_lcdc.c index e1341bc7382d..b907416f1e7e 100755 --- a/drivers/video/rockchip/lcdc/rk3188_lcdc.c +++ b/drivers/video/rockchip/lcdc/rk3188_lcdc.c @@ -1042,6 +1042,7 @@ static int rk3188_lcdc_early_suspend(struct rk_lcdc_device_driver *dev_drv) if(likely(lcdc_dev->clk_on)) { lcdc_msk_reg(lcdc_dev,INT_STATUS,m_FS_INT_CLEAR,v_FS_INT_CLEAR(1)); + lcdc_msk_reg(lcdc_dev,DSP_CTRL1,m_DSP_OUT_ZERO ,v_DSP_OUT_ZERO(1)); lcdc_msk_reg(lcdc_dev,SYS_CTRL,m_LCDC_STANDBY,v_LCDC_STANDBY(1)); lcdc_cfg_done(lcdc_dev); spin_unlock(&lcdc_dev->reg_lock); @@ -1090,6 +1091,7 @@ static int rk3188_lcdc_early_resume(struct rk_lcdc_device_driver *dev_drv) if(lcdc_dev->atv_layer_cnt) { + lcdc_msk_reg(lcdc_dev,DSP_CTRL1,m_DSP_OUT_ZERO ,v_DSP_OUT_ZERO(0)); lcdc_msk_reg(lcdc_dev, SYS_CTRL,m_LCDC_STANDBY,v_LCDC_STANDBY(0)); lcdc_cfg_done(lcdc_dev); }