aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r--drivers/gpu/drm/i915/intel_dp.c19
-rw-r--r--drivers/gpu/drm/i915/intel_drv.h1
2 files changed, 20 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 714e553960f..da71263f6fa 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -95,6 +95,25 @@ static struct intel_dp *intel_attached_dp(struct drm_connector *connector)
95 struct intel_dp, base); 95 struct intel_dp, base);
96} 96}
97 97
98/**
99 * intel_encoder_is_pch_edp - is the given encoder a PCH attached eDP?
100 * @encoder: DRM encoder
101 *
102 * Return true if @encoder corresponds to a PCH attached eDP panel. Needed
103 * by intel_display.c.
104 */
105bool intel_encoder_is_pch_edp(struct drm_encoder *encoder)
106{
107 struct intel_dp *intel_dp;
108
109 if (!encoder)
110 return false;
111
112 intel_dp = enc_to_intel_dp(encoder);
113
114 return is_pch_edp(intel_dp);
115}
116
98static void intel_dp_start_link_train(struct intel_dp *intel_dp); 117static void intel_dp_start_link_train(struct intel_dp *intel_dp);
99static void intel_dp_complete_link_train(struct intel_dp *intel_dp); 118static void intel_dp_complete_link_train(struct intel_dp *intel_dp);
100static void intel_dp_link_down(struct intel_dp *intel_dp); 119static void intel_dp_link_down(struct intel_dp *intel_dp);
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index 40e99bf27ff..c946c48b472 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -212,6 +212,7 @@ intel_dp_set_m_n(struct drm_crtc *crtc, struct drm_display_mode *mode,
212extern bool intel_pch_has_edp(struct drm_crtc *crtc); 212extern bool intel_pch_has_edp(struct drm_crtc *crtc);
213extern bool intel_dpd_is_edp(struct drm_device *dev); 213extern bool intel_dpd_is_edp(struct drm_device *dev);
214extern void intel_edp_link_config (struct intel_encoder *, int *, int *); 214extern void intel_edp_link_config (struct intel_encoder *, int *, int *);
215extern bool intel_encoder_is_pch_edp(struct drm_encoder *encoder);
215 216
216/* intel_panel.c */ 217/* intel_panel.c */
217extern void intel_fixed_panel_mode(struct drm_display_mode *fixed_mode, 218extern void intel_fixed_panel_mode(struct drm_display_mode *fixed_mode,