summaryrefslogtreecommitdiff
path: root/src/soc/intel/skylake
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2017-09-22 00:05:28 -0500
committerMartin Roth <martinroth@google.com>2017-12-09 16:55:31 +0000
commit87f67bc69912c8725769481d70352eef894baa3a (patch)
treea3bb683049c51b7cdb60ee11d47b269143b8c241 /src/soc/intel/skylake
parenta8380fcfd80cca6ac88be5ac342e85c94d77ad7a (diff)
soc/intel/skylake: add acoustic noise mitigation params for FSP 1.1
Adapted from Chromium commit d6655eb [Skylake: create UPD Interface for acoustic noise tuning] Add FSP 1.1 params needed for acoustic mitigation on google/caroline (to be upstreamed in a subsequent commit). TEST: build/boot google/caroline Change-Id: Ifb36ecef8c1735c63a5322d952929e9c34cddfb9 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/22524 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc/intel/skylake')
-rw-r--r--src/soc/intel/skylake/chip.c22
-rw-r--r--src/soc/intel/skylake/chip.h3
2 files changed, 25 insertions, 0 deletions
diff --git a/src/soc/intel/skylake/chip.c b/src/soc/intel/skylake/chip.c
index 3e33053abb..4909ea4ccb 100644
--- a/src/soc/intel/skylake/chip.c
+++ b/src/soc/intel/skylake/chip.c
@@ -196,6 +196,13 @@ void soc_silicon_init_params(SILICON_INIT_UPD *params)
params->SendVrMbxCmd = config->SendVrMbxCmd;
+ /* Acoustic Noise Mitigation */
+ params->AcousticNoiseMitigation = config->AcousticNoiseMitigation;
+ params->SlowSlewRateForIa = config->SlowSlewRateForIa;
+ params->SlowSlewRateForGt = config->SlowSlewRateForGt;
+ params->SlowSlewRateForSa = config->SlowSlewRateForSa;
+ params->FastPkgCRampDisable = config->FastPkgCRampDisable;
+
soc_irq_settings(params);
}
@@ -801,6 +808,21 @@ void soc_display_silicon_init_params(const SILICON_INIT_UPD *original,
fsp_display_upd_value("SendVrMbxCmd", 1,
original->SendVrMbxCmd,
params->SendVrMbxCmd);
+ fsp_display_upd_value("AcousticNoiseMitigation", 1,
+ original->AcousticNoiseMitigation,
+ params->AcousticNoiseMitigation);
+ fsp_display_upd_value("SlowSlewRateForIa", 1,
+ original->SlowSlewRateForIa,
+ params->SlowSlewRateForIa);
+ fsp_display_upd_value("SlowSlewRateForGt", 1,
+ original->SlowSlewRateForGt,
+ params->SlowSlewRateForGt);
+ fsp_display_upd_value("SlowSlewRateForSa", 1,
+ original->SlowSlewRateForSa,
+ params->SlowSlewRateForSa);
+ fsp_display_upd_value("FastPkgCRampDisable", 1,
+ original->FastPkgCRampDisable,
+ params->FastPkgCRampDisable);
}
static void pci_set_subsystem(device_t dev, unsigned int vendor,
diff --git a/src/soc/intel/skylake/chip.h b/src/soc/intel/skylake/chip.h
index 4db8382d68..a7804af14f 100644
--- a/src/soc/intel/skylake/chip.h
+++ b/src/soc/intel/skylake/chip.h
@@ -485,6 +485,9 @@ struct soc_intel_skylake_config {
* 0b - Enabled
* 1b - Disabled
*/
+ /* FSP 1.1 */
+ u8 FastPkgCRampDisable;
+ /* FSP 2.0 */
u8 FastPkgCRampDisableIa;
u8 FastPkgCRampDisableGt;
u8 FastPkgCRampDisableSa;