aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2012-10-31 16:12:51 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-11-11 17:51:26 -0500
commit8a52fd9f240a6e2b73361fb825145f9951fc552d (patch)
tree7f4077737b8c872d012851a1aae53af49b386d8c /drivers/gpu/drm/i915/intel_display.c
parent32ae46bf010f2fcc8cf29c48621590350a4bc5c1 (diff)
drm/i915: use CPU and PCH transcoders on lpt_disable_pch_transcoder
... instead of "pipe", which is wrong. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 787e62a44542..1b57fbc5eb5b 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -1766,22 +1766,20 @@ static void ironlake_disable_pch_transcoder(struct drm_i915_private *dev_priv,
1766} 1766}
1767 1767
1768static void lpt_disable_pch_transcoder(struct drm_i915_private *dev_priv, 1768static void lpt_disable_pch_transcoder(struct drm_i915_private *dev_priv,
1769 enum pipe pipe) 1769 enum transcoder cpu_transcoder)
1770{ 1770{
1771 int reg;
1772 u32 val; 1771 u32 val;
1773 1772
1774 /* FDI relies on the transcoder */ 1773 /* FDI relies on the transcoder */
1775 assert_fdi_tx_disabled(dev_priv, pipe); 1774 assert_fdi_tx_disabled(dev_priv, cpu_transcoder);
1776 assert_fdi_rx_disabled(dev_priv, pipe); 1775 assert_fdi_rx_disabled(dev_priv, TRANSCODER_A);
1777 1776
1778 reg = TRANSCONF(pipe); 1777 val = I915_READ(_TRANSACONF);
1779 val = I915_READ(reg);
1780 val &= ~TRANS_ENABLE; 1778 val &= ~TRANS_ENABLE;
1781 I915_WRITE(reg, val); 1779 I915_WRITE(_TRANSACONF, val);
1782 /* wait for PCH transcoder off, transcoder state */ 1780 /* wait for PCH transcoder off, transcoder state */
1783 if (wait_for((I915_READ(reg) & TRANS_STATE_ENABLE) == 0, 50)) 1781 if (wait_for((I915_READ(_TRANSACONF) & TRANS_STATE_ENABLE) == 0, 50))
1784 DRM_ERROR("failed to disable transcoder %d\n", pipe); 1782 DRM_ERROR("Failed to disable PCH transcoder\n");
1785} 1783}
1786 1784
1787/** 1785/**
@@ -3630,7 +3628,7 @@ static void haswell_crtc_disable(struct drm_crtc *crtc)
3630 3628
3631 if (is_pch_port) { 3629 if (is_pch_port) {
3632 ironlake_fdi_disable(crtc); 3630 ironlake_fdi_disable(crtc);
3633 lpt_disable_pch_transcoder(dev_priv, pipe); 3631 lpt_disable_pch_transcoder(dev_priv, cpu_transcoder);
3634 intel_disable_pch_pll(intel_crtc); 3632 intel_disable_pch_pll(intel_crtc);
3635 ironlake_fdi_pll_disable(intel_crtc); 3633 ironlake_fdi_pll_disable(intel_crtc);
3636 } 3634 }