From: hjc Date: Tue, 6 May 2014 00:27:22 +0000 (+0800) Subject: rk3288 lcdc: close vop auto gating X-Git-Tag: firefly_0821_release~5370 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4be5c8bbb04b4b51da4816ca91942015a6a7a3bb;p=firefly-linux-kernel-4.4.55.git rk3288 lcdc: close vop auto gating --- diff --git a/drivers/video/rockchip/lcdc/rk3288_lcdc.c b/drivers/video/rockchip/lcdc/rk3288_lcdc.c index 627d5d2ffbd1..b248b5d0dc37 100755 --- a/drivers/video/rockchip/lcdc/rk3288_lcdc.c +++ b/drivers/video/rockchip/lcdc/rk3288_lcdc.c @@ -201,6 +201,7 @@ static int rk3288_lcdc_reg_dump(struct rk_lcdc_driver *dev_drv) static int rk3288_lcdc_pre_init(struct rk_lcdc_driver *dev_drv) { int v,i; + u32 mask,val; struct lcdc_device *lcdc_dev = container_of(dev_drv, struct lcdc_device, @@ -254,10 +255,14 @@ static int rk3288_lcdc_pre_init(struct rk_lcdc_driver *dev_drv) lcdc_writel(lcdc_dev,FRC_LOWER11_0,0xdeb77deb); lcdc_writel(lcdc_dev,FRC_LOWER11_1,0xed7bb7de); - lcdc_set_bit(lcdc_dev, SYS_CTRL, m_AUTO_GATING_EN); + mask = m_AUTO_GATING_EN; + val = v_AUTO_GATING_EN(0); + lcdc_msk_reg(lcdc_dev, SYS_CTRL, mask,val); + lcdc_cfg_done(lcdc_dev); lcdc_dev->pre_init = true; + return 0; }