summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/acpi
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/common/acpi')
-rw-r--r--src/soc/amd/common/acpi/sleepstates.asl10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/soc/amd/common/acpi/sleepstates.asl b/src/soc/amd/common/acpi/sleepstates.asl
index 03d28bb4f8..887f6df4d0 100644
--- a/src/soc/amd/common/acpi/sleepstates.asl
+++ b/src/soc/amd/common/acpi/sleepstates.asl
@@ -5,10 +5,20 @@ Name(SSFG, 0x09)
If (CONFIG(HAVE_ACPI_RESUME)) {
SSFG = 0x0D
}
+
+If (CONFIG(ACPI_S1_NOT_SUPPORTED)) {
+ SSFG &= 0xfe
+}
+
If (CONFIG(DISABLE_ACPI_HIBERNATE)) {
SSFG &= 0xF7
}
+External (\OSFG, IntObj)
+If (CondRefOf(\OSFG)) {
+ SSFG = \OSFG
+}
+
/* Supported sleep states: */
Name(\_S0, Package () {0x00, 0x00, 0x00, 0x00} ) /* (S0) - working state */