mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
drm/i915/display: move CFL clock gating init to display
Move the CFL/CML-specific display clock gating programming into display intel_display_clock_gating.c, to remove more dependencies from i915 to display registers. Reviewed-by: Jani Nikula <jani.nikula@intel.com> Link: https://patch.msgid.link/20260428095104.818360-4-luciano.coelho@intel.com Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:
parent
3ee59cc405
commit
1f842b5e70
|
|
@ -26,3 +26,12 @@ void intel_display_kbl_init_clock_gating(struct intel_display *display)
|
|||
*/
|
||||
intel_de_rmw(display, DISP_ARB_CTL, 0, DISP_FBC_WM_DIS);
|
||||
}
|
||||
|
||||
void intel_display_cfl_init_clock_gating(struct intel_display *display)
|
||||
{
|
||||
/*
|
||||
* WaFbcTurnOffFbcWatermark:cfl
|
||||
* Display WA #0562: cfl
|
||||
*/
|
||||
intel_de_rmw(display, DISP_ARB_CTL, 0, DISP_FBC_WM_DIS);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,5 +10,6 @@ struct intel_display;
|
|||
|
||||
void intel_display_skl_init_clock_gating(struct intel_display *display);
|
||||
void intel_display_kbl_init_clock_gating(struct intel_display *display);
|
||||
void intel_display_cfl_init_clock_gating(struct intel_display *display);
|
||||
|
||||
#endif /* __INTEL_DISPLAY_CLOCK_GATING_H__ */
|
||||
|
|
|
|||
|
|
@ -307,11 +307,7 @@ static void cfl_init_clock_gating(struct drm_i915_private *i915)
|
|||
/* WAC6entrylatency:cfl */
|
||||
intel_uncore_rmw(&i915->uncore, FBC_LLC_READ_CTRL, 0, FBC_LLC_FULLY_OPEN);
|
||||
|
||||
/*
|
||||
* WaFbcTurnOffFbcWatermark:cfl
|
||||
* Display WA #0562: cfl
|
||||
*/
|
||||
intel_uncore_rmw(&i915->uncore, DISP_ARB_CTL, 0, DISP_FBC_WM_DIS);
|
||||
intel_display_cfl_init_clock_gating(i915->display);
|
||||
}
|
||||
|
||||
static void kbl_init_clock_gating(struct drm_i915_private *i915)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user