target: msm8952: add display support for SDM439 target
Add changes to enable display support for SDM439 device. This
includes enabling the required LDOs, GPIOs and adjusting the
register offsets for MDSS.
Change-Id: I3a26b0b4d30f9d5fcd5b1a5926d9de98b704300b
diff --git a/target/msm8952/oem_panel.c b/target/msm8952/oem_panel.c
old mode 100644
new mode 100755
index 19369f8..cb0e050
--- a/target/msm8952/oem_panel.c
+++ b/target/msm8952/oem_panel.c
@@ -849,12 +849,19 @@
* Update all data structures after 'panel_init' label. Only panel
* selection is supposed to happen before that.
*/
+ if (platform_is_sdm439() || platform_is_sdm429()) {
+ phy_db->pll_type = DSI_PLL_TYPE_12NM;
+ pinfo->lane_config = mdss_dsi_lane_config;
+ goto end;
+ }
+
if (platform_is_msm8956())
memcpy(panel_regulator_settings,
dcdc_regulator_settings_hpm, REGULATOR_SIZE);
else
memcpy(panel_regulator_settings,
dcdc_regulator_settings_lpm, REGULATOR_SIZE);
+end:
pinfo->pipe_type = MDSS_MDP_PIPE_TYPE_RGB;
return init_panel_data(panelstruct, pinfo, phy_db);
}