aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-07-15 21:21:50 -0400
committerDave Airlie <airlied@redhat.com>2016-07-15 21:21:50 -0400
commite2b80bac213cdfd443df9b6e1c769f98d0553c0c (patch)
treec8f8ccfb9d6211c331d6c36b682bdb4516eeeaf6 /include
parentd3c35337fb01ed41c3aadfe73fe317b5b0741897 (diff)
parent77b8d755b1ebca5caceb8f9f1371ca0124cdb0cf (diff)
Merge branch 'upstream/analogix-dp-20160705' of git://github.com/yakir-Yang/linux into drm-next
Please consider merging this tag, which contains the v4 misc fixes and add RK3399 eDP support patches[0] I sent on 2016-06-29, rebased onto v4.7-rc5. * 'upstream/analogix-dp-20160705' of git://github.com/yakir-Yang/linux: dt-bindings: analogix_dp: rockchip: correct the wrong compatible name drm/rockchip: analogix_dp: introduce the pclk for grf drm/bridge: analogix_dp: fix no drm hpd event when panel plug in drm/rockchip: analogix_dp: update the comments about why need to hardcode VOP output mode drm/rockchip: analogix_dp: correct the connector display color format and bpc drm/bridge: analogix_dp: passing the connector as an argument in .get_modes() drm/rockchip: analogix_dp: make panel detect to an optional action drm/rockchip: analogix_dp: add rk3399 eDP support drm/bridge: analogix_dp: some rockchip chips need to flip REF_CLK bit setting drm/bridge: analogix_dp: correct the register bit define error in ANALOGIX_DP_PLL_REG_1 drm/rockchip: analogix_dp: split the lcdc select setting into device data
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);