drm/i915: Make i9xx_crtc_clock_get() use dpll_hw_state
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 13 Sep 2013 13:18:46 +0000 (16:18 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 16 Sep 2013 20:42:00 +0000 (22:42 +0200)
commit293623f7aa6d175d126135fb58c7a88c9695fd11
tree4699418443a03106a54775e771d2741568d1ef55
parent6878da05006feb68efe23a6ae010b1a5df32ca5f
drm/i915: Make i9xx_crtc_clock_get() use dpll_hw_state

We already extract the DPLL state to pipe_config, so let's make use of
it in i9xx_crtc_clock_get() and avoid the register reads.

This will also make the function closer to being useable with PCH DPLL
since the registers for those live in a different address.

Also kill the useless adjusted_mode.clock zeroing. It's already zero at
this point.

v2: Read out DPLL state in intel_crtc_mode_get()

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c