drm/i915: don't program FDI RX/TX in mode_set
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 7 Oct 2010 23:01:20 +0000 (16:01 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Oct 2010 09:28:25 +0000 (10:28 +0100)
We do this later (and more properly) when we enable FDI, so we don't
need to do it here.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_display.c

index 29ecaa0b1344aa8ed20634eb54edeee5382331e9..89cfe468414719258fde50da60cf91bcc18aee07 100644 (file)
@@ -4140,27 +4140,6 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc,
 
                if (has_edp_encoder && !intel_encoder_is_pch_edp(&has_edp_encoder->base)) {
                        ironlake_set_pll_edp(crtc, adjusted_mode->clock);
-               } else {
-                       /* enable FDI RX PLL too */
-                       reg = FDI_RX_CTL(pipe);
-                       temp = I915_READ(reg);
-                       I915_WRITE(reg, temp | FDI_RX_PLL_ENABLE);
-
-                       POSTING_READ(reg);
-                       udelay(200);
-
-                       /* enable FDI TX PLL too */
-                       reg = FDI_TX_CTL(pipe);
-                       temp = I915_READ(reg);
-                       I915_WRITE(reg, temp | FDI_TX_PLL_ENABLE);
-
-                       /* enable FDI RX PCDCLK */
-                       reg = FDI_RX_CTL(pipe);
-                       temp = I915_READ(reg);
-                       I915_WRITE(reg, temp | FDI_PCDCLK);
-
-                       POSTING_READ(reg);
-                       udelay(200);
                }
        }