aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2010-07-16 14:46:30 -0400
committerEric Anholt <eric@anholt.net>2010-08-01 22:38:04 -0400
commitd6d952689a48375afb97f619f77d548f16d45a92 (patch)
tree0dff71af6d9c5e2f49a1319597599416c2b723de /drivers
parentcb0953d734348e8862d6d7edc666cfb3bf6d8fae (diff)
drm/i915/pch: Set transcoder sync polarity for DP based on actual mode
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_display.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 82d1b91bdfa6..9a95a27a8464 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -1998,9 +1998,12 @@ static void ironlake_crtc_dpms(struct drm_crtc *crtc, int mode)
1998 reg = I915_READ(trans_dp_ctl); 1998 reg = I915_READ(trans_dp_ctl);
1999 reg &= ~TRANS_DP_PORT_SEL_MASK; 1999 reg &= ~TRANS_DP_PORT_SEL_MASK;
2000 reg = TRANS_DP_OUTPUT_ENABLE | 2000 reg = TRANS_DP_OUTPUT_ENABLE |
2001 TRANS_DP_ENH_FRAMING | 2001 TRANS_DP_ENH_FRAMING;
2002 TRANS_DP_VSYNC_ACTIVE_HIGH | 2002
2003 TRANS_DP_HSYNC_ACTIVE_HIGH; 2003 if (crtc->mode.flags & DRM_MODE_FLAG_PHSYNC)
2004 reg |= TRANS_DP_HSYNC_ACTIVE_HIGH;
2005 if (crtc->mode.flags & DRM_MODE_FLAG_PVSYNC)
2006 reg |= TRANS_DP_VSYNC_ACTIVE_HIGH;
2004 2007
2005 switch (intel_trans_dp_port_sel(crtc)) { 2008 switch (intel_trans_dp_port_sel(crtc)) {
2006 case PCH_DP_B: 2009 case PCH_DP_B: