]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit64c7f1bae04eb145432df5070d4c4529a4ad5404
tree368888c9a4b377f48bf1a1a90a20e7375a5d1725
parentac156caa3f00242d1e21a3b9a86a52a1af1c99dc
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