diff options
author | Shaunak Saha <shaunak.saha@intel.com> | 2021-02-17 23:26:43 -0800 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2021-04-06 23:28:17 +0000 |
commit | 82d5123e1ca932b4fcb3117c859027f84873bd70 (patch) | |
tree | d8e5a3cd4bf66c4f4f9b7929aa2b2e0d9ebcb78d /src/soc/intel/tigerlake/fsp_params.c | |
parent | 967753f0d89274b73665f7aafa06ef2d0eb168ab (diff) |
intel/tigerlake: Add Acoustic features
On VCCin there was an oscillation which occurred just as the kernel
started (kernel starting... message). On some devices, this behavior
seems even worse. In previous platforms VCCin toggled for a few ms
and then was stable. For volteer, this happens at the same point in
time for around 40ms. However, it starts oscillating again later in
the boot sequence. Once at the root shell, it seems to oscillate
indefinitely at around 100-200Hz (very variable though). To fix this
we need to control the deep C-state voltage slew rate.We have options
for controlling the deep C-state voltage slew rate through FSP UPDs.
This patch expose the following FSP UPD interface into coreboot:
- AcousticNoiseMitigation
- FastPkgCRampDisable
- SlowSlewRate
We are setting SlowSlewRate for all volteer boards to 2 which is Fast/8.
TGL has a single VR domain(Vccin). Hence, the chip config is updated to
allow mainboards to set a single value instead of an array and FSP UPDs
are accordingly set.
BUG=b:153015585
BRANCH=firmware-volteer-13672.B
TEST= Measure the change in noise level by changing the UPD values.
Signed-off-by: Shaunak Saha <shaunak.saha@intel.com>
Change-Id: Ica7f1f29995df33bdebb1fd55169cdb36f329ff8
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50870
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/intel/tigerlake/fsp_params.c')
-rw-r--r-- | src/soc/intel/tigerlake/fsp_params.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/soc/intel/tigerlake/fsp_params.c b/src/soc/intel/tigerlake/fsp_params.c index 6bd4a7cbe1..9fbf9bd009 100644 --- a/src/soc/intel/tigerlake/fsp_params.c +++ b/src/soc/intel/tigerlake/fsp_params.c @@ -332,12 +332,8 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd) } params->AcousticNoiseMitigation = config->AcousticNoiseMitigation; - memcpy(¶ms->SlowSlewRate, &config->SlowSlewRate, - ARRAY_SIZE(config->SlowSlewRate) * sizeof(config->SlowSlewRate[0])); - - memcpy(¶ms->FastPkgCRampDisable, &config->FastPkgCRampDisable, - ARRAY_SIZE(config->FastPkgCRampDisable) * - sizeof(config->FastPkgCRampDisable[0])); + params->FastPkgCRampDisable[0] = config->FastPkgCRampDisable; + params->SlowSlewRate[0] = config->SlowSlewRate; /* Enable TCPU for processor thermal control */ params->Device4Enable = config->Device4Enable; |