aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/cannonlake/fsp_params.c
diff options
context:
space:
mode:
authorKrzysztof Sywula <krzysztof.m.sywula@intel.com>2019-03-21 17:11:02 -0700
committerPatrick Georgi <pgeorgi@google.com>2019-03-27 08:33:21 +0000
commit9bc9da9d7e32a73f7c051327a77ed6ab445a1e0b (patch)
tree59095eb742cb428d5ca6347a41567fc23293306d /src/soc/intel/cannonlake/fsp_params.c
parent7458629de369a220ea24afdfbf5f1dc9fdc36a5e (diff)
soc/intel/cannonlake: Configure voltage margining policies
For systems that integrate GbE controllers, following parameters should be configured: SlpS0WithGbeSupport: enable PchPmSlpS0VmRuntimeControl: disable, PchPmSlpS0Vm070VSupport: disable, PchPmSlpS0Vm075VSupport: disable. TEST=boot on any GbE supported WHL platform Change-Id: I02aaf0b77b8fc1555a3a424c02acfada21707d0e Signed-off-by: Krzysztof Sywula <krzysztof.m.sywula@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32026 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Diffstat (limited to 'src/soc/intel/cannonlake/fsp_params.c')
-rw-r--r--src/soc/intel/cannonlake/fsp_params.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/soc/intel/cannonlake/fsp_params.c b/src/soc/intel/cannonlake/fsp_params.c
index 1a3b4fbea2..6173403395 100644
--- a/src/soc/intel/cannonlake/fsp_params.c
+++ b/src/soc/intel/cannonlake/fsp_params.c
@@ -161,8 +161,15 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd)
dev = dev_find_slot(0, PCH_DEVFN_GBE);
if (!dev)
params->PchLanEnable = 0;
- else
+ else {
params->PchLanEnable = dev->enabled;
+ if (config->s0ix_enable) {
+ params->SlpS0WithGbeSupport = 1;
+ params->PchPmSlpS0VmRuntimeControl = 0;
+ params->PchPmSlpS0Vm070VSupport = 0;
+ params->PchPmSlpS0Vm075VSupport = 0;
+ }
+ }
/* Audio */
params->PchHdaDspEnable = config->PchHdaDspEnable;