drm/i915: Add tracking for CDCLK bypass frequency
authorImre Deak <imre.deak@intel.com>
Wed, 17 Jan 2018 17:25:08 +0000 (19:25 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 18 Jan 2018 14:08:55 +0000 (16:08 +0200)
commitb6c51c3e2872b2d133293dd94245b5f39126aaf7
tree6ebdf4ec4e3e6b17119591f10aeb11047e0c6350
parent29d384e34c55d696cf37bd4159e05f4b14d45da0
drm/i915: Add tracking for CDCLK bypass frequency

The CDCLK bypass frequency can vary on upcoming platforms, so prepare
for that now by tracking its value in the CDCLK state.

Currently on BDW+ the bypass frequency is always the reference clock and
I didn't bother with earlier platforms since it's not all that clear
what's the bypass clock on those.

I also didn't bother adding support for changing this frequency, since
atm I don't see any need for it.

Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180117172508.15993-1-imre.deak@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_cdclk.c