soc/intel/pantherlake: Add support for Acoustic Noise Mitigation UPDs
SlowSlewRate, AcousticNoiseMitigation and FastPkgCRampDisable upds can be overwritten with this patch. BUG=none TEST=Able to override the acoustic noise UPDs. Change-Id: I5bfa98834f8d7cfcaab3fdbb7dde914d78529581 Signed-off-by: Bora Guvendik <bora.guvendik@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/89123 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
This commit is contained in:
parent
2c03fd06a9
commit
f3211e9639
1 changed files with 16 additions and 0 deletions
|
|
@ -356,6 +356,21 @@ void platform_display_early_shutdown_notification(void *arg)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static void fill_fsps_acoustic_params(FSP_M_CONFIG *m_cfg,
|
||||||
|
const struct soc_intel_pantherlake_config *config)
|
||||||
|
{
|
||||||
|
if (!config->enable_acoustic_noise_mitigation)
|
||||||
|
return;
|
||||||
|
|
||||||
|
m_cfg->AcousticNoiseMitigation = config->enable_acoustic_noise_mitigation;
|
||||||
|
|
||||||
|
for (size_t i = 0; i < ARRAY_SIZE(config->disable_fast_pkgc_ramp); i++) {
|
||||||
|
m_cfg->FastPkgCRampDisable[i] = config->disable_fast_pkgc_ramp[i];
|
||||||
|
m_cfg->SlowSlewRate[i] = config->slow_slew_rate_config[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static void soc_memory_init_params(FSP_M_CONFIG *m_cfg,
|
static void soc_memory_init_params(FSP_M_CONFIG *m_cfg,
|
||||||
const struct soc_intel_pantherlake_config *config)
|
const struct soc_intel_pantherlake_config *config)
|
||||||
{
|
{
|
||||||
|
|
@ -377,6 +392,7 @@ static void soc_memory_init_params(FSP_M_CONFIG *m_cfg,
|
||||||
fill_fspm_trace_params,
|
fill_fspm_trace_params,
|
||||||
fill_fspm_thermal_params,
|
fill_fspm_thermal_params,
|
||||||
fill_fspm_vr_config_params,
|
fill_fspm_vr_config_params,
|
||||||
|
fill_fsps_acoustic_params,
|
||||||
};
|
};
|
||||||
|
|
||||||
for (size_t i = 0; i < ARRAY_SIZE(fill_fspm_params); i++)
|
for (size_t i = 0; i < ARRAY_SIZE(fill_fspm_params); i++)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue