drm/i915: Consolidate {bxt,cnl,icl}_init_cdclk
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 10 Sep 2019 15:42:52 +0000 (08:42 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 11 Sep 2019 03:37:29 +0000 (20:37 -0700)
commit0c1279b58fc7de230d47bb0dc21b7a08417dee96
treece0dd23444c5f42267a9a2cdcca8fd75d723b45b
parent8f9f717d6c44649353e153cfcd32ad99618956a9
drm/i915: Consolidate {bxt,cnl,icl}_init_cdclk

The BXT and CNL functions were already basically identical, whereas
ICL's function tried to do its own sanitization rather than calling
bxt_sanitize_cdclk.

This should actually fix a bug in our ICL initialization where it would
consider the /2 CD2X divider invalid and force an unnecessary
sanitization (we now have valid clock frequencies that use this
divider).

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190910154252.30503-9-matthew.d.roper@intel.com
drivers/gpu/drm/i915/display/intel_cdclk.c