From f3211e9639d1e8a4e7dcda9b9106421f659a0492 Mon Sep 17 00:00:00 2001 From: Bora Guvendik Date: Tue, 9 Sep 2025 10:35:22 -0700 Subject: [PATCH] soc/intel/pantherlake: Add support for Acoustic Noise Mitigation UPDs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/89123 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik Reviewed-by: Jérémy Compostella --- src/soc/intel/pantherlake/romstage/fsp_params.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/soc/intel/pantherlake/romstage/fsp_params.c b/src/soc/intel/pantherlake/romstage/fsp_params.c index 22f1ec2cc3..ba6c110f2e 100644 --- a/src/soc/intel/pantherlake/romstage/fsp_params.c +++ b/src/soc/intel/pantherlake/romstage/fsp_params.c @@ -356,6 +356,21 @@ void platform_display_early_shutdown_notification(void *arg) } #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, 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_thermal_params, fill_fspm_vr_config_params, + fill_fsps_acoustic_params, }; for (size_t i = 0; i < ARRAY_SIZE(fill_fspm_params); i++)