From 4be5c8bbb04b4b51da4816ca91942015a6a7a3bb Mon Sep 17 00:00:00 2001 From: hjc Date: Tue, 6 May 2014 08:27:22 +0800 Subject: [PATCH] rk3288 lcdc: close vop auto gating --- drivers/video/rockchip/lcdc/rk3288_lcdc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } -- 2.34.1