drm/i915/pll: Centralize PLL_ENABLE register lookup
authorAnusha Srivatsa <anusha.srivatsa@intel.com>
Fri, 28 Aug 2020 21:10:56 +0000 (14:10 -0700)
committerAnusha Srivatsa <anusha.srivatsa@intel.com>
Tue, 15 Sep 2020 22:58:43 +0000 (15:58 -0700)
commit400d4953f1f434d50640524707106eb889be8a11
treee3dfacfc43131a89c0a85c307b7f18e5eca1b112
parente198eea948a0f12630cf7a8d12fe30d257c9339d
drm/i915/pll: Centralize PLL_ENABLE register lookup

We currenty check for platform at multiple parts in the driver
to grab the correct PLL. Let us begin to centralize it through a
helper function.

v2: s/intel_get_pll_enable_reg()/intel_combo_pll_enable_reg() (Ville)

v3: Clean up combo_pll_disable() (Rodrigo)

v4: s/dev_priv/i915 (Jani)
Move static and return type to the same line( Ville, Jani)

Suggested-by: Matt Roper <matthew.d.roper@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200914175703.15024-1-anusha.srivatsa@intel.com
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/display/intel_dpll_mgr.c