summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2013-11-02 21:07:45 -0700
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-11-08 18:09:58 +0100
commit77d8d00944dd5a0a2f4f67809819df927ee23030 (patch)
treefea30034b70ba1baa73dfee63a13d379754ac0f5
parentbafb655367a1dd9eaa286a223ad3a805899dc4e5 (diff)
downloadblackbird-op-linux-77d8d00944dd5a0a2f4f67809819df927ee23030.tar.gz
blackbird-op-linux-77d8d00944dd5a0a2f4f67809819df927ee23030.zip
drm/i915/bdw: check DPD on port D when setting the DDI buffers
Use the eDP values on platforms where port D is eDP. This doesn't affect Haswell since it uses the same DDI buffer values for eDP and DP. Reviewed-by: Art Runyan <arthur.j.runyan@intel.com> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Reviewed-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/i915/intel_ddi.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
index 87c55c7cb096..1591576a6101 100644
--- a/drivers/gpu/drm/i915/intel_ddi.c
+++ b/drivers/gpu/drm/i915/intel_ddi.c
@@ -170,9 +170,14 @@ static void intel_prepare_ddi_buffers(struct drm_device *dev, enum port port)
break;
case PORT_B:
case PORT_C:
- case PORT_D:
ddi_translations = ddi_translations_dp;
break;
+ case PORT_D:
+ if (intel_dpd_is_edp(dev))
+ ddi_translations = ddi_translations_edp;
+ else
+ ddi_translations = ddi_translations_dp;
+ break;
case PORT_E:
ddi_translations = ddi_translations_fdi;
break;
OpenPOWER on IntegriCloud