soc/intel/skylake: Enable SATA depending on devicetree configuration
Currently SATA gets enabled by the option EnableSata, but this duplicates the devicetree on/off options. Therefore use the on/off options for the enablement of the SATA controller. I checked all corresponding mainboards if the devicetree configuration matches the EnableSata setting. Change-Id: I217dcb7178f29bbdeada54bdb774166126b47a5a Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43843 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner
This commit is contained in:
parent
3c0486913f
commit
0901d03085
24 changed files with 14 additions and 36 deletions
|
@ -37,7 +37,6 @@ chip soc/intel/skylake
|
||||||
# FSP Configuration
|
# FSP Configuration
|
||||||
register "ProbelessTrace" = "0"
|
register "ProbelessTrace" = "0"
|
||||||
register "EnableLan" = "0"
|
register "EnableLan" = "0"
|
||||||
register "EnableSata" = "1"
|
|
||||||
register "SataSalpSupport" = "1"
|
register "SataSalpSupport" = "1"
|
||||||
register "SataMode" = "0"
|
register "SataMode" = "0"
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,6 @@ chip soc/intel/skylake
|
||||||
register "usb3_ports[9]" = "USB3_PORT_DEFAULT(OC_SKIP)"
|
register "usb3_ports[9]" = "USB3_PORT_DEFAULT(OC_SKIP)"
|
||||||
|
|
||||||
# SATA
|
# SATA
|
||||||
register "EnableSata" = "1"
|
|
||||||
register "SataSalpSupport" = "1"
|
register "SataSalpSupport" = "1"
|
||||||
# SATA4 and SATA5 are located in the lower right corner of the board,
|
# SATA4 and SATA5 are located in the lower right corner of the board,
|
||||||
# but they are not populated. This is because the same PCB is used to
|
# but they are not populated. This is because the same PCB is used to
|
||||||
|
|
|
@ -49,18 +49,17 @@ chip soc/intel/skylake
|
||||||
register "HeciEnabled" = "0"
|
register "HeciEnabled" = "0"
|
||||||
register "EnableLan" = "1"
|
register "EnableLan" = "1"
|
||||||
|
|
||||||
register "EnableSata" = "1"
|
register "SataSalpSupport" = "1"
|
||||||
register "SataSalpSupport" = "1"
|
register "SataPortsEnable" = "{ \
|
||||||
register "SataPortsEnable" = "{ \
|
[0] = 1, \
|
||||||
[0] = 1, \
|
[1] = 0, \
|
||||||
[1] = 0, \
|
[2] = 0, \
|
||||||
[2] = 0, \
|
[3] = 0, \
|
||||||
[3] = 0, \
|
[4] = 0, \
|
||||||
[4] = 0, \
|
[5] = 0, \
|
||||||
[5] = 0, \
|
[6] = 0, \
|
||||||
[6] = 0, \
|
[7] = 0, \
|
||||||
[7] = 0, \
|
}"
|
||||||
}"
|
|
||||||
|
|
||||||
# Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
|
# Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
|
||||||
# SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
|
# SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
|
||||||
|
|
|
@ -37,7 +37,6 @@ chip soc/intel/skylake
|
||||||
# FSP Configuration
|
# FSP Configuration
|
||||||
register "ProbelessTrace" = "0"
|
register "ProbelessTrace" = "0"
|
||||||
register "EnableLan" = "0"
|
register "EnableLan" = "0"
|
||||||
register "EnableSata" = "0"
|
|
||||||
register "SataSalpSupport" = "0"
|
register "SataSalpSupport" = "0"
|
||||||
register "SataMode" = "0"
|
register "SataMode" = "0"
|
||||||
register "SataPortsEnable[0]" = "0"
|
register "SataPortsEnable[0]" = "0"
|
||||||
|
|
|
@ -66,7 +66,6 @@ chip soc/intel/skylake
|
||||||
# FSP Configuration
|
# FSP Configuration
|
||||||
register "ProbelessTrace" = "0"
|
register "ProbelessTrace" = "0"
|
||||||
register "EnableLan" = "0"
|
register "EnableLan" = "0"
|
||||||
register "EnableSata" = "1"
|
|
||||||
register "SataSalpSupport" = "0"
|
register "SataSalpSupport" = "0"
|
||||||
register "SataMode" = "0"
|
register "SataMode" = "0"
|
||||||
register "SataPortsEnable[0]" = "1"
|
register "SataPortsEnable[0]" = "1"
|
||||||
|
|
|
@ -39,7 +39,6 @@ chip soc/intel/skylake
|
||||||
# FSP Configuration
|
# FSP Configuration
|
||||||
register "ProbelessTrace" = "0"
|
register "ProbelessTrace" = "0"
|
||||||
register "EnableLan" = "0"
|
register "EnableLan" = "0"
|
||||||
register "EnableSata" = "0"
|
|
||||||
register "SataSalpSupport" = "0"
|
register "SataSalpSupport" = "0"
|
||||||
register "SataMode" = "0"
|
register "SataMode" = "0"
|
||||||
register "SataPortsEnable[0]" = "0"
|
register "SataPortsEnable[0]" = "0"
|
||||||
|
|
|
@ -43,7 +43,6 @@ chip soc/intel/skylake
|
||||||
# FSP Configuration
|
# FSP Configuration
|
||||||
register "ProbelessTrace" = "0"
|
register "ProbelessTrace" = "0"
|
||||||
register "EnableLan" = "0"
|
register "EnableLan" = "0"
|
||||||
register "EnableSata" = "0"
|
|
||||||
register "SataSalpSupport" = "0"
|
register "SataSalpSupport" = "0"
|
||||||
register "SataMode" = "0"
|
register "SataMode" = "0"
|
||||||
register "SataPortsEnable[0]" = "0"
|
register "SataPortsEnable[0]" = "0"
|
||||||
|
|
|
@ -33,7 +33,6 @@ chip soc/intel/skylake
|
||||||
# FSP Configuration
|
# FSP Configuration
|
||||||
register "ProbelessTrace" = "0"
|
register "ProbelessTrace" = "0"
|
||||||
register "EnableLan" = "0"
|
register "EnableLan" = "0"
|
||||||
register "EnableSata" = "0"
|
|
||||||
register "SataSalpSupport" = "0"
|
register "SataSalpSupport" = "0"
|
||||||
register "SataMode" = "0"
|
register "SataMode" = "0"
|
||||||
register "SataPortsEnable[0]" = "0"
|
register "SataPortsEnable[0]" = "0"
|
||||||
|
|
|
@ -33,7 +33,6 @@ chip soc/intel/skylake
|
||||||
# FSP Configuration
|
# FSP Configuration
|
||||||
register "ProbelessTrace" = "0"
|
register "ProbelessTrace" = "0"
|
||||||
register "EnableLan" = "0"
|
register "EnableLan" = "0"
|
||||||
register "EnableSata" = "0"
|
|
||||||
register "SataSalpSupport" = "0"
|
register "SataSalpSupport" = "0"
|
||||||
register "SataMode" = "0"
|
register "SataMode" = "0"
|
||||||
register "EnableAzalia" = "1"
|
register "EnableAzalia" = "1"
|
||||||
|
|
|
@ -33,7 +33,6 @@ chip soc/intel/skylake
|
||||||
# FSP Configuration
|
# FSP Configuration
|
||||||
register "ProbelessTrace" = "0"
|
register "ProbelessTrace" = "0"
|
||||||
register "EnableLan" = "0"
|
register "EnableLan" = "0"
|
||||||
register "EnableSata" = "0"
|
|
||||||
register "SataSalpSupport" = "0"
|
register "SataSalpSupport" = "0"
|
||||||
register "SataMode" = "0"
|
register "SataMode" = "0"
|
||||||
register "SataPortsEnable[0]" = "0"
|
register "SataPortsEnable[0]" = "0"
|
||||||
|
|
|
@ -38,7 +38,6 @@ chip soc/intel/skylake
|
||||||
# FSP Configuration
|
# FSP Configuration
|
||||||
register "ProbelessTrace" = "0"
|
register "ProbelessTrace" = "0"
|
||||||
register "EnableLan" = "0"
|
register "EnableLan" = "0"
|
||||||
register "EnableSata" = "0"
|
|
||||||
register "SataSalpSupport" = "0"
|
register "SataSalpSupport" = "0"
|
||||||
register "SataMode" = "0"
|
register "SataMode" = "0"
|
||||||
register "SataPortsEnable[0]" = "0"
|
register "SataPortsEnable[0]" = "0"
|
||||||
|
|
|
@ -43,7 +43,6 @@ chip soc/intel/skylake
|
||||||
# FSP Configuration
|
# FSP Configuration
|
||||||
register "ProbelessTrace" = "0"
|
register "ProbelessTrace" = "0"
|
||||||
register "EnableLan" = "0"
|
register "EnableLan" = "0"
|
||||||
register "EnableSata" = "0"
|
|
||||||
register "SataSalpSupport" = "0"
|
register "SataSalpSupport" = "0"
|
||||||
register "SataMode" = "0"
|
register "SataMode" = "0"
|
||||||
register "SataPortsEnable[0]" = "0"
|
register "SataPortsEnable[0]" = "0"
|
||||||
|
|
|
@ -33,7 +33,6 @@ chip soc/intel/skylake
|
||||||
# FSP Configuration
|
# FSP Configuration
|
||||||
register "ProbelessTrace" = "0"
|
register "ProbelessTrace" = "0"
|
||||||
register "EnableLan" = "0"
|
register "EnableLan" = "0"
|
||||||
register "EnableSata" = "0"
|
|
||||||
register "SataSalpSupport" = "0"
|
register "SataSalpSupport" = "0"
|
||||||
register "SataMode" = "0"
|
register "SataMode" = "0"
|
||||||
register "SataPortsEnable[0]" = "0"
|
register "SataPortsEnable[0]" = "0"
|
||||||
|
|
|
@ -84,7 +84,6 @@ chip soc/intel/skylake
|
||||||
|
|
||||||
register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # I2C4 is 1.8V
|
register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # I2C4 is 1.8V
|
||||||
|
|
||||||
register "EnableSata" = "1"
|
|
||||||
register "SataSalpSupport" = "1"
|
register "SataSalpSupport" = "1"
|
||||||
register "SataPortsEnable" = "{ \
|
register "SataPortsEnable" = "{ \
|
||||||
[0] = 1, \
|
[0] = 1, \
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
chip soc/intel/skylake
|
chip soc/intel/skylake
|
||||||
|
|
||||||
# SATA port 0
|
# SATA port 0
|
||||||
register "EnableSata" = "1"
|
|
||||||
register "SataPortsEnable[0]" = "1"
|
register "SataPortsEnable[0]" = "1"
|
||||||
register "SataPortsEnable[1]" = "1"
|
register "SataPortsEnable[1]" = "1"
|
||||||
register "SataPortsEnable[2]" = "1"
|
register "SataPortsEnable[2]" = "1"
|
||||||
|
|
|
@ -127,7 +127,6 @@ chip soc/intel/skylake
|
||||||
|
|
||||||
register "SsicPortEnable" = "1" # Enable SSIC for WWAN
|
register "SsicPortEnable" = "1" # Enable SSIC for WWAN
|
||||||
|
|
||||||
register "EnableSata" = "1"
|
|
||||||
register "SataSalpSupport" = "1"
|
register "SataSalpSupport" = "1"
|
||||||
register "SataPortsEnable" = "{ \
|
register "SataPortsEnable" = "{ \
|
||||||
[0] = 1, \
|
[0] = 1, \
|
||||||
|
|
|
@ -175,7 +175,6 @@ chip soc/intel/skylake
|
||||||
|
|
||||||
# Must leave UART0 enabled or SD/eMMC will not work as PCI
|
# Must leave UART0 enabled or SD/eMMC will not work as PCI
|
||||||
|
|
||||||
register "EnableSata" = "1"
|
|
||||||
register "SataSalpSupport" = "1"
|
register "SataSalpSupport" = "1"
|
||||||
register "SataPortsEnable" = "{ \
|
register "SataPortsEnable" = "{ \
|
||||||
[0] = 1, \
|
[0] = 1, \
|
||||||
|
|
|
@ -39,7 +39,6 @@ chip soc/intel/skylake
|
||||||
# FSP Configuration
|
# FSP Configuration
|
||||||
register "ProbelessTrace" = "0"
|
register "ProbelessTrace" = "0"
|
||||||
register "EnableLan" = "0"
|
register "EnableLan" = "0"
|
||||||
register "EnableSata" = "1"
|
|
||||||
register "SataSalpSupport" = "0"
|
register "SataSalpSupport" = "0"
|
||||||
register "SataMode" = "0"
|
register "SataMode" = "0"
|
||||||
register "SataPortsEnable[0]" = "1"
|
register "SataPortsEnable[0]" = "1"
|
||||||
|
|
|
@ -35,7 +35,6 @@ chip soc/intel/skylake
|
||||||
# FSP Configuration
|
# FSP Configuration
|
||||||
register "ProbelessTrace" = "0"
|
register "ProbelessTrace" = "0"
|
||||||
register "EnableLan" = "0"
|
register "EnableLan" = "0"
|
||||||
register "EnableSata" = "1"
|
|
||||||
register "SataSalpSupport" = "0"
|
register "SataSalpSupport" = "0"
|
||||||
register "SataMode" = "0"
|
register "SataMode" = "0"
|
||||||
register "EnableAzalia" = "0"
|
register "EnableAzalia" = "0"
|
||||||
|
|
|
@ -46,7 +46,6 @@ chip soc/intel/skylake
|
||||||
# FSP Configuration
|
# FSP Configuration
|
||||||
register "ProbelessTrace" = "0"
|
register "ProbelessTrace" = "0"
|
||||||
register "EnableLan" = "0"
|
register "EnableLan" = "0"
|
||||||
register "EnableSata" = "1"
|
|
||||||
register "SataSalpSupport" = "0"
|
register "SataSalpSupport" = "0"
|
||||||
register "SataMode" = "0"
|
register "SataMode" = "0"
|
||||||
register "SataPortsEnable[0]" = "1"
|
register "SataPortsEnable[0]" = "1"
|
||||||
|
|
|
@ -28,7 +28,6 @@ chip soc/intel/skylake
|
||||||
# FSP Configuration
|
# FSP Configuration
|
||||||
register "ProbelessTrace" = "0"
|
register "ProbelessTrace" = "0"
|
||||||
register "EnableLan" = "0"
|
register "EnableLan" = "0"
|
||||||
register "EnableSata" = "0"
|
|
||||||
register "SataSalpSupport" = "0"
|
register "SataSalpSupport" = "0"
|
||||||
register "SataMode" = "0"
|
register "SataMode" = "0"
|
||||||
register "SataPortsEnable[0]" = "0"
|
register "SataPortsEnable[0]" = "0"
|
||||||
|
|
|
@ -17,7 +17,6 @@ chip soc/intel/skylake
|
||||||
|
|
||||||
# SATA configuration
|
# SATA configuration
|
||||||
register "SataMode" = "KBLFSP_SATA_MODE_AHCI"
|
register "SataMode" = "KBLFSP_SATA_MODE_AHCI"
|
||||||
register "EnableSata" = "1"
|
|
||||||
register "SataSalpSupport" = "1"
|
register "SataSalpSupport" = "1"
|
||||||
register "SataPortsEnable" = "{ \
|
register "SataPortsEnable" = "{ \
|
||||||
[0] = 1, \
|
[0] = 1, \
|
||||||
|
|
|
@ -166,8 +166,9 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
params->SataEnable = config->EnableSata;
|
dev = pcidev_path_on_root(PCH_DEVFN_SATA);
|
||||||
if (config->EnableSata) {
|
params->SataEnable = dev ? dev->enabled : 0;
|
||||||
|
if (params->SataEnable) {
|
||||||
memcpy(params->SataPortsEnable, config->SataPortsEnable,
|
memcpy(params->SataPortsEnable, config->SataPortsEnable,
|
||||||
sizeof(params->SataPortsEnable));
|
sizeof(params->SataPortsEnable));
|
||||||
memcpy(params->SataPortsDevSlp, config->SataPortsDevSlp,
|
memcpy(params->SataPortsDevSlp, config->SataPortsDevSlp,
|
||||||
|
|
|
@ -143,7 +143,6 @@ struct soc_intel_skylake_config {
|
||||||
u8 LanClkReqNumber;
|
u8 LanClkReqNumber;
|
||||||
|
|
||||||
/* SATA related */
|
/* SATA related */
|
||||||
u8 EnableSata;
|
|
||||||
enum {
|
enum {
|
||||||
/* Documentation and header files of Skylake FSP disagree on
|
/* Documentation and header files of Skylake FSP disagree on
|
||||||
the values, Kaby Lake FSP (KabylakeFsp0001 on github) uses
|
the values, Kaby Lake FSP (KabylakeFsp0001 on github) uses
|
||||||
|
|
Loading…
Reference in a new issue