From fca4535acf9231be90afa15cf9ef3c1058a74d62 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Thu, 18 Jun 2020 21:14:31 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/42545 Reviewed-by: Aaron Durbin Reviewed-by: Raul Rangel Tested-by: build bot (Jenkins) --- src/soc/amd/common/acpi/acpi_wake_source.asl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/soc/amd/common/acpi/acpi_wake_source.asl (limited to 'src/soc/amd/common/acpi') 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) + } +} -- cgit v1.2.3