From: Huang Jiachai Date: Fri, 3 Jun 2016 06:41:05 +0000 (+0800) Subject: video: rockchip: vop: 3399: improve the vop bandwidth issue X-Git-Tag: firefly_0821_release~2509 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dd8a1e839ab5e3a12bce13c9e91e0749262b1181;p=firefly-linux-kernel-4.4.55.git video: rockchip: vop: 3399: improve the vop bandwidth issue Change-Id: Ie2701dfe763de54dd0bfba5d24de05c77f1caa31 Signed-off-by: Huang Jiachai --- diff --git a/drivers/video/rockchip/lcdc/rk322x_lcdc.c b/drivers/video/rockchip/lcdc/rk322x_lcdc.c index 386708e53f45..3f647251b07c 100644 --- a/drivers/video/rockchip/lcdc/rk322x_lcdc.c +++ b/drivers/video/rockchip/lcdc/rk322x_lcdc.c @@ -1808,6 +1808,10 @@ static int vop_config_timing(struct rk_lcdc_driver *dev_drv) vop_msk_reg(vop_dev, LINE_FLAG, val); } vop_post_cfg(dev_drv); + if (x_res <= VOP_INPUT_MAX_WIDTH / 2) + vop_msk_reg(vop_dev, SYS_CTRL, V_POST_LB_MODE(1)); + else + vop_msk_reg(vop_dev, SYS_CTRL, V_POST_LB_MODE(0)); return 0; }