dsi.h (94ad6ec987393824d253d963e974a798e870c34e) dsi.h (5e2a72d43498a46777c618ef97b8ee3ebf188567)
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

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

79struct drm_connector *msm_dsi_manager_connector_init(u8 id);
80struct drm_connector *msm_dsi_manager_ext_bridge_init(u8 id);
81int msm_dsi_manager_cmd_xfer(int id, const struct mipi_dsi_msg *msg);
82bool msm_dsi_manager_cmd_xfer_trigger(int id, u32 dma_base, u32 len);
83void msm_dsi_manager_setup_encoder(int id);
84int msm_dsi_manager_register(struct msm_dsi *msm_dsi);
85void msm_dsi_manager_unregister(struct msm_dsi *msm_dsi);
86bool msm_dsi_manager_validate_current_config(u8 id);
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

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

79struct drm_connector *msm_dsi_manager_connector_init(u8 id);
80struct drm_connector *msm_dsi_manager_ext_bridge_init(u8 id);
81int msm_dsi_manager_cmd_xfer(int id, const struct mipi_dsi_msg *msg);
82bool msm_dsi_manager_cmd_xfer_trigger(int id, u32 dma_base, u32 len);
83void msm_dsi_manager_setup_encoder(int id);
84int msm_dsi_manager_register(struct msm_dsi *msm_dsi);
85void msm_dsi_manager_unregister(struct msm_dsi *msm_dsi);
86bool msm_dsi_manager_validate_current_config(u8 id);
87void msm_dsi_manager_tpg_enable(void);
87
88/* msm dsi */
89static inline bool msm_dsi_device_connected(struct msm_dsi *msm_dsi)
90{
91 return msm_dsi->panel || msm_dsi->external_bridge;
92}
93
94struct drm_encoder *msm_dsi_get_encoder(struct msm_dsi *msm_dsi);

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

143void dsi_tx_buf_put_6g(struct msm_dsi_host *msm_host);
144int dsi_dma_base_get_6g(struct msm_dsi_host *msm_host, uint64_t *iova);
145int dsi_dma_base_get_v2(struct msm_dsi_host *msm_host, uint64_t *iova);
146int dsi_clk_init_v2(struct msm_dsi_host *msm_host);
147int dsi_clk_init_6g_v2(struct msm_dsi_host *msm_host);
148int dsi_calc_clk_rate_v2(struct msm_dsi_host *msm_host, bool is_dual_dsi);
149int dsi_calc_clk_rate_6g(struct msm_dsi_host *msm_host, bool is_dual_dsi);
150void msm_dsi_host_snapshot(struct msm_disp_state *disp_state, struct mipi_dsi_host *host);
88
89/* msm dsi */
90static inline bool msm_dsi_device_connected(struct msm_dsi *msm_dsi)
91{
92 return msm_dsi->panel || msm_dsi->external_bridge;
93}
94
95struct drm_encoder *msm_dsi_get_encoder(struct msm_dsi *msm_dsi);

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

144void dsi_tx_buf_put_6g(struct msm_dsi_host *msm_host);
145int dsi_dma_base_get_6g(struct msm_dsi_host *msm_host, uint64_t *iova);
146int dsi_dma_base_get_v2(struct msm_dsi_host *msm_host, uint64_t *iova);
147int dsi_clk_init_v2(struct msm_dsi_host *msm_host);
148int dsi_clk_init_6g_v2(struct msm_dsi_host *msm_host);
149int dsi_calc_clk_rate_v2(struct msm_dsi_host *msm_host, bool is_dual_dsi);
150int dsi_calc_clk_rate_6g(struct msm_dsi_host *msm_host, bool is_dual_dsi);
151void msm_dsi_host_snapshot(struct msm_disp_state *disp_state, struct mipi_dsi_host *host);
152void msm_dsi_host_test_pattern_en(struct mipi_dsi_host *host);
153
151/* dsi phy */
152struct msm_dsi_phy;
153struct msm_dsi_phy_shared_timings {
154 u32 clk_post;
155 u32 clk_pre;
156 bool clk_pre_inc_by_2;
157};
158

--- 21 unchanged lines hidden ---
154/* dsi phy */
155struct msm_dsi_phy;
156struct msm_dsi_phy_shared_timings {
157 u32 clk_post;
158 u32 clk_pre;
159 bool clk_pre_inc_by_2;
160};
161

--- 21 unchanged lines hidden ---