From 2c2d00abe945b14bd85d9979b6a2e202cff03f81 Mon Sep 17 00:00:00 2001 From: Xubilv Date: Sat, 8 Oct 2016 20:01:42 +0800 Subject: [PATCH] video: rockchip: edp: add support connect to vopl Change-Id: I13347beed5548b073f616fe94d3b900c19c50c5d Signed-off-by: Xubilv --- drivers/video/rockchip/transmitter/rk32_dp.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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); -- 2.34.1