drm/i915: Initialize PCH refclks at modeset init time
authorKeith Packard <keithp@keithp.com>
Tue, 27 Sep 2011 05:24:57 +0000 (22:24 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 28 Sep 2011 21:08:38 +0000 (14:08 -0700)
commit9fb526db979581841227e1ed4f75a5fbe853db4a
treeb4171d88d0d535f178ca33787556246c502f7c90
parentafffb9dfb62a9eb2a6e467a3875907189e49a2d2
drm/i915: Initialize PCH refclks at modeset init time

The reference clock configuration must be done before any mode setting
can occur as all outputs must be disabled to change
anything. Initialize the clocks after turning everything off during
the initialization process.

Also, re-initialize the refclk at resume time.

Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display.c