rk3288 lcdc: close vop auto gating
authorhjc <hjc@rock-chips.com>
Tue, 6 May 2014 00:27:22 +0000 (08:27 +0800)
committerhjc <hjc@rock-chips.com>
Tue, 6 May 2014 00:27:56 +0000 (08:27 +0800)
drivers/video/rockchip/lcdc/rk3288_lcdc.c

index 627d5d2ffbd1691239cc43998e9daf2975073a12..b248b5d0dc372a3c4659ed86b3b05366d464d70c 100755 (executable)
@@ -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;
 }