From: Xubilv Date: Sat, 8 Oct 2016 12:01:42 +0000 (+0800) Subject: video: rockchip: edp: add support connect to vopl X-Git-Tag: firefly_0821_release~1446 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2c2d00abe945b14bd85d9979b6a2e202cff03f81;p=firefly-linux-kernel-4.4.55.git video: rockchip: edp: add support connect to vopl Change-Id: I13347beed5548b073f616fe94d3b900c19c50c5d Signed-off-by: Xubilv --- diff --git a/drivers/video/rockchip/transmitter/rk32_dp.c b/drivers/video/rockchip/transmitter/rk32_dp.c index ec036006daa1..1f665551bc39 100755 --- a/drivers/video/rockchip/transmitter/rk32_dp.c +++ b/drivers/video/rockchip/transmitter/rk32_dp.c @@ -44,6 +44,7 @@ /*#define SW_LT*/ #define RK3368_GRF_SOC_CON4 0x410 +#define RK3399_GRF_SOC_CON20 0x6250 static struct rk32_edp *rk32_edp; @@ -138,6 +139,14 @@ static int rk32_edp_init_edp(struct rk32_edp *edp) writel_relaxed(val, RK_GRF_VIRT + RK3288_GRF_SOC_CON6); } + if (edp->soctype == SOC_RK3399) { + if (screen->lcdc_id == 1) /*select lcdc*/ + val = EDP_SEL_VOP_LIT | (EDP_SEL_VOP_LIT << 16); + else + val = EDP_SEL_VOP_LIT << 16; + regmap_write(edp->grf, RK3399_GRF_SOC_CON20, val); + } + rk32_edp_reset(edp); rk32_edp_init_refclk(edp); rk32_edp_init_interrupt(edp);