mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 03:27:03 +02:00
drm/i915: move KBL clock gating init to display
Move the KBL-specific display clock gating programming into a 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-3-luciano.coelho@intel.com Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:
parent
8a2366d6ee
commit
3ee59cc405
|
|
@ -17,3 +17,12 @@ void intel_display_skl_init_clock_gating(struct intel_display *display)
|
|||
*/
|
||||
intel_de_rmw(display, DISP_ARB_CTL, 0, DISP_FBC_WM_DIS);
|
||||
}
|
||||
|
||||
void intel_display_kbl_init_clock_gating(struct intel_display *display)
|
||||
{
|
||||
/*
|
||||
* WaFbcTurnOffFbcWatermark:kbl
|
||||
* Display WA #0562: kbl
|
||||
*/
|
||||
intel_de_rmw(display, DISP_ARB_CTL, 0, DISP_FBC_WM_DIS);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,5 +9,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);
|
||||
|
||||
#endif /* __INTEL_DISPLAY_CLOCK_GATING_H__ */
|
||||
|
|
|
|||
|
|
@ -331,11 +331,7 @@ static void kbl_init_clock_gating(struct drm_i915_private *i915)
|
|||
intel_uncore_rmw(&i915->uncore, GEN6_UCGCTL1,
|
||||
0, GEN6_GAMUNIT_CLOCK_GATE_DISABLE);
|
||||
|
||||
/*
|
||||
* WaFbcTurnOffFbcWatermark:kbl
|
||||
* Display WA #0562: kbl
|
||||
*/
|
||||
intel_uncore_rmw(&i915->uncore, DISP_ARB_CTL, 0, DISP_FBC_WM_DIS);
|
||||
intel_display_kbl_init_clock_gating(i915->display);
|
||||
}
|
||||
|
||||
static void skl_init_clock_gating(struct drm_i915_private *i915)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user