diff options
author | Imre Deak <imre.deak@intel.com> | 2014-06-25 15:01:49 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-07-10 16:04:53 -0400 |
commit | 4fe9467d216af71fb456d626ee26e17178d619f9 (patch) | |
tree | 92fdd3bd4f000eb15fed451568e556ec02da8f0d /drivers/gpu/drm/i915/intel_display.c | |
parent | 114fe4885721d985907fbfb0d1a0c1c6676b4543 (diff) |
drm/i915: ddi: move pch setup after encoder->pre_enable
This is needed by an upcoming patch that moves the PCH/CRT PLL enabling
into the pre_enable hook, after which we want to keep the modeset
sequence at its current state. At this point this won't have an effect
since the PCH/CRT pre_enable hook is atm a NOP.
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-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.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index e1b0049347a6..8ce89c8aa92b 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -4100,16 +4100,15 @@ static void haswell_crtc_enable(struct drm_crtc *crtc) | |||
4100 | intel_crtc->active = true; | 4100 | intel_crtc->active = true; |
4101 | 4101 | ||
4102 | intel_set_cpu_fifo_underrun_reporting(dev, pipe, true); | 4102 | intel_set_cpu_fifo_underrun_reporting(dev, pipe, true); |
4103 | if (intel_crtc->config.has_pch_encoder) | ||
4104 | intel_set_pch_fifo_underrun_reporting(dev, TRANSCODER_A, true); | ||
4105 | |||
4106 | if (intel_crtc->config.has_pch_encoder) | ||
4107 | dev_priv->display.fdi_link_train(crtc); | ||
4108 | |||
4109 | for_each_encoder_on_crtc(dev, crtc, encoder) | 4103 | for_each_encoder_on_crtc(dev, crtc, encoder) |
4110 | if (encoder->pre_enable) | 4104 | if (encoder->pre_enable) |
4111 | encoder->pre_enable(encoder); | 4105 | encoder->pre_enable(encoder); |
4112 | 4106 | ||
4107 | if (intel_crtc->config.has_pch_encoder) { | ||
4108 | intel_set_pch_fifo_underrun_reporting(dev, TRANSCODER_A, true); | ||
4109 | dev_priv->display.fdi_link_train(crtc); | ||
4110 | } | ||
4111 | |||
4113 | intel_ddi_enable_pipe_clock(intel_crtc); | 4112 | intel_ddi_enable_pipe_clock(intel_crtc); |
4114 | 4113 | ||
4115 | ironlake_pfit_enable(intel_crtc); | 4114 | ironlake_pfit_enable(intel_crtc); |