|
@@ -2622,6 +2622,7 @@ static void ironlake_pch_enable(struct drm_crtc *crtc)
|
|
|
/* For PCH DP, enable TRANS_DP_CTL */
|
|
|
if (HAS_PCH_CPT(dev) &&
|
|
|
intel_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT)) {
|
|
|
+ u32 bpc = (I915_READ(PIPECONF(pipe)) & PIPE_BPC_MASK) >> 5;
|
|
|
reg = TRANS_DP_CTL(pipe);
|
|
|
temp = I915_READ(reg);
|
|
|
temp &= ~(TRANS_DP_PORT_SEL_MASK |
|
|
@@ -2629,7 +2630,7 @@ static void ironlake_pch_enable(struct drm_crtc *crtc)
|
|
|
TRANS_DP_BPC_MASK);
|
|
|
temp |= (TRANS_DP_OUTPUT_ENABLE |
|
|
|
TRANS_DP_ENH_FRAMING);
|
|
|
- temp |= TRANS_DP_8BPC;
|
|
|
+ temp |= bpc << 9; /* same format but at 11:9 */
|
|
|
|
|
|
if (crtc->mode.flags & DRM_MODE_FLAG_PHSYNC)
|
|
|
temp |= TRANS_DP_HSYNC_ACTIVE_HIGH;
|