diff options
author | Angel Pons <th3fanbus@gmail.com> | 2023-05-04 12:55:42 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-05-05 13:22:17 +0000 |
commit | f574c3305a0db9ba85c257222e03a08455476091 (patch) | |
tree | 779d6f13e988d3f465f1b20e8f265889972b2805 /src | |
parent | 3321bb3eb3cf81e75e8b59f28d1bb92a3bece19a (diff) |
soc/amd/cmn/acpi/sleepstates.asl: Align with sb/amd
Adjust a few things so that the sleepstates.asl file is the same for
sb/amd and soc/amd. These adjustments don't have a functional impact.
Change-Id: I0cc9462b326cdc371ffdbf5759d8adc42456ce74
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74960
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/amd/common/acpi/sleepstates.asl | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/soc/amd/common/acpi/sleepstates.asl b/src/soc/amd/common/acpi/sleepstates.asl index 887f6df4d0..e56dfb01e5 100644 --- a/src/soc/amd/common/acpi/sleepstates.asl +++ b/src/soc/amd/common/acpi/sleepstates.asl @@ -1,17 +1,18 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */ -Name(SSFG, 0x09) -If (CONFIG(HAVE_ACPI_RESUME)) { - SSFG = 0x0D -} +#if CONFIG(HAVE_ACPI_RESUME) +Name (SSFG, 0x0D) +#else +Name (SSFG, 0x09) +#endif If (CONFIG(ACPI_S1_NOT_SUPPORTED)) { SSFG &= 0xfe } If (CONFIG(DISABLE_ACPI_HIBERNATE)) { - SSFG &= 0xF7 + SSFG &= 0xf7 } External (\OSFG, IntObj) |