aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/dsi/dsi.h
diff options
context:
space:
mode:
authorHai Li <hali@codeaurora.org>2015-06-10 13:18:17 -0400
committerRob Clark <robdclark@gmail.com>2015-08-15 18:27:11 -0400
commit13351cd17791694f2dcc96dc920e58b090b18c31 (patch)
treea6afd9972e16db3b8db4c0073097dd3bf0795354 /drivers/gpu/drm/msm/dsi/dsi.h
parentc6a57a50ad562a2e6fc6ac3218b710caea73a58b (diff)
drm/msm/dsi: Update source PLL selection in DSI PHY
The source PLL to be used by each DSI PHY should be decided by DSI manager based on dual DSI information, while the register programming to select PLL is different from one type of PHY to another. This change adds the H/W difference to PHY configuration and updates the interface between DSI manager and PHY. With this change, PLL selection can be supported on different targets. Signed-off-by: Hai Li <hali@codeaurora.org> Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/dsi/dsi.h')
-rw-r--r--drivers/gpu/drm/msm/dsi/dsi.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/gpu/drm/msm/dsi/dsi.h b/drivers/gpu/drm/msm/dsi/dsi.h
index 92d697de4858..5e29aadc0bee 100644
--- a/drivers/gpu/drm/msm/dsi/dsi.h
+++ b/drivers/gpu/drm/msm/dsi/dsi.h
@@ -27,18 +27,6 @@
27#define DSI_1 1 27#define DSI_1 1
28#define DSI_MAX 2 28#define DSI_MAX 2
29 29
30#define DSI_CLOCK_MASTER DSI_0
31#define DSI_CLOCK_SLAVE DSI_1
32
33#define DSI_LEFT DSI_0
34#define DSI_RIGHT DSI_1
35
36/* According to the current drm framework sequence, take the encoder of
37 * DSI_1 as master encoder
38 */
39#define DSI_ENCODER_MASTER DSI_1
40#define DSI_ENCODER_SLAVE DSI_0
41
42enum msm_dsi_phy_type { 30enum msm_dsi_phy_type {
43 MSM_DSI_PHY_28NM_HPM, 31 MSM_DSI_PHY_28NM_HPM,
44 MSM_DSI_PHY_28NM_LP, 32 MSM_DSI_PHY_28NM_LP,
@@ -153,7 +141,7 @@ int msm_dsi_host_init(struct msm_dsi *msm_dsi);
153struct msm_dsi_phy; 141struct msm_dsi_phy;
154void msm_dsi_phy_driver_register(void); 142void msm_dsi_phy_driver_register(void);
155void msm_dsi_phy_driver_unregister(void); 143void msm_dsi_phy_driver_unregister(void);
156int msm_dsi_phy_enable(struct msm_dsi_phy *phy, bool is_dual_panel, 144int msm_dsi_phy_enable(struct msm_dsi_phy *phy, int src_pll_id,
157 const unsigned long bit_rate, const unsigned long esc_rate); 145 const unsigned long bit_rate, const unsigned long esc_rate);
158int msm_dsi_phy_disable(struct msm_dsi_phy *phy); 146int msm_dsi_phy_disable(struct msm_dsi_phy *phy);
159void msm_dsi_phy_get_clk_pre_post(struct msm_dsi_phy *phy, 147void msm_dsi_phy_get_clk_pre_post(struct msm_dsi_phy *phy,