From 960ef7a76f2417e8a3c710857b365cb94e18b98e Mon Sep 17 00:00:00 2001 From: hjc Date: Sat, 24 Aug 2013 10:18:36 +0800 Subject: [PATCH] rk3188 lcdc: pull down hsync and vsync to prevent leakage in suspend --- drivers/video/rockchip/lcdc/rk3188_lcdc.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.34.1