summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/cannonlake/chip.h31
-rw-r--r--src/soc/intel/cannonlake/fsp_params.c11
2 files changed, 42 insertions, 0 deletions
diff --git a/src/soc/intel/cannonlake/chip.h b/src/soc/intel/cannonlake/chip.h
index 9eb91bdac1..8eaf02b204 100644
--- a/src/soc/intel/cannonlake/chip.h
+++ b/src/soc/intel/cannonlake/chip.h
@@ -263,6 +263,37 @@ struct soc_intel_cannonlake_config {
/* Intel VT configuration */
uint8_t VtdDisable;
uint8_t VmxEnable;
+
+ /*
+ * Acoustic Noise Mitigation
+ * 0b - Disable
+ * 1b - Enable noise mitigation
+ */
+ uint8_t AcousticNoiseMitigation;
+
+ /*
+ * Disable Fast Package C-state ramping
+ * Need to set AcousticNoiseMitigation = '1' first
+ * 0b - Enabled
+ * 1b - Disabled
+ */
+ uint8_t FastPkgCRampDisableIa;
+ uint8_t FastPkgCRampDisableGt;
+ uint8_t FastPkgCRampDisableSa;
+ uint8_t FastPkgCRampDisableFivr;
+
+ /*
+ * Adjust the VR slew rates
+ * Need to set AcousticNoiseMitigation = '1' first
+ * 000b - Fast/2
+ * 001b - Fast/4
+ * 010b - Fast/8
+ * 011b - Fast/16
+ */
+ uint8_t SlowSlewRateForIa;
+ uint8_t SlowSlewRateForGt;
+ uint8_t SlowSlewRateForSa;
+ uint8_t SlowSlewRateForFivr;
};
typedef struct soc_intel_cannonlake_config config_t;
diff --git a/src/soc/intel/cannonlake/fsp_params.c b/src/soc/intel/cannonlake/fsp_params.c
index f95745983d..a9326a41bf 100644
--- a/src/soc/intel/cannonlake/fsp_params.c
+++ b/src/soc/intel/cannonlake/fsp_params.c
@@ -210,6 +210,17 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd)
* 3 = GT unsliced, 4 = GT sliced */
for (i = 0; i < ARRAY_SIZE(config->domain_vr_config); i++)
fill_vr_domain_config(params, i, &config->domain_vr_config[i]);
+
+ /* Acoustic Noise Mitigation */
+ params->AcousticNoiseMitigation = config->AcousticNoiseMitigation;
+ params->SlowSlewRateForIa = config->SlowSlewRateForIa;
+ params->SlowSlewRateForGt = config->SlowSlewRateForGt;
+ params->SlowSlewRateForSa = config->SlowSlewRateForSa;
+ params->SlowSlewRateForFivr = config->SlowSlewRateForFivr;
+ params->FastPkgCRampDisableIa = config->FastPkgCRampDisableIa;
+ params->FastPkgCRampDisableGt = config->FastPkgCRampDisableGt;
+ params->FastPkgCRampDisableSa = config->FastPkgCRampDisableSa;
+ params->FastPkgCRampDisableFivr = config->FastPkgCRampDisableFivr;
}
/* Mainboard GPIO Configuration */