projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4f1e0a
)
video: rockchip: vop: 3399: cabc mode indicate whether cabc enable or not
author
Huang Jiachai
<hjc@rock-chips.com>
Tue, 23 Aug 2016 12:27:41 +0000
(20:27 +0800)
committer
Huang, Tao
<huangtao@rock-chips.com>
Wed, 24 Aug 2016 11:27:21 +0000
(19:27 +0800)
Change-Id: Ia4911d746c934b91a887881660373e4b4824f314
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
drivers/video/rockchip/lcdc/rk322x_lcdc.c
patch
|
blob
|
history
diff --git
a/drivers/video/rockchip/lcdc/rk322x_lcdc.c
b/drivers/video/rockchip/lcdc/rk322x_lcdc.c
index 74d71da379419061eef20e649820cf2536bdd4fc..c4af864426b20898bfb4fc66e9db268227412c15 100644
(file)
--- a/
drivers/video/rockchip/lcdc/rk322x_lcdc.c
+++ b/
drivers/video/rockchip/lcdc/rk322x_lcdc.c
@@
-4403,8
+4403,7
@@
static int vop_set_dsp_cabc(struct rk_lcdc_driver *dev_drv, int mode,
return 0;
}
- dev_drv->cabc_mode = mode;
- if (!dev_drv->cabc_mode) {
+ if (!mode) {
spin_lock(&vop_dev->reg_lock);
if (vop_dev->clk_on) {
vop_msk_reg(vop_dev, CABC_CTRL0,
@@
-4840,6
+4839,11
@@
static int vop_parse_dt(struct vop_device *vop_dev)
else
dev_drv->rotate_mode = val;
+ if (of_property_read_u32(np, "rockchip,cabc_mode", &val))
+ dev_drv->cabc_mode = 0; /* default set close cabc */
+ else
+ dev_drv->cabc_mode = val;
+
if (of_property_read_u32(np, "rockchip,pwr18", &val))
/*default set it as 3.xv power supply */
vop_dev->pwr18 = false;