diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2013-12-10 07:06:45 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-12-10 14:04:58 -0500 |
commit | 8212d56329b223a106d3d4f7dda95f571b1fa044 (patch) | |
tree | 8e02d693966d5adbb490bd31a1c266294ec23650 /drivers/gpu/drm | |
parent | fff6386766fc846f19d5628878a4638fa7ece0a4 (diff) |
drm/i915: Move VLV PHY CRI clock enable into intel_init_dpio()
The CRI clock is related to the display PHY, so the setup belongs
in intel_init_dpio().
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 596ad09f0e51..10a803f69360 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -1367,6 +1367,10 @@ static void intel_init_dpio(struct drm_device *dev) | |||
1367 | if (!IS_VALLEYVIEW(dev)) | 1367 | if (!IS_VALLEYVIEW(dev)) |
1368 | return; | 1368 | return; |
1369 | 1369 | ||
1370 | /* Enable the CRI clock source so we can get at the display */ | ||
1371 | I915_WRITE(DPLL(PIPE_B), I915_READ(DPLL(PIPE_B)) | | ||
1372 | DPLL_INTEGRATED_CRI_CLK_VLV); | ||
1373 | |||
1370 | DPIO_PHY_IOSF_PORT(DPIO_PHY0) = IOSF_PORT_DPIO; | 1374 | DPIO_PHY_IOSF_PORT(DPIO_PHY0) = IOSF_PORT_DPIO; |
1371 | /* | 1375 | /* |
1372 | * From VLV2A0_DP_eDP_DPIO_driver_vbios_notes_10.docx - | 1376 | * From VLV2A0_DP_eDP_DPIO_driver_vbios_notes_10.docx - |
@@ -10788,17 +10792,10 @@ static void i915_disable_vga(struct drm_device *dev) | |||
10788 | 10792 | ||
10789 | void intel_modeset_init_hw(struct drm_device *dev) | 10793 | void intel_modeset_init_hw(struct drm_device *dev) |
10790 | { | 10794 | { |
10791 | struct drm_i915_private *dev_priv = dev->dev_private; | ||
10792 | |||
10793 | intel_prepare_ddi(dev); | 10795 | intel_prepare_ddi(dev); |
10794 | 10796 | ||
10795 | intel_init_clock_gating(dev); | 10797 | intel_init_clock_gating(dev); |
10796 | 10798 | ||
10797 | /* Enable the CRI clock source so we can get at the display */ | ||
10798 | if (IS_VALLEYVIEW(dev)) | ||
10799 | I915_WRITE(DPLL(PIPE_B), I915_READ(DPLL(PIPE_B)) | | ||
10800 | DPLL_INTEGRATED_CRI_CLK_VLV); | ||
10801 | |||
10802 | intel_init_dpio(dev); | 10799 | intel_init_dpio(dev); |
10803 | 10800 | ||
10804 | mutex_lock(&dev->struct_mutex); | 10801 | mutex_lock(&dev->struct_mutex); |