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

Intel's APL 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: I52c3566fb3c959ada6be33f0546ac331f4867d10
Signed-off-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75366
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jan Samek <jan.samek@siemens.com>
This commit is contained in:
Mario Scheithauer 2023-05-22 15:27:36 +02:00 committed by Felix Held
parent 6256fb63ff
commit c8dc2c1204
2 changed files with 5 additions and 0 deletions

View File

@ -739,6 +739,8 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *silupd)
silconfig->SpeedLimit = cfg->sata_speed;
memcpy(silconfig->SataPortsEnable, cfg->SataPortsEnable,
sizeof(silconfig->SataPortsEnable));
memcpy(silconfig->SataPortsSolidStateDrive, cfg->sata_ports_ssd,
sizeof(silconfig->SataPortsSolidStateDrive));
}
/* Sata Power Optimisation */

View File

@ -109,6 +109,9 @@ struct soc_intel_apollolake_config {
/* Sata Ports Enable */
uint8_t SataPortsEnable[2];
/* Sata Ports Solid State Drive */
uint8_t sata_ports_ssd[2];
/* Specifies on which IRQ the SCI will internally appear. */
uint8_t sci_irq;