UPSTREAM: intel/skylake: Add devicetree settings for acoustic noise mitigation
Add options to the skylake chip config that will allow tuning the
various settings that can affect acoustics with the CPU and its VRs.
These settings are applied inside FSP, and they can adjust the slew
slew rate when changing voltages or disable fast C-state ramping on
the various CPU VR rails.
BUG=b:35581264
BRANCH=none
TEST=these are currently unused, but I verified that enabling the
options can affect the acoustics of a system at runtime.
Change-Id: I9445eb29c9f3089f68f1445fce8fb50464bf10cf
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: b2aac85030
Original-Change-Id: I6a8ec0b8d3bd38b330cb4836bfa5bbbfc87dc3fb
Original-Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/18662
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Original-Tested-by: build bot (Jenkins)
Reviewed-on: https://chromium-review.googlesource.com/452358
This commit is contained in:
parent
288e6e2808
commit
1f974ff597
2 changed files with 38 additions and 0 deletions
|
|
@ -418,6 +418,35 @@ struct soc_intel_skylake_config {
|
|||
|
||||
/* Wake Enable Bitmap for USB3 ports */
|
||||
u8 usb3_wake_enable_bitmap;
|
||||
|
||||
/*
|
||||
* Acoustic Noise Mitigation
|
||||
* 0b - Disable
|
||||
* 1b - Enable noise mitigation
|
||||
*/
|
||||
u8 AcousticNoiseMitigation;
|
||||
|
||||
/*
|
||||
* Disable Fast Package C-state ramping
|
||||
* Need to set AcousticNoiseMitigation = '1' first
|
||||
* 0b - Enabled
|
||||
* 1b - Disabled
|
||||
*/
|
||||
u8 FastPkgCRampDisableIa;
|
||||
u8 FastPkgCRampDisableGt;
|
||||
u8 FastPkgCRampDisableSa;
|
||||
|
||||
/*
|
||||
* Adjust the VR slew rates
|
||||
* Need to set AcousticNoiseMitigation = '1' first
|
||||
* 000b - Fast/2
|
||||
* 001b - Fast/4
|
||||
* 010b - Fast/8
|
||||
* 011b - Fast/16
|
||||
*/
|
||||
u8 SlowSlewRateForIa;
|
||||
u8 SlowSlewRateForGt;
|
||||
u8 SlowSlewRateForSa;
|
||||
};
|
||||
|
||||
typedef struct soc_intel_skylake_config config_t;
|
||||
|
|
|
|||
|
|
@ -249,6 +249,15 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd)
|
|||
*/
|
||||
params->SendVrMbxCmd1 = config->SendVrMbxCmd;
|
||||
|
||||
/* Acoustic Noise Mitigation */
|
||||
params->AcousticNoiseMitigation = config->AcousticNoiseMitigation;
|
||||
params->SlowSlewRateForIa = config->SlowSlewRateForIa;
|
||||
params->SlowSlewRateForGt = config->SlowSlewRateForGt;
|
||||
params->SlowSlewRateForSa = config->SlowSlewRateForSa;
|
||||
params->FastPkgCRampDisableIa = config->FastPkgCRampDisableIa;
|
||||
params->FastPkgCRampDisableGt = config->FastPkgCRampDisableGt;
|
||||
params->FastPkgCRampDisableSa = config->FastPkgCRampDisableSa;
|
||||
|
||||
soc_irq_settings(params);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue