soc/intel/appololake: Allow to configure SATA ALPM via devicetree

Add a devicetree option to disable SATA Aggressive Link Power
Management. ALPM is a method of saving power. The corresponding FSP-S
UPD parameter is enabled by default. It may be that this feature is
unwanted, for example for a real-time system. Therefore, allow to
disable ALPM using the devicetree.

Change-Id: Ica8920a87ebebe83f5d8cb4d6c8c0a6105e183e4
Signed-off-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61401
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
This commit is contained in:
Mario Scheithauer 2022-01-26 11:49:10 +01:00 committed by Felix Held
parent 87d1cc6598
commit b11f381740
2 changed files with 7 additions and 0 deletions

View File

@ -693,6 +693,10 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *silupd)
silconfig->PavpEnable = CONFIG(PAVP);
/* SATA config */
if (is_devfn_enabled(PCH_DEVFN_SATA))
silconfig->SataSalpSupport = !(cfg->DisableSataSalpSupport);
mainboard_silicon_init_params(silconfig);
}

View File

@ -190,6 +190,9 @@ struct soc_intel_apollolake_config {
* 0:Enable (default), 1:Disable.
*/
uint8_t disable_xhci_lfps_pm;
/* SATA Aggressive Link Power Management */
uint8_t DisableSataSalpSupport;
};
typedef struct soc_intel_apollolake_config config_t;