{sb,soc}/amd/cmn/acpi/sleepstates.asl: Hook up configs
Commitcbc5d3f34b
("soc/intel: Don't report _S1 state when unsupported") added the `ACPI_S1_NOT_SUPPORTED` option and commit0eb5974def
("acpigen: Add a runtime method to override exposed _Sx sleep states") added a mechanism to override the enabled sleep states at runtime. However, these were only hooked up to Intel sleepstates. so the options would not have any effect on AMD platforms. Apply the changes from these two commits to AMD sleepstates so that both options can be used on AMD platforms as well. Change-Id: I7d5ef2361e36659ac5c6f54b2c236d48713a07c9 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74959 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
27900ea9f8
commit
3321bb3eb3
|
@ -5,10 +5,20 @@ Name(SSFG, 0x09)
|
||||||
If (CONFIG(HAVE_ACPI_RESUME)) {
|
If (CONFIG(HAVE_ACPI_RESUME)) {
|
||||||
SSFG = 0x0D
|
SSFG = 0x0D
|
||||||
}
|
}
|
||||||
|
|
||||||
|
If (CONFIG(ACPI_S1_NOT_SUPPORTED)) {
|
||||||
|
SSFG &= 0xfe
|
||||||
|
}
|
||||||
|
|
||||||
If (CONFIG(DISABLE_ACPI_HIBERNATE)) {
|
If (CONFIG(DISABLE_ACPI_HIBERNATE)) {
|
||||||
SSFG &= 0xF7
|
SSFG &= 0xF7
|
||||||
}
|
}
|
||||||
|
|
||||||
|
External (\OSFG, IntObj)
|
||||||
|
If (CondRefOf(\OSFG)) {
|
||||||
|
SSFG = \OSFG
|
||||||
|
}
|
||||||
|
|
||||||
/* Supported sleep states: */
|
/* Supported sleep states: */
|
||||||
Name(\_S0, Package () {0x00, 0x00, 0x00, 0x00} ) /* (S0) - working state */
|
Name(\_S0, Package () {0x00, 0x00, 0x00, 0x00} ) /* (S0) - working state */
|
||||||
|
|
||||||
|
|
|
@ -6,10 +6,20 @@ Name (SSFG, 0x0D)
|
||||||
#else
|
#else
|
||||||
Name (SSFG, 0x09)
|
Name (SSFG, 0x09)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
If (CONFIG(ACPI_S1_NOT_SUPPORTED)) {
|
||||||
|
SSFG &= 0xfe
|
||||||
|
}
|
||||||
|
|
||||||
If (CONFIG(DISABLE_ACPI_HIBERNATE)) {
|
If (CONFIG(DISABLE_ACPI_HIBERNATE)) {
|
||||||
SSFG &= 0xf7
|
SSFG &= 0xf7
|
||||||
}
|
}
|
||||||
|
|
||||||
|
External (\OSFG, IntObj)
|
||||||
|
If (CondRefOf(\OSFG)) {
|
||||||
|
SSFG = \OSFG
|
||||||
|
}
|
||||||
|
|
||||||
/* Supported sleep states: */
|
/* Supported sleep states: */
|
||||||
Name(\_S0, Package () {0x00, 0x00, 0x00, 0x00} ) /* (S0) - working state */
|
Name(\_S0, Package () {0x00, 0x00, 0x00, 0x00} ) /* (S0) - working state */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue