dsi.h (5e2a72d43498a46777c618ef97b8ee3ebf188567) dsi.h (6183606da324b934166e7b47c3be6176fa86f9ff)
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

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

105int msm_dsi_host_cmd_rx(struct mipi_dsi_host *host,
106 const struct mipi_dsi_msg *msg);
107void msm_dsi_host_cmd_xfer_commit(struct mipi_dsi_host *host,
108 u32 dma_base, u32 len);
109int msm_dsi_host_enable(struct mipi_dsi_host *host);
110int msm_dsi_host_disable(struct mipi_dsi_host *host);
111int msm_dsi_host_power_on(struct mipi_dsi_host *host,
112 struct msm_dsi_phy_shared_timings *phy_shared_timings,
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

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

105int msm_dsi_host_cmd_rx(struct mipi_dsi_host *host,
106 const struct mipi_dsi_msg *msg);
107void msm_dsi_host_cmd_xfer_commit(struct mipi_dsi_host *host,
108 u32 dma_base, u32 len);
109int msm_dsi_host_enable(struct mipi_dsi_host *host);
110int msm_dsi_host_disable(struct mipi_dsi_host *host);
111int msm_dsi_host_power_on(struct mipi_dsi_host *host,
112 struct msm_dsi_phy_shared_timings *phy_shared_timings,
113 bool is_dual_dsi);
113 bool is_bonded_dsi);
114int msm_dsi_host_power_off(struct mipi_dsi_host *host);
115int msm_dsi_host_set_display_mode(struct mipi_dsi_host *host,
116 const struct drm_display_mode *mode);
117struct drm_panel *msm_dsi_host_get_panel(struct mipi_dsi_host *host);
118unsigned long msm_dsi_host_get_mode_flags(struct mipi_dsi_host *host);
119struct drm_bridge *msm_dsi_host_get_bridge(struct mipi_dsi_host *host);
120int msm_dsi_host_register(struct mipi_dsi_host *host, bool check_defer);
121void msm_dsi_host_unregister(struct mipi_dsi_host *host);
122int msm_dsi_host_set_src_pll(struct mipi_dsi_host *host,
123 struct msm_dsi_phy *src_phy);
124void msm_dsi_host_reset_phy(struct mipi_dsi_host *host);
125void msm_dsi_host_get_phy_clk_req(struct mipi_dsi_host *host,
126 struct msm_dsi_phy_clk_request *clk_req,
114int msm_dsi_host_power_off(struct mipi_dsi_host *host);
115int msm_dsi_host_set_display_mode(struct mipi_dsi_host *host,
116 const struct drm_display_mode *mode);
117struct drm_panel *msm_dsi_host_get_panel(struct mipi_dsi_host *host);
118unsigned long msm_dsi_host_get_mode_flags(struct mipi_dsi_host *host);
119struct drm_bridge *msm_dsi_host_get_bridge(struct mipi_dsi_host *host);
120int msm_dsi_host_register(struct mipi_dsi_host *host, bool check_defer);
121void msm_dsi_host_unregister(struct mipi_dsi_host *host);
122int msm_dsi_host_set_src_pll(struct mipi_dsi_host *host,
123 struct msm_dsi_phy *src_phy);
124void msm_dsi_host_reset_phy(struct mipi_dsi_host *host);
125void msm_dsi_host_get_phy_clk_req(struct mipi_dsi_host *host,
126 struct msm_dsi_phy_clk_request *clk_req,
127 bool is_dual_dsi);
127 bool is_bonded_dsi);
128void msm_dsi_host_destroy(struct mipi_dsi_host *host);
129int msm_dsi_host_modeset_init(struct mipi_dsi_host *host,
130 struct drm_device *dev);
131int msm_dsi_host_init(struct msm_dsi *msm_dsi);
132int msm_dsi_runtime_suspend(struct device *dev);
133int msm_dsi_runtime_resume(struct device *dev);
134int dsi_link_clk_set_rate_6g(struct msm_dsi_host *msm_host);
135int dsi_link_clk_set_rate_v2(struct msm_dsi_host *msm_host);

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

141int dsi_tx_buf_alloc_v2(struct msm_dsi_host *msm_host, int size);
142void *dsi_tx_buf_get_6g(struct msm_dsi_host *msm_host);
143void *dsi_tx_buf_get_v2(struct msm_dsi_host *msm_host);
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);
128void msm_dsi_host_destroy(struct mipi_dsi_host *host);
129int msm_dsi_host_modeset_init(struct mipi_dsi_host *host,
130 struct drm_device *dev);
131int msm_dsi_host_init(struct msm_dsi *msm_dsi);
132int msm_dsi_runtime_suspend(struct device *dev);
133int msm_dsi_runtime_resume(struct device *dev);
134int dsi_link_clk_set_rate_6g(struct msm_dsi_host *msm_host);
135int dsi_link_clk_set_rate_v2(struct msm_dsi_host *msm_host);

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

141int dsi_tx_buf_alloc_v2(struct msm_dsi_host *msm_host, int size);
142void *dsi_tx_buf_get_6g(struct msm_dsi_host *msm_host);
143void *dsi_tx_buf_get_v2(struct msm_dsi_host *msm_host);
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);
149int dsi_calc_clk_rate_v2(struct msm_dsi_host *msm_host, bool is_bonded_dsi);
150int dsi_calc_clk_rate_6g(struct msm_dsi_host *msm_host, bool is_bonded_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
154/* dsi phy */
155struct msm_dsi_phy;
156struct msm_dsi_phy_shared_timings {
157 u32 clk_post;
158 u32 clk_pre;

--- 24 unchanged lines hidden ---
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
154/* dsi phy */
155struct msm_dsi_phy;
156struct msm_dsi_phy_shared_timings {
157 u32 clk_post;
158 u32 clk_pre;

--- 24 unchanged lines hidden ---