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 +++++++++++++++++++++ src/soc/amd/picasso/acpi/acpi_wake_source.asl | 19 ------------------- src/soc/amd/stoneyridge/acpi/acpi_wake_source.asl | 19 ------------------- 3 files changed, 21 insertions(+), 38 deletions(-) create mode 100644 src/soc/amd/common/acpi/acpi_wake_source.asl delete mode 100644 src/soc/amd/picasso/acpi/acpi_wake_source.asl delete mode 100644 src/soc/amd/stoneyridge/acpi/acpi_wake_source.asl (limited to 'src/soc') 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) + } +} diff --git a/src/soc/amd/picasso/acpi/acpi_wake_source.asl b/src/soc/amd/picasso/acpi/acpi_wake_source.asl deleted file mode 100644 index e847884073..0000000000 --- a/src/soc/amd/picasso/acpi/acpi_wake_source.asl +++ /dev/null @@ -1,19 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -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) - } -} diff --git a/src/soc/amd/stoneyridge/acpi/acpi_wake_source.asl b/src/soc/amd/stoneyridge/acpi/acpi_wake_source.asl deleted file mode 100644 index e847884073..0000000000 --- a/src/soc/amd/stoneyridge/acpi/acpi_wake_source.asl +++ /dev/null @@ -1,19 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -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