dsi.h (95b814e4f6391ca6c04968e4f634eaceab4e459a) | dsi.h (5d13459650b3668edcd6d180787aac38d001c4ed) |
---|---|
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 --- 82 unchanged lines hidden (view full) --- 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_destroy(struct msm_dsi_pll *pll); | 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 --- 82 unchanged lines hidden (view full) --- 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_destroy(struct msm_dsi_pll *pll); |
99int msm_dsi_pll_get_clk_provider(struct msm_dsi_pll *pll, 100 struct clk **byte_clk_provider, struct clk **pixel_clk_provider); | |
101void msm_dsi_pll_save_state(struct msm_dsi_pll *pll); 102int msm_dsi_pll_restore_state(struct msm_dsi_pll *pll); 103#else 104static inline void msm_dsi_pll_destroy(struct msm_dsi_pll *pll) 105{ 106} | 99void msm_dsi_pll_save_state(struct msm_dsi_pll *pll); 100int msm_dsi_pll_restore_state(struct msm_dsi_pll *pll); 101#else 102static inline void msm_dsi_pll_destroy(struct msm_dsi_pll *pll) 103{ 104} |
107static inline int msm_dsi_pll_get_clk_provider(struct msm_dsi_pll *pll, 108 struct clk **byte_clk_provider, struct clk **pixel_clk_provider) 109{ 110 return -ENODEV; 111} | |
112static inline void msm_dsi_pll_save_state(struct msm_dsi_pll *pll) 113{ 114} 115static inline int msm_dsi_pll_restore_state(struct msm_dsi_pll *pll) 116{ 117 return 0; 118} 119#endif --- 19 unchanged lines hidden (view full) --- 139int msm_dsi_host_set_display_mode(struct mipi_dsi_host *host, 140 const struct drm_display_mode *mode); 141struct drm_panel *msm_dsi_host_get_panel(struct mipi_dsi_host *host); 142unsigned long msm_dsi_host_get_mode_flags(struct mipi_dsi_host *host); 143struct drm_bridge *msm_dsi_host_get_bridge(struct mipi_dsi_host *host); 144int msm_dsi_host_register(struct mipi_dsi_host *host, bool check_defer); 145void msm_dsi_host_unregister(struct mipi_dsi_host *host); 146int msm_dsi_host_set_src_pll(struct mipi_dsi_host *host, | 105static inline void msm_dsi_pll_save_state(struct msm_dsi_pll *pll) 106{ 107} 108static inline int msm_dsi_pll_restore_state(struct msm_dsi_pll *pll) 109{ 110 return 0; 111} 112#endif --- 19 unchanged lines hidden (view full) --- 132int msm_dsi_host_set_display_mode(struct mipi_dsi_host *host, 133 const struct drm_display_mode *mode); 134struct drm_panel *msm_dsi_host_get_panel(struct mipi_dsi_host *host); 135unsigned long msm_dsi_host_get_mode_flags(struct mipi_dsi_host *host); 136struct drm_bridge *msm_dsi_host_get_bridge(struct mipi_dsi_host *host); 137int msm_dsi_host_register(struct mipi_dsi_host *host, bool check_defer); 138void msm_dsi_host_unregister(struct mipi_dsi_host *host); 139int msm_dsi_host_set_src_pll(struct mipi_dsi_host *host, |
147 struct msm_dsi_pll *src_pll); | 140 struct msm_dsi_phy *src_phy); |
148void msm_dsi_host_reset_phy(struct mipi_dsi_host *host); 149void msm_dsi_host_get_phy_clk_req(struct mipi_dsi_host *host, 150 struct msm_dsi_phy_clk_request *clk_req, 151 bool is_dual_dsi); 152void msm_dsi_host_destroy(struct mipi_dsi_host *host); 153int msm_dsi_host_modeset_init(struct mipi_dsi_host *host, 154 struct drm_device *dev); 155int msm_dsi_host_init(struct msm_dsi *msm_dsi); --- 35 unchanged lines hidden (view full) --- 191int msm_dsi_phy_enable(struct msm_dsi_phy *phy, int src_pll_id, 192 struct msm_dsi_phy_clk_request *clk_req); 193void msm_dsi_phy_disable(struct msm_dsi_phy *phy); 194void msm_dsi_phy_get_shared_timings(struct msm_dsi_phy *phy, 195 struct msm_dsi_phy_shared_timings *shared_timing); 196struct msm_dsi_pll *msm_dsi_phy_get_pll(struct msm_dsi_phy *phy); 197void msm_dsi_phy_set_usecase(struct msm_dsi_phy *phy, 198 enum msm_dsi_phy_usecase uc); | 141void msm_dsi_host_reset_phy(struct mipi_dsi_host *host); 142void msm_dsi_host_get_phy_clk_req(struct mipi_dsi_host *host, 143 struct msm_dsi_phy_clk_request *clk_req, 144 bool is_dual_dsi); 145void msm_dsi_host_destroy(struct mipi_dsi_host *host); 146int msm_dsi_host_modeset_init(struct mipi_dsi_host *host, 147 struct drm_device *dev); 148int msm_dsi_host_init(struct msm_dsi *msm_dsi); --- 35 unchanged lines hidden (view full) --- 184int msm_dsi_phy_enable(struct msm_dsi_phy *phy, int src_pll_id, 185 struct msm_dsi_phy_clk_request *clk_req); 186void msm_dsi_phy_disable(struct msm_dsi_phy *phy); 187void msm_dsi_phy_get_shared_timings(struct msm_dsi_phy *phy, 188 struct msm_dsi_phy_shared_timings *shared_timing); 189struct msm_dsi_pll *msm_dsi_phy_get_pll(struct msm_dsi_phy *phy); 190void msm_dsi_phy_set_usecase(struct msm_dsi_phy *phy, 191 enum msm_dsi_phy_usecase uc); |
192int msm_dsi_phy_get_clk_provider(struct msm_dsi_phy *phy, 193 struct clk **byte_clk_provider, struct clk **pixel_clk_provider); |
|
199 200#endif /* __DSI_CONNECTOR_H__ */ 201 | 194 195#endif /* __DSI_CONNECTOR_H__ */ 196 |