aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2010-04-05 17:57:59 -0400
committerEric Anholt <eric@anholt.net>2010-04-12 12:23:47 -0400
commit9c9e792795f96d201d85188607261f9f8bbf3219 (patch)
treeabe0fb9928322bc0115b15da8b7584ef909525cb /drivers
parentab00a9ef8d4ce7de4d5b15cbf4101feeb8cf7f4d (diff)
drm/i915: Set sync polarity correctly on DisplayPort
Probably only matters for format-converting dongles, but might as well get it right all the time. Signed-off-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i915/intel_dp.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index fee54169493b..79625bd9361a 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -638,9 +638,12 @@ intel_dp_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode,
638 struct intel_crtc *intel_crtc = to_intel_crtc(crtc); 638 struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
639 639
640 dp_priv->DP = (DP_VOLTAGE_0_4 | 640 dp_priv->DP = (DP_VOLTAGE_0_4 |
641 DP_PRE_EMPHASIS_0 | 641 DP_PRE_EMPHASIS_0);
642 DP_SYNC_VS_HIGH | 642
643 DP_SYNC_HS_HIGH); 643 if (adjusted_mode->flags & DRM_MODE_FLAG_PHSYNC)
644 dp_priv->DP |= DP_SYNC_HS_HIGH;
645 if (adjusted_mode->flags & DRM_MODE_FLAG_PVSYNC)
646 dp_priv->DP |= DP_SYNC_VS_HIGH;
644 647
645 if (HAS_PCH_CPT(dev) && !IS_eDP(intel_encoder)) 648 if (HAS_PCH_CPT(dev) && !IS_eDP(intel_encoder))
646 dp_priv->DP |= DP_LINK_TRAIN_OFF_CPT; 649 dp_priv->DP |= DP_LINK_TRAIN_OFF_CPT;