forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/gpu/drm/msm/dsi/dsi.h
....@@ -1,14 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 and
6
- * only version 2 as published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
124 */
135
146 #ifndef __DSI_CONNECTOR_H__
....@@ -17,6 +9,7 @@
179 #include <linux/of_platform.h>
1810 #include <linux/platform_device.h>
1911
12
+#include <drm/drm_bridge.h>
2013 #include <drm/drm_crtc.h>
2114 #include <drm/drm_mipi_dsi.h>
2215 #include <drm/drm_panel.h>
....@@ -37,6 +30,8 @@
3730 MSM_DSI_PHY_28NM_8960,
3831 MSM_DSI_PHY_14NM,
3932 MSM_DSI_PHY_10NM,
33
+ MSM_DSI_PHY_7NM,
34
+ MSM_DSI_PHY_7NM_V4_1,
4035 MSM_DSI_PHY_MAX
4136 };
4237
....@@ -79,7 +74,6 @@
7974 */
8075 struct drm_panel *panel;
8176 struct drm_bridge *external_bridge;
82
- unsigned long device_flags;
8377
8478 struct device *phy_dev;
8579 bool phy_enabled;
....@@ -97,7 +91,7 @@
9791 struct drm_connector *msm_dsi_manager_ext_bridge_init(u8 id);
9892 int msm_dsi_manager_cmd_xfer(int id, const struct mipi_dsi_msg *msg);
9993 bool msm_dsi_manager_cmd_xfer_trigger(int id, u32 dma_base, u32 len);
100
-void msm_dsi_manager_attach_dsi_device(int id, u32 device_flags);
94
+void msm_dsi_manager_setup_encoder(int id);
10195 int msm_dsi_manager_register(struct msm_dsi *msm_dsi);
10296 void msm_dsi_manager_unregister(struct msm_dsi *msm_dsi);
10397 bool msm_dsi_manager_validate_current_config(u8 id);
....@@ -168,9 +162,9 @@
168162 bool is_dual_dsi);
169163 int msm_dsi_host_power_off(struct mipi_dsi_host *host);
170164 int msm_dsi_host_set_display_mode(struct mipi_dsi_host *host,
171
- struct drm_display_mode *mode);
172
-struct drm_panel *msm_dsi_host_get_panel(struct mipi_dsi_host *host,
173
- unsigned long *panel_flags);
165
+ const struct drm_display_mode *mode);
166
+struct drm_panel *msm_dsi_host_get_panel(struct mipi_dsi_host *host);
167
+unsigned long msm_dsi_host_get_mode_flags(struct mipi_dsi_host *host);
174168 struct drm_bridge *msm_dsi_host_get_bridge(struct mipi_dsi_host *host);
175169 int msm_dsi_host_register(struct mipi_dsi_host *host, bool check_defer);
176170 void msm_dsi_host_unregister(struct mipi_dsi_host *host);
....@@ -186,6 +180,8 @@
186180 int msm_dsi_host_init(struct msm_dsi *msm_dsi);
187181 int msm_dsi_runtime_suspend(struct device *dev);
188182 int msm_dsi_runtime_resume(struct device *dev);
183
+int dsi_link_clk_set_rate_6g(struct msm_dsi_host *msm_host);
184
+int dsi_link_clk_set_rate_v2(struct msm_dsi_host *msm_host);
189185 int dsi_link_clk_enable_6g(struct msm_dsi_host *msm_host);
190186 int dsi_link_clk_enable_v2(struct msm_dsi_host *msm_host);
191187 void dsi_link_clk_disable_6g(struct msm_dsi_host *msm_host);