{soc,southbridge}/*/*/acpi: Add possibility to disable S4

Some boards don't support S3 or S4. The S4 state can't be removed from
the available sleep states.

Add a config item that allows removal of the S4 state from the list of
available sleep states. The S4 state can be removed by selecting the
item on board level.

For the AMD chipsets the SSFG mask is updated to remove the S4 state.

BUG=N/A
TEST=build

Change-Id: Id802c4cc40308ddf39e99e7f226d55e0e020f0c9
Signed-off-by: Wim Vervoorn <wvervoorn@eltan.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38431
Reviewed-by: Frans Hendriks <fhendriks@eltan.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Wim Vervoorn 2020-01-15 11:31:25 +01:00 committed by Patrick Georgi
parent 951a6207f3
commit bccc7e7072
5 changed files with 17 additions and 0 deletions

View File

@ -525,6 +525,12 @@ config HAVE_ACPI_RESUME
default n
depends on RELOCATABLE_RAMSTAGE
config DISABLE_ACPI_HIBERNATE
bool
default n
help
Removes S4 from the available sleepstates
config RESUME_PATH_SAME_AS_BOOT
bool
default y if ARCH_X86

View File

@ -19,6 +19,9 @@ Name(SSFG, 0x09)
If (CONFIG(HAVE_ACPI_RESUME)) {
Store(0x0D, SSFG)
}
If (CONFIG(DISABLE_ACPI_HIBERNATE)) {
Store(And(SSFG, 0xF7), SSFG)
}
/* Supported sleep states: */
Name(\_S0, Package () {0x00, 0x00, 0x00, 0x00} ) /* (S0) - working state */

View File

@ -19,6 +19,9 @@ Name(SSFG, 0x09)
If (CONFIG(HAVE_ACPI_RESUME)) {
Store(0x0D, SSFG)
}
If (CONFIG(DISABLE_ACPI_HIBERNATE)) {
Store(And(SSFG, 0xF7), SSFG)
}
/* Supported sleep states: */
Name(\_S0, Package () {0x00, 0x00, 0x00, 0x00} ) /* (S0) - working state */

View File

@ -20,6 +20,9 @@ Name (SSFG, 0x0D)
#else
Name (SSFG, 0x09)
#endif
If (CONFIG(DISABLE_ACPI_HIBERNATE)) {
Store(And(SSFG, 0xF7), SSFG)
}
/* Supported sleep states: */
Name(\_S0, Package () {0x00, 0x00, 0x00, 0x00} ) /* (S0) - working state */

View File

@ -20,5 +20,7 @@ Name(\_S1, Package(){0x1,0x0,0x0,0x0})
#else
Name(\_S3, Package(){0x5,0x0,0x0,0x0})
#endif
#if !CONFIG(DISABLE_ACPI_HIBERNATE)
Name(\_S4, Package(){0x6,0x0,0x0,0x0})
#endif
Name(\_S5, Package(){0x7,0x0,0x0,0x0})