soc/intel/elkhartlake: Make hard drive type for SATA ports configurable

Intel's EHL FSP offers the possibility to select the connected hard
drive type to SATA ports. One has the option to choose between HDD ('0'
- default) and SSD ('1').

This patch provides a chip config so that this FSP parameter can be set
as needed in the devicetree on mainboard level.

Change-Id: Idb03aff5b6c5df592b47e2f4abe4fe58ac7151ba
Signed-off-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74946
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
This commit is contained in:
Mario Scheithauer 2023-05-05 10:08:45 +02:00 committed by Felix Held
parent 20d658e53c
commit 15e7499cdd
2 changed files with 2 additions and 0 deletions

View File

@ -186,6 +186,7 @@ struct soc_intel_elkhartlake_config {
uint8_t SataSalpSupport; uint8_t SataSalpSupport;
uint8_t SataPortsEnable[CONFIG_MAX_SATA_PORTS]; uint8_t SataPortsEnable[CONFIG_MAX_SATA_PORTS];
uint8_t SataPortsDevSlp[CONFIG_MAX_SATA_PORTS]; uint8_t SataPortsDevSlp[CONFIG_MAX_SATA_PORTS];
uint8_t SataPortsSSD[CONFIG_MAX_SATA_PORTS];
enum sata_speed_limit SataSpeed; enum sata_speed_limit SataSpeed;
/* /*
* Enable(0)/Disable(1) SATA Power Optimizer on PCH side. * Enable(0)/Disable(1) SATA Power Optimizer on PCH side.

View File

@ -401,6 +401,7 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd)
for (i = 0; i < CONFIG_MAX_SATA_PORTS; i++) { for (i = 0; i < CONFIG_MAX_SATA_PORTS; i++) {
params->SataPortsEnable[i] = config->SataPortsEnable[i]; params->SataPortsEnable[i] = config->SataPortsEnable[i];
params->SataPortsDevSlp[i] = config->SataPortsDevSlp[i]; params->SataPortsDevSlp[i] = config->SataPortsDevSlp[i];
params->SataPortsSolidStateDrive[i] = config->SataPortsSSD[i];
if (config->SataPortsEnableDitoConfig[i]) { if (config->SataPortsEnableDitoConfig[i]) {
params->SataPortsDmVal[i] = params->SataPortsDmVal[i] =
config->SataPortsDmVal[i] ? : DEF_DMVAL; config->SataPortsDmVal[i] ? : DEF_DMVAL;