soc/intel/alderlake: Disable UFS controllers only on S5 resume
commit5e580c79dfd43387e6d375c94c6d95c520189111
authorSubrata Banik <subratabanik@google.com>
Sun, 3 Nov 2024 06:42:43 +0000 (3 12:12 +0530)
committerSubrata Banik <subratabanik@google.com>
Tue, 5 Nov 2024 03:35:04 +0000 (5 03:35 +0000)
treeec92c811c701b88d5982bf214f550b9395ee578c
parente3e4eb99890146c12c65ef12a9e815b859ad874c
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>
src/soc/intel/alderlake/romstage/romstage.c