drm/i915: Add the support of eDP on DP-D for Ibex/CPT
Subsystems (2)
PATCH 1/1 drm/i915: Add the support of eDP on DP-D for Ibex/CPT
From: Zhao Yakui <[email protected]>
This one adds support for eDP that connected on PCH DP-D port instead of CPU DP-A port, and only DP-D port could be used for eDP.
https://bugs.freedesktop.org/show_bug.cgi?id=27220
Signed-off-by Zhao Yakui <[email protected]>
Tested-by Jan-Hendrik Zab <[email protected]>
Tested-by Templar <[email protected]>
Signed-off-by Zhenyu Wang <[email protected]>
--- drivers/gpu/drm/i915/intel_display.c | 2 +- drivers/gpu/drm/i915/intel_dp.c | 71 +++++++++++++++++++++++++++++---- drivers/gpu/drm/i915/intel_drv.h | 1 + 3 files changed, 64 insertions(+), 10 deletions(-)
drivers/gpu/drm/i915/intel_display.c +1 -1
@@ -3449,7 +3449,7 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc, temp |=PIPE_8BPC ; else temp |= PIPE_6BPC; - }else if (is_edp) { + }else if (is_edp || (is_dp &&intel_pch_has_edp (crtc))) {switch (dev_priv->edp_bpp/3 ) {case 8 : temp |=PIPE_8BPC ;
drivers/gpu/drm/i915/intel_dp.c +62 -9
167 lines not on this page · raw message
drivers/gpu/drm/i915/intel_drv.h +1 -0
@@ -179,6 +179,7 @@ extern void intel_dp_init(struct drm_device *dev, int dp_reg);void intel_dp_set_m_n (struct drm_crtc *crtc,struct drm_display_mode *mode,struct drm_display_mode *adjusted_mode); +extern bool intel_pch_has_edp (struct drm_crtc *crtc);extern void intel_edp_link_config (struct intel_encoder *,int *,int *);
Signature · 1 line
1.7.0.4