summaryrefslogtreecommitdiff
path: root/src/soc/intel
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel')
-rw-r--r--src/soc/intel/elkhartlake/chip.h8
-rw-r--r--src/soc/intel/elkhartlake/fsp_params.c1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/soc/intel/elkhartlake/chip.h b/src/soc/intel/elkhartlake/chip.h
index 94a2cdff78..d419027478 100644
--- a/src/soc/intel/elkhartlake/chip.h
+++ b/src/soc/intel/elkhartlake/chip.h
@@ -103,6 +103,13 @@ enum fivr_supported_voltage {
FIVR_VOLTAGE_MIN_RETENTION,
};
+/* SATA speed limit */
+enum sata_speed_limit {
+ SATA_DEFAULT = 0,
+ SATA_GEN1,
+ SATA_GEN2
+};
+
struct soc_intel_elkhartlake_config {
/* Common struct containing soc config data required by common code */
@@ -181,6 +188,7 @@ struct soc_intel_elkhartlake_config {
uint8_t SataSalpSupport;
uint8_t SataPortsEnable[CONFIG_MAX_SATA_PORTS];
uint8_t SataPortsDevSlp[CONFIG_MAX_SATA_PORTS];
+ enum sata_speed_limit SataSpeed;
/*
* Enable(0)/Disable(1) SATA Power Optimizer on PCH side.
* Default 0. Setting this to 1 disables the SATA Power Optimizer.
diff --git a/src/soc/intel/elkhartlake/fsp_params.c b/src/soc/intel/elkhartlake/fsp_params.c
index c72d4da2b1..1466ee21a2 100644
--- a/src/soc/intel/elkhartlake/fsp_params.c
+++ b/src/soc/intel/elkhartlake/fsp_params.c
@@ -368,6 +368,7 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd)
params->SataMode = config->SataMode;
params->SataSalpSupport = config->SataSalpSupport;
params->SataPwrOptEnable = !(config->SataPwrOptimizeDisable);
+ params->SataSpeedLimit = config->SataSpeed;
for (i = 0; i < CONFIG_MAX_SATA_PORTS; i++) {
params->SataPortsEnable[i] = config->SataPortsEnable[i];