summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2024-11-03 12:12:43 +0530
committerSubrata Banik <subratabanik@google.com>2024-11-05 03:35:04 +0000
commit5e580c79dfd43387e6d375c94c6d95c520189111 (patch)
treeec92c811c701b88d5982bf214f550b9395ee578c /src
parente3e4eb99890146c12c65ef12a9e815b859ad874c (diff)
soc/intel/alderlake: Disable UFS controllers only on S5 resume
Disable UFS controllers during romstage initialization only when resuming from S5 (full power off). On warm reboot, the UFS controllers are already disabled by the previous boot cycle, so disabling them again is unnecessary. TEST=Able to ensure UFS controller is already disabled in warm reboot path and not causing any problem during S0ix cycle test. Change-Id: Ia27d2156a002cef032d5f57d212cf4eb520b3bdf Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84974 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jayvik Desai <jayvik@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/alderlake/romstage/romstage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/alderlake/romstage/romstage.c b/src/soc/intel/alderlake/romstage/romstage.c
index 2f50cd29dd..3acd2fd7c3 100644
--- a/src/soc/intel/alderlake/romstage/romstage.c
+++ b/src/soc/intel/alderlake/romstage/romstage.c
@@ -188,9 +188,9 @@ void mainboard_romstage_entry(void)
/* Program to Disable UFS Controllers */
if (!is_devfn_enabled(PCH_DEVFN_UFS) &&
(CONFIG(USE_UNIFIED_AP_FIRMWARE_FOR_UFS_AND_NON_UFS))) {
- printk(BIOS_INFO, "Disabling UFS controllers\n");
- disable_ufs();
if (ps->prev_sleep_state == ACPI_S5 && !mainboard_expects_another_reset()) {
+ printk(BIOS_INFO, "Disabling UFS controllers\n");
+ disable_ufs();
printk(BIOS_INFO, "Warm Reset after disabling UFS controllers\n");
system_reset();
}