platform: msm_shared: use base + offset programming style for DSI
Modify the code to specify register addresses as an offset from the DSI
controller base. This removes the hard dependency on a particular
controller and allows display to be brought up using any DSI controller.
In order to achieve this, separate out all programming for legacy
targets to a single compiler define DISPLAY_TYPE_MDSS and ensure that
all the programming for supported targets use the new style.
Change-Id: Ideb119c3a90cefa1899d15e443af36e2854d316d
diff --git a/platform/msm_shared/mipi_dsi_phy.c b/platform/msm_shared/mipi_dsi_phy.c
index 9fd69a4..ffcb407 100644
--- a/platform/msm_shared/mipi_dsi_phy.c
+++ b/platform/msm_shared/mipi_dsi_phy.c
@@ -91,6 +91,7 @@
}
}
+#if (DISPLAY_TYPE_MDSS == 0)
int mipi_dsi_phy_init(struct mipi_dsi_panel_config *pinfo)
{
struct mipi_dsi_phy_ctrl *pd;
@@ -202,6 +203,7 @@
}
return 0;
}
+#endif
void mdss_dsi_phy_sw_reset(uint32_t ctl_base)
{