amd/pi/hudson/acpi: Only declare S3 if it is supported

Only declare S3 support in ACPI if CONFIG_HAVE_ACPI_RESUME
is set.

Change-Id: I6f8f62a92478f3db5de6feaa9822baad3f8e147e
Signed-off-by: Marc Jones <marcj303@gmail.com>
Reviewed-on: https://review.coreboot.org/18493
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
Marc Jones 2017-02-22 16:21:49 -07:00 committed by Marc Jones
parent 91dea4a648
commit a0891ee367
1 changed files with 2 additions and 0 deletions

View File

@ -23,9 +23,11 @@ If (LAnd(SSFG, 0x01)) {
If (LAnd(SSFG, 0x02)) { If (LAnd(SSFG, 0x02)) {
Name(\_S2, Package () {0x02, 0x02, 0x00, 0x00} ) /* (S2) - "light" Suspend to RAM */ Name(\_S2, Package () {0x02, 0x02, 0x00, 0x00} ) /* (S2) - "light" Suspend to RAM */
} }
#if CONFIG_HAVE_ACPI_RESUME
If (LAnd(SSFG, 0x04)) { If (LAnd(SSFG, 0x04)) {
Name(\_S3, Package () {0x03, 0x03, 0x00, 0x00} ) /* (S3) - Suspend to RAM */ Name(\_S3, Package () {0x03, 0x03, 0x00, 0x00} ) /* (S3) - Suspend to RAM */
} }
#endif
If (LAnd(SSFG, 0x08)) { If (LAnd(SSFG, 0x08)) {
Name(\_S4, Package () {0x04, 0x04, 0x00, 0x00} ) /* (S4) - Suspend to Disk */ Name(\_S4, Package () {0x04, 0x04, 0x00, 0x00} ) /* (S4) - Suspend to Disk */
} }