From 50307a2d548d14b1cd3c7fcb6af580b29ef34bac Mon Sep 17 00:00:00 2001 From: Marc Jones Date: Wed, 22 Feb 2017 16:21:49 -0700 Subject: [PATCH] UPSTREAM: amd/pi/hudson/acpi: Only declare S3 if it is supported Only declare S3 support in ACPI if CONFIG_HAVE_ACPI_RESUME is set. BUG=none BRANCH=none TEST=none Change-Id: I7c1ebe9516b26c9f4a9d78ee224c2057238c66a6 Signed-off-by: Patrick Georgi Original-Commit-Id: a0891ee36753dfe2ee0082da99abb0346c877665 Original-Change-Id: I6f8f62a92478f3db5de6feaa9822baad3f8e147e Original-Signed-off-by: Marc Jones Original-Reviewed-on: https://review.coreboot.org/18493 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Paul Menzel Original-Reviewed-by: Kysti Mlkki Reviewed-on: https://chromium-review.googlesource.com/451426 --- src/southbridge/amd/pi/hudson/acpi/sleepstates.asl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/southbridge/amd/pi/hudson/acpi/sleepstates.asl b/src/southbridge/amd/pi/hudson/acpi/sleepstates.asl index 912c0df6fb..d93f068bb7 100644 --- a/src/southbridge/amd/pi/hudson/acpi/sleepstates.asl +++ b/src/southbridge/amd/pi/hudson/acpi/sleepstates.asl @@ -23,9 +23,11 @@ If (LAnd(SSFG, 0x01)) { If (LAnd(SSFG, 0x02)) { Name(\_S2, Package () {0x02, 0x02, 0x00, 0x00} ) /* (S2) - "light" Suspend to RAM */ } +#if CONFIG_HAVE_ACPI_RESUME If (LAnd(SSFG, 0x04)) { Name(\_S3, Package () {0x03, 0x03, 0x00, 0x00} ) /* (S3) - Suspend to RAM */ } +#endif If (LAnd(SSFG, 0x08)) { Name(\_S4, Package () {0x04, 0x04, 0x00, 0x00} ) /* (S4) - Suspend to Disk */ }