drm/i915: Make i9xx_crtc_clock_get() work for PCH DPLLs
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 9 Sep 2013 11:06:37 +0000 (14:06 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 16 Sep 2013 20:43:46 +0000 (22:43 +0200)
commitda4a1efab8be1e373c1ad31b14deb4e422dad6cb
tree9e555853d591903600d69ece9da9334c5a822e2d
parent293623f7aa6d175d126135fb58c7a88c9695fd11
drm/i915: Make i9xx_crtc_clock_get() work for PCH DPLLs

Add the 120MHz refernce clock case for PCH DPLLs.

Also determine the reference clock frequency more accurately by
checking for the PLLB_REF_INPUT_SPREADSPECTRUMIN refclk input
mode. The gen2 code already checked it, but it stil assumed a
fixed 66MHz refclk. Instead we need to consult the VBT for the
real value.

v2: Fix refclk for SSC panel case

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