aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/drm/bridge/analogix_dp.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/drm/bridge/analogix_dp.h b/include/drm/bridge/analogix_dp.h
index 25afb31f0389..261b86d20e77 100644
--- a/include/drm/bridge/analogix_dp.h
+++ b/include/drm/bridge/analogix_dp.h
@@ -16,8 +16,14 @@
16enum analogix_dp_devtype { 16enum analogix_dp_devtype {
17 EXYNOS_DP, 17 EXYNOS_DP,
18 RK3288_DP, 18 RK3288_DP,
19 RK3399_EDP,
19}; 20};
20 21
22static inline bool is_rockchip(enum analogix_dp_devtype type)
23{
24 return type == RK3288_DP || type == RK3399_EDP;
25}
26
21struct analogix_dp_plat_data { 27struct analogix_dp_plat_data {
22 enum analogix_dp_devtype dev_type; 28 enum analogix_dp_devtype dev_type;
23 struct drm_panel *panel; 29 struct drm_panel *panel;
@@ -28,7 +34,8 @@ struct analogix_dp_plat_data {
28 int (*power_off)(struct analogix_dp_plat_data *); 34 int (*power_off)(struct analogix_dp_plat_data *);
29 int (*attach)(struct analogix_dp_plat_data *, struct drm_bridge *, 35 int (*attach)(struct analogix_dp_plat_data *, struct drm_bridge *,
30 struct drm_connector *); 36 struct drm_connector *);
31 int (*get_modes)(struct analogix_dp_plat_data *); 37 int (*get_modes)(struct analogix_dp_plat_data *,
38 struct drm_connector *);
32}; 39};
33 40
34int analogix_dp_resume(struct device *dev); 41int analogix_dp_resume(struct device *dev);