summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/amd/common/acpi/sleepstates.asl10
-rw-r--r--src/southbridge/amd/common/acpi/sleepstates.asl10
2 files changed, 20 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 */
diff --git a/src/southbridge/amd/common/acpi/sleepstates.asl b/src/southbridge/amd/common/acpi/sleepstates.asl
index 97646a704a..e56dfb01e5 100644
--- a/src/southbridge/amd/common/acpi/sleepstates.asl
+++ b/src/southbridge/amd/common/acpi/sleepstates.asl
@@ -6,10 +6,20 @@ Name (SSFG, 0x0D)
#else
Name (SSFG, 0x09)
#endif
+
+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 */