|
@@ -7336,6 +7336,33 @@ static void gen6_init_clock_gating(struct drm_device *dev)
|
|
|
DISPPLANE_TRICKLE_FEED_DISABLE);
|
|
|
}
|
|
|
|
|
|
+static void ivybridge_init_clock_gating(struct drm_device *dev)
|
|
|
+{
|
|
|
+ struct drm_i915_private *dev_priv = dev->dev_private;
|
|
|
+ int pipe;
|
|
|
+ uint32_t dspclk_gate = VRHUNIT_CLOCK_GATE_DISABLE;
|
|
|
+
|
|
|
+ I915_WRITE(PCH_DSPCLK_GATE_D, dspclk_gate);
|
|
|
+
|
|
|
+ /*
|
|
|
+ * On Ibex Peak and Cougar Point, we need to disable clock
|
|
|
+ * gating for the panel power sequencer or it will fail to
|
|
|
+ * start up when no ports are active.
|
|
|
+ */
|
|
|
+ I915_WRITE(SOUTH_DSPCLK_GATE_D, PCH_DPLSUNIT_CLOCK_GATE_DISABLE);
|
|
|
+
|
|
|
+ I915_WRITE(WM3_LP_ILK, 0);
|
|
|
+ I915_WRITE(WM2_LP_ILK, 0);
|
|
|
+ I915_WRITE(WM1_LP_ILK, 0);
|
|
|
+
|
|
|
+ I915_WRITE(ILK_DSPCLK_GATE, IVB_VRHUNIT_CLK_GATE);
|
|
|
+
|
|
|
+ for_each_pipe(pipe)
|
|
|
+ I915_WRITE(DSPCNTR(pipe),
|
|
|
+ I915_READ(DSPCNTR(pipe)) |
|
|
|
+ DISPPLANE_TRICKLE_FEED_DISABLE);
|
|
|
+}
|
|
|
+
|
|
|
static void g4x_init_clock_gating(struct drm_device *dev)
|
|
|
{
|
|
|
struct drm_i915_private *dev_priv = dev->dev_private;
|
|
@@ -7603,7 +7630,7 @@ static void intel_init_display(struct drm_device *dev)
|
|
|
"Disable CxSR\n");
|
|
|
dev_priv->display.update_wm = NULL;
|
|
|
}
|
|
|
- dev_priv->display.init_clock_gating = gen6_init_clock_gating;
|
|
|
+ dev_priv->display.init_clock_gating = ivybridge_init_clock_gating;
|
|
|
|
|
|
} else
|
|
|
dev_priv->display.update_wm = NULL;
|