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:
committed by
Michael Niewöhner
parent
3c0486913f
commit
0901d03085
@ -166,8 +166,9 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd)
|
||||
}
|
||||
}
|
||||
|
||||
params->SataEnable = config->EnableSata;
|
||||
if (config->EnableSata) {
|
||||
dev = pcidev_path_on_root(PCH_DEVFN_SATA);
|
||||
params->SataEnable = dev ? dev->enabled : 0;
|
||||
if (params->SataEnable) {
|
||||
memcpy(params->SataPortsEnable, config->SataPortsEnable,
|
||||
sizeof(params->SataPortsEnable));
|
||||
memcpy(params->SataPortsDevSlp, config->SataPortsDevSlp,
|
||||
|
Reference in New Issue
Block a user