drm/i915: Program DSPCLK_GATE_D only once on Ironlake
authorDamien Lespiau <damien.lespiau@intel.com>
Fri, 19 Oct 2012 16:55:42 +0000 (17:55 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 19 Oct 2012 22:59:02 +0000 (00:59 +0200)
commit4d47e4f57f0a821f5ba84b8e101ee7e44e4ffae6
tree368888c9a4b377f48bf1a1a90a20e7375a5d1725
parent231e54f6391ccc7a3377df5bbaff3800822def1d
drm/i915: Program DSPCLK_GATE_D only once on Ironlake

With the consolidated registers, it appears that we're setting the same
bis several times. Let's just collect the bits we want to set and program
it once.

v2: More cleanup. Also program 0x42004 and 0x45000 for FBC on non
    mobile platforms (Paulo Zanoni)

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
[danvet: Undo the functional change as discussed on irc.]
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c