summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorLijian Zhao <lijian.zhao@intel.com>2018-12-13 09:12:34 -0800
committerPatrick Georgi <pgeorgi@google.com>2018-12-19 06:24:27 +0000
commit9bf1d8f2761d3f83123222225aab2673cde466a7 (patch)
tree8631844fcbe60816bae7aae51587889e9a73b3b4 /src/soc
parent21046a33ef7d46e13f7ea3e4b7fae7aead499d14 (diff)
downloadcoreboot-9bf1d8f2761d3f83123222225aab2673cde466a7.tar.xz
soc/intel/cannonlake: SATA and DMI power optimize
Expose the FSP interface to enable SATA and PCH side DMI power optimize options. Actual step executed in FSP, step defined in cannonlake pch BIOS spec(CDI# 570374). Signed-off-by: Lijian Zhao <lijian.zhao@intel.com> Change-Id: Ic0c589bb21e56800090bc0c75a0256a0409efc78 Reviewed-on: https://review.coreboot.org/c/30211 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/cannonlake/chip.h6
-rw-r--r--src/soc/intel/cannonlake/fsp_params.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/src/soc/intel/cannonlake/chip.h b/src/soc/intel/cannonlake/chip.h
index 350217807c..3a723d2ab0 100644
--- a/src/soc/intel/cannonlake/chip.h
+++ b/src/soc/intel/cannonlake/chip.h
@@ -296,6 +296,12 @@ struct soc_intel_cannonlake_config {
uint8_t SlowSlewRateForGt;
uint8_t SlowSlewRateForSa;
uint8_t SlowSlewRateForFivr;
+
+ /* DMI Power Optimizer */
+ uint8_t dmipwroptimize;
+
+ /* SATA Power Optimizer */
+ uint8_t satapwroptimize;
};
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 a9326a41bf..78b27e9514 100644
--- a/src/soc/intel/cannonlake/fsp_params.c
+++ b/src/soc/intel/cannonlake/fsp_params.c
@@ -221,6 +221,10 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd)
params->FastPkgCRampDisableGt = config->FastPkgCRampDisableGt;
params->FastPkgCRampDisableSa = config->FastPkgCRampDisableSa;
params->FastPkgCRampDisableFivr = config->FastPkgCRampDisableFivr;
+
+ /* Power Optimizer */
+ params->PchPwrOptEnable = config->dmipwroptimize;
+ params->SataPwrOptEnable = config->satapwroptimize;
}
/* Mainboard GPIO Configuration */