mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
drm/i915/dmc: Parametrize MTL_PIPEDMC_GATING_DIS
The MTL+ pipe DMC clock gating bits can be parametrized. Make it so. Reviewed-by: Uma Shankar <uma.shankar@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250617170759.19552-3-ville.syrjala@linux.intel.com
This commit is contained in:
parent
42a7bf8aa7
commit
eddc8a0572
|
|
@ -483,7 +483,8 @@ static void mtl_pipedmc_clock_gating_wa(struct intel_display *display)
|
|||
* for pipe A and B.
|
||||
*/
|
||||
intel_de_rmw(display, GEN9_CLKGATE_DIS_0, 0,
|
||||
MTL_PIPEDMC_GATING_DIS_A | MTL_PIPEDMC_GATING_DIS_B);
|
||||
MTL_PIPEDMC_GATING_DIS(PIPE_A) |
|
||||
MTL_PIPEDMC_GATING_DIS(PIPE_B));
|
||||
}
|
||||
|
||||
static void pipedmc_clock_gating_wa(struct intel_display *display, bool enable)
|
||||
|
|
|
|||
|
|
@ -763,8 +763,7 @@
|
|||
*/
|
||||
#define GEN9_CLKGATE_DIS_0 _MMIO(0x46530)
|
||||
#define DARBF_GATING_DIS REG_BIT(27)
|
||||
#define MTL_PIPEDMC_GATING_DIS_A REG_BIT(15)
|
||||
#define MTL_PIPEDMC_GATING_DIS_B REG_BIT(14)
|
||||
#define MTL_PIPEDMC_GATING_DIS(pipe) REG_BIT(15 - (pipe))
|
||||
#define PWM2_GATING_DIS REG_BIT(14)
|
||||
#define PWM1_GATING_DIS REG_BIT(13)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user