soc/intel/cannonlake: Configure SataPwrOptEnable only if SATA is enabled
Change-Id: I522dc7287c85b304f6fc62c0c554e4d062c3c61c Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43914 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Michael Niewöhner
This commit is contained in:
parent
6c3a89c431
commit
172bcc835f
|
@ -292,15 +292,14 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd)
|
||||||
else {
|
else {
|
||||||
params->SataEnable = dev->enabled;
|
params->SataEnable = dev->enabled;
|
||||||
params->SataMode = config->SataMode;
|
params->SataMode = config->SataMode;
|
||||||
|
params->SataPwrOptEnable = config->satapwroptimize;
|
||||||
params->SataSalpSupport = config->SataSalpSupport;
|
params->SataSalpSupport = config->SataSalpSupport;
|
||||||
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,
|
||||||
sizeof(params->SataPortsDevSlp));
|
sizeof(params->SataPortsDevSlp));
|
||||||
|
|
||||||
memcpy(params->SataPortsHotPlug, config->SataPortsHotPlug,
|
memcpy(params->SataPortsHotPlug, config->SataPortsHotPlug,
|
||||||
sizeof(params->SataPortsHotPlug));
|
sizeof(params->SataPortsHotPlug));
|
||||||
|
|
||||||
#if CONFIG(SOC_INTEL_COMETLAKE)
|
#if CONFIG(SOC_INTEL_COMETLAKE)
|
||||||
memcpy(params->SataPortsDevSlpResetConfig,
|
memcpy(params->SataPortsDevSlpResetConfig,
|
||||||
config->SataPortsDevSlpResetConfig,
|
config->SataPortsDevSlpResetConfig,
|
||||||
|
@ -550,9 +549,6 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd)
|
||||||
params->FastPkgCRampDisableSa = config->FastPkgCRampDisableSa;
|
params->FastPkgCRampDisableSa = config->FastPkgCRampDisableSa;
|
||||||
params->FastPkgCRampDisableFivr = config->FastPkgCRampDisableFivr;
|
params->FastPkgCRampDisableFivr = config->FastPkgCRampDisableFivr;
|
||||||
|
|
||||||
/* Power Optimizer */
|
|
||||||
params->SataPwrOptEnable = config->satapwroptimize;
|
|
||||||
|
|
||||||
/* Disable PCH ACPI timer */
|
/* Disable PCH ACPI timer */
|
||||||
params->EnableTcoTimer = !config->PmTimerDisabled;
|
params->EnableTcoTimer = !config->PmTimerDisabled;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue