dsi.h (c441bfb5f2866de71e092c1b9d866a65978dfe1a) dsi.h (9d30a4bcf43c255498a537169c9bf279e6ec55de)
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
9#include <linux/of_platform.h>
10#include <linux/platform_device.h>
11
12#include <drm/drm_bridge.h>
13#include <drm/drm_crtc.h>
14#include <drm/drm_mipi_dsi.h>
15#include <drm/drm_panel.h>
16
17#include "msm_drv.h"
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
9#include <linux/of_platform.h>
10#include <linux/platform_device.h>
11
12#include <drm/drm_bridge.h>
13#include <drm/drm_crtc.h>
14#include <drm/drm_mipi_dsi.h>
15#include <drm/drm_panel.h>
16
17#include "msm_drv.h"
18#include "disp/msm_disp_snapshot.h"
18
19#define DSI_0 0
20#define DSI_1 1
21#define DSI_MAX 2
22
23struct msm_dsi_phy_shared_timings;
24struct msm_dsi_phy_clk_request;
25

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

85bool msm_dsi_manager_validate_current_config(u8 id);
86
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
19
20#define DSI_0 0
21#define DSI_1 1
22#define DSI_MAX 2
23
24struct msm_dsi_phy_shared_timings;
25struct msm_dsi_phy_clk_request;
26

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

86bool msm_dsi_manager_validate_current_config(u8 id);
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
94void msm_dsi_snapshot(struct msm_dsi *msm_dsi);
95
93struct drm_encoder *msm_dsi_get_encoder(struct msm_dsi *msm_dsi);
94
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);

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

141void *dsi_tx_buf_get_v2(struct msm_dsi_host *msm_host);
142void dsi_tx_buf_put_6g(struct msm_dsi_host *msm_host);
143int dsi_dma_base_get_6g(struct msm_dsi_host *msm_host, uint64_t *iova);
144int dsi_dma_base_get_v2(struct msm_dsi_host *msm_host, uint64_t *iova);
145int dsi_clk_init_v2(struct msm_dsi_host *msm_host);
146int dsi_clk_init_6g_v2(struct msm_dsi_host *msm_host);
147int dsi_calc_clk_rate_v2(struct msm_dsi_host *msm_host, bool is_dual_dsi);
148int dsi_calc_clk_rate_6g(struct msm_dsi_host *msm_host, bool is_dual_dsi);
96struct drm_encoder *msm_dsi_get_encoder(struct msm_dsi *msm_dsi);
97
98/* dsi host */
99struct msm_dsi_host;
100int msm_dsi_host_xfer_prepare(struct mipi_dsi_host *host,
101 const struct mipi_dsi_msg *msg);
102void msm_dsi_host_xfer_restore(struct mipi_dsi_host *host,
103 const struct mipi_dsi_msg *msg);

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

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

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

--- 21 unchanged lines hidden ---