target: add support to use DSI1 PLL to drive a display panel
In the current implementation, we use only DSI0 PLL to drive both
the single DSI and split DSI use cases. However, there can be use
cases where a single DSI panel needs to be driven on DSI1 controller
using DSI1 PLL. Hence, add support for using DSI1 PLL.
Change-Id: If26383c1dc14306cadfa5ad832ffbafb1557222a
diff --git a/target/msm8952/target_display.c b/target/msm8952/target_display.c
index 23976fd..9a86cd9 100644
--- a/target/msm8952/target_display.c
+++ b/target/msm8952/target_display.c
@@ -246,10 +246,10 @@
mdp_gdsc_ctrl(0);
return ret;
}
- mdss_dsi_uniphy_pll_sw_reset_8952(DSI0_PLL_BASE);
- mdss_dsi_auto_pll_config(pinfo->mipi.pll_0_base,
+ mdss_dsi_uniphy_pll_sw_reset_8952(pinfo->mipi.pll_base);
+ mdss_dsi_auto_pll_config(pinfo->mipi.pll_base,
pinfo->mipi.ctl_base, pll_data);
- if (!dsi_pll_enable_seq_8952(pinfo->mipi.pll_0_base))
+ if (!dsi_pll_enable_seq_8952(pinfo->mipi.pll_base))
dprintf(CRITICAL, "Not able to enable the pll\n");
gcc_dsi_clocks_enable(pll_data->pclk_m, pll_data->pclk_n,
pll_data->pclk_d);