Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6d95268 authored by Adam Jackson's avatar Adam Jackson Committed by Eric Anholt
Browse files

drm/i915/pch: Set transcoder sync polarity for DP based on actual mode



Signed-off-by: default avatarAdam Jackson <ajax@redhat.com>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent cb0953d7
Loading
Loading
Loading
Loading
+6 −3
Original line number Original line Diff line number Diff line
@@ -1998,9 +1998,12 @@ static void ironlake_crtc_dpms(struct drm_crtc *crtc, int mode)
				reg = I915_READ(trans_dp_ctl);
				reg = I915_READ(trans_dp_ctl);
				reg &= ~TRANS_DP_PORT_SEL_MASK;
				reg &= ~TRANS_DP_PORT_SEL_MASK;
				reg = TRANS_DP_OUTPUT_ENABLE |
				reg = TRANS_DP_OUTPUT_ENABLE |
				      TRANS_DP_ENH_FRAMING |
				      TRANS_DP_ENH_FRAMING;
				      TRANS_DP_VSYNC_ACTIVE_HIGH |

				      TRANS_DP_HSYNC_ACTIVE_HIGH;
				if (crtc->mode.flags & DRM_MODE_FLAG_PHSYNC)
				      reg |= TRANS_DP_HSYNC_ACTIVE_HIGH;
				if (crtc->mode.flags & DRM_MODE_FLAG_PVSYNC)
				      reg |= TRANS_DP_VSYNC_ACTIVE_HIGH;


				switch (intel_trans_dp_port_sel(crtc)) {
				switch (intel_trans_dp_port_sel(crtc)) {
				case PCH_DP_B:
				case PCH_DP_B: