rk3188 lcdc: pull down hsync and vsync to prevent leakage in suspend
authorhjc <hjc@rock-chips.com>
Sat, 24 Aug 2013 02:18:36 +0000 (10:18 +0800)
committerhjc <hjc@rock-chips.com>
Sat, 24 Aug 2013 02:21:34 +0000 (10:21 +0800)
drivers/video/rockchip/lcdc/rk3188_lcdc.c

index e1341bc7382dc784cf8bbe2aca9c563d73105ff9..b907416f1e7e3b6b0ea1278cf0662259d0fc1a68 100755 (executable)
@@ -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);
        }