dsi.h (613cbd1da3c9801c0ffb421d15d76b67afb3ca08) dsi.h (aaadcbb4d70239b24b469ede7637c332820c12f0)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
4 */
5
6#ifndef __DSI_CONNECTOR_H__
7#define __DSI_CONNECTOR_H__
8

--- 78 unchanged lines hidden (view full) ---

87/* msm dsi */
88static inline bool msm_dsi_device_connected(struct msm_dsi *msm_dsi)
89{
90 return msm_dsi->panel || msm_dsi->external_bridge;
91}
92
93struct drm_encoder *msm_dsi_get_encoder(struct msm_dsi *msm_dsi);
94
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
4 */
5
6#ifndef __DSI_CONNECTOR_H__
7#define __DSI_CONNECTOR_H__
8

--- 78 unchanged lines hidden (view full) ---

87/* msm dsi */
88static inline bool msm_dsi_device_connected(struct msm_dsi *msm_dsi)
89{
90 return msm_dsi->panel || msm_dsi->external_bridge;
91}
92
93struct drm_encoder *msm_dsi_get_encoder(struct msm_dsi *msm_dsi);
94
95/* dsi pll */
96struct msm_dsi_pll;
97#ifdef CONFIG_DRM_MSM_DSI_PLL
98void msm_dsi_pll_save_state(struct msm_dsi_pll *pll);
99int msm_dsi_pll_restore_state(struct msm_dsi_pll *pll);
100#else
101static inline void msm_dsi_pll_save_state(struct msm_dsi_pll *pll)
102{
103}
104static inline int msm_dsi_pll_restore_state(struct msm_dsi_pll *pll)
105{
106 return 0;
107}
108#endif
109
110/* dsi host */
111struct msm_dsi_host;
112int msm_dsi_host_xfer_prepare(struct mipi_dsi_host *host,
113 const struct mipi_dsi_msg *msg);
114void msm_dsi_host_xfer_restore(struct mipi_dsi_host *host,
115 const struct mipi_dsi_msg *msg);
116int msm_dsi_host_cmd_tx(struct mipi_dsi_host *host,
117 const struct mipi_dsi_msg *msg);

--- 59 unchanged lines hidden (view full) ---

177
178void msm_dsi_phy_driver_register(void);
179void msm_dsi_phy_driver_unregister(void);
180int msm_dsi_phy_enable(struct msm_dsi_phy *phy, int src_pll_id,
181 struct msm_dsi_phy_clk_request *clk_req);
182void msm_dsi_phy_disable(struct msm_dsi_phy *phy);
183void msm_dsi_phy_get_shared_timings(struct msm_dsi_phy *phy,
184 struct msm_dsi_phy_shared_timings *shared_timing);
95/* dsi host */
96struct msm_dsi_host;
97int msm_dsi_host_xfer_prepare(struct mipi_dsi_host *host,
98 const struct mipi_dsi_msg *msg);
99void msm_dsi_host_xfer_restore(struct mipi_dsi_host *host,
100 const struct mipi_dsi_msg *msg);
101int msm_dsi_host_cmd_tx(struct mipi_dsi_host *host,
102 const struct mipi_dsi_msg *msg);

--- 59 unchanged lines hidden (view full) ---

162
163void msm_dsi_phy_driver_register(void);
164void msm_dsi_phy_driver_unregister(void);
165int msm_dsi_phy_enable(struct msm_dsi_phy *phy, int src_pll_id,
166 struct msm_dsi_phy_clk_request *clk_req);
167void msm_dsi_phy_disable(struct msm_dsi_phy *phy);
168void msm_dsi_phy_get_shared_timings(struct msm_dsi_phy *phy,
169 struct msm_dsi_phy_shared_timings *shared_timing);
185struct msm_dsi_pll *msm_dsi_phy_get_pll(struct msm_dsi_phy *phy);
186void msm_dsi_phy_set_usecase(struct msm_dsi_phy *phy,
187 enum msm_dsi_phy_usecase uc);
188int msm_dsi_phy_get_clk_provider(struct msm_dsi_phy *phy,
189 struct clk **byte_clk_provider, struct clk **pixel_clk_provider);
170void msm_dsi_phy_set_usecase(struct msm_dsi_phy *phy,
171 enum msm_dsi_phy_usecase uc);
172int msm_dsi_phy_get_clk_provider(struct msm_dsi_phy *phy,
173 struct clk **byte_clk_provider, struct clk **pixel_clk_provider);
174void msm_dsi_phy_pll_save_state(struct msm_dsi_phy *phy);
175int msm_dsi_phy_pll_restore_state(struct msm_dsi_phy *phy);
190
191#endif /* __DSI_CONNECTOR_H__ */
192
176
177#endif /* __DSI_CONNECTOR_H__ */
178