summaryrefslogtreecommitdiff
path: root/src/soc/amd/common
diff options
context:
space:
mode:
authorFelix Held <felix.held@amd.corp-partner.google.com>2020-06-18 21:14:31 +0200
committerFelix Held <felix-coreboot@felixheld.de>2020-06-19 23:47:24 +0000
commitfca4535acf9231be90afa15cf9ef3c1058a74d62 (patch)
treece8167f0916199676a14a87e6130ba9df4ae3832 /src/soc/amd/common
parentb8febf44d1502149cf759286dfe020f45c307be6 (diff)
downloadcoreboot-fca4535acf9231be90afa15cf9ef3c1058a74d62.tar.xz
soc/amd: move acpi_wake_source.asl to common directory
Files are both identical and common for both SoCs. Change-Id: I54b78108d342a0fd03bf70ffe6a09695c5678eb4 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42545 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/common')
-rw-r--r--src/soc/amd/common/acpi/acpi_wake_source.asl21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/soc/amd/common/acpi/acpi_wake_source.asl b/src/soc/amd/common/acpi/acpi_wake_source.asl
new file mode 100644
index 0000000000..de9cb25796
--- /dev/null
+++ b/src/soc/amd/common/acpi/acpi_wake_source.asl
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+/* The SoC-specific code needs to provide the PM1I and GPEI fields */
+
+Scope (\_SB)
+{
+ Method (_SWS)
+ {
+ /* Index into PM1 for device that caused wake */
+ Return (\PM1I)
+ }
+}
+
+Scope (\_GPE)
+{
+ Method (_SWS)
+ {
+ /* Index into GPE for device that caused wake */
+ Return (\GPEI)
+ }
+}