soc/intel/alderlake: Allow devicetree override to leave some VR settings as default

Allow devicetree override to leave ac_loadline, dc_loadline and icc_max as default.

Test=Boot to OS

Signed-off-by: Bora Guvendik <bora.guvendik@intel.com>
Change-Id: I715345d5ea83aed9ee929b2a4e13921c9d8895b1
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58807
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
Bora Guvendik 2021-09-02 13:23:03 -07:00 committed by Patrick Georgi
parent 7e27202441
commit f6f1258673
1 changed files with 6 additions and 3 deletions

View File

@ -87,9 +87,12 @@ void fill_vr_domain_config(FSP_S_CONFIG *s_cfg,
if (chip_cfg->vr_config_enable) {
cfg = chip_cfg;
s_cfg->AcLoadline[domain] = cfg->ac_loadline;
s_cfg->DcLoadline[domain] = cfg->dc_loadline;
s_cfg->IccMax[domain] = cfg->icc_max;
if (cfg->ac_loadline)
s_cfg->AcLoadline[domain] = cfg->ac_loadline;
if (cfg->dc_loadline)
s_cfg->DcLoadline[domain] = cfg->dc_loadline;
if (cfg->icc_max)
s_cfg->IccMax[domain] = cfg->icc_max;
s_cfg->TdcTimeWindow[domain] = cfg->tdc_timewindow;
s_cfg->TdcCurrentLimit[domain] = cfg->tdc_currentlimit;
} else {