OSDN Git Service

drm/i915: Combine bxt_set_cdclk and cnl_set_cdclk
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 10 Sep 2019 15:42:47 +0000 (08:42 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 11 Sep 2019 03:36:19 +0000 (20:36 -0700)
commit1cbcd3b4b168a08620153d2c5d52461a75338349
treefe2e58ab9996b835fcd534a93d7329c814b1ab0f
parent736da8112fee663deed6efc53333c37dc0b04696
drm/i915: Combine bxt_set_cdclk and cnl_set_cdclk

We'd previously combined ICL/TGL logic into the cnl_set_cdclk function,
but BXT is pretty similar as well.  Roll the cnl/icl/tgl logic back into
the bxt function; the only things we really need to handle separately
are punit notification and calling different functions to enable/disable
the cdclk PLL.

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-4-matthew.d.roper@intel.com
drivers/gpu/drm/i915/display/intel_cdclk.c