mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02:00
drm/i915: move CNP clock gating init into intel_pch
Move the CNP PCH clock gating programming into intel_pch_init_clock_gating() and switch the corresponding CFL/CML caller to the display-specific code. Reviewed-by: Jani Nikula <jani.nikula@intel.com> Link: https://patch.msgid.link/20260324080441.154609-5-luciano.coelho@intel.com Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:
parent
cf37495ad1
commit
f86b08bf17
|
|
@ -279,6 +279,13 @@ static void intel_pch_lpt_init_clock_gating(struct intel_display *display)
|
|||
TRANS_CHICKEN1_DP0UNIT_GC_DISABLE);
|
||||
}
|
||||
|
||||
static void intel_pch_cnp_init_clock_gating(struct intel_display *display)
|
||||
{
|
||||
/* Display WA #1181 WaSouthDisplayDisablePWMCGEGating: cnp */
|
||||
intel_de_rmw(display, SOUTH_DSPCLK_GATE_D, 0,
|
||||
CNP_PWM_CGE_GATING_DISABLE);
|
||||
}
|
||||
|
||||
void intel_pch_init_clock_gating(struct intel_display *display)
|
||||
{
|
||||
switch (INTEL_PCH_TYPE(display)) {
|
||||
|
|
@ -292,6 +299,9 @@ void intel_pch_init_clock_gating(struct intel_display *display)
|
|||
case PCH_LPT_LP:
|
||||
intel_pch_lpt_init_clock_gating(display);
|
||||
break;
|
||||
case PCH_CNP:
|
||||
intel_pch_cnp_init_clock_gating(display);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -299,20 +299,9 @@ static void dg2_init_clock_gating(struct drm_i915_private *i915)
|
|||
SGSI_SIDECLK_DIS);
|
||||
}
|
||||
|
||||
static void cnp_init_clock_gating(struct drm_i915_private *i915)
|
||||
{
|
||||
struct intel_display *display = i915->display;
|
||||
|
||||
if (!HAS_PCH_CNP(display))
|
||||
return;
|
||||
|
||||
/* Display WA #1181 WaSouthDisplayDisablePWMCGEGating: cnp */
|
||||
intel_uncore_rmw(&i915->uncore, SOUTH_DSPCLK_GATE_D, 0, CNP_PWM_CGE_GATING_DISABLE);
|
||||
}
|
||||
|
||||
static void cfl_init_clock_gating(struct drm_i915_private *i915)
|
||||
{
|
||||
cnp_init_clock_gating(i915);
|
||||
intel_pch_init_clock_gating(i915->display);
|
||||
gen9_init_clock_gating(i915);
|
||||
|
||||
/* WAC6entrylatency:cfl */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user