Raul E Rangel | 3ac4414 | 2021-02-11 16:40:07 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
Felix Held | 90044bd | 2023-06-01 22:01:40 +0200 | [diff] [blame^] | 3 | #include <soc/amd/common/acpi/pci_root.asl> |
Mathew King | fc49adf | 2021-03-05 07:09:24 -0700 | [diff] [blame] | 4 | #include "globalnvs.asl" |
| 5 | |
Raul E Rangel | 3ac4414 | 2021-02-11 16:40:07 -0700 | [diff] [blame] | 6 | Scope(\_SB) { |
| 7 | /* global utility methods expected within the \_SB scope */ |
| 8 | #include <arch/x86/acpi/globutil.asl> |
| 9 | |
| 10 | #include <soc/amd/common/acpi/gpio_bank_lib.asl> |
Raul E Rangel | 980721b | 2021-02-11 16:43:53 -0700 | [diff] [blame] | 11 | |
Raul E Rangel | a89a4ea | 2021-04-19 17:09:30 -0600 | [diff] [blame] | 12 | #include <soc/amd/common/acpi/osc.asl> |
| 13 | |
Raul E Rangel | 980721b | 2021-02-11 16:43:53 -0700 | [diff] [blame] | 14 | #include "pci_int_defs.asl" |
| 15 | |
Raul E Rangel | f486fcc | 2021-03-16 20:29:06 -0600 | [diff] [blame] | 16 | #include <soc/amd/common/acpi/pci_int.asl> |
| 17 | |
Raul E Rangel | 980721b | 2021-02-11 16:43:53 -0700 | [diff] [blame] | 18 | #include "mmio.asl" |
Raul E Rangel | 0b123dd | 2021-02-12 15:13:57 -0700 | [diff] [blame] | 19 | |
Felix Held | 90044bd | 2023-06-01 22:01:40 +0200 | [diff] [blame^] | 20 | ROOT_BRIDGE(PCI0) |
| 21 | |
| 22 | Scope(PCI0) { |
| 23 | #include <soc/amd/common/acpi/lpc.asl> |
| 24 | } /* End PCI0 scope */ |
Raul E Rangel | 3ac4414 | 2021-02-11 16:40:07 -0700 | [diff] [blame] | 25 | } /* End \_SB scope */ |
Raul E Rangel | bde284b | 2021-02-18 16:05:57 -0700 | [diff] [blame] | 26 | |
Felix Held | cd922f5 | 2021-05-07 20:11:16 +0200 | [diff] [blame] | 27 | #include <soc/amd/common/acpi/alib.asl> |
| 28 | |
Raul E Rangel | bde284b | 2021-02-18 16:05:57 -0700 | [diff] [blame] | 29 | #include <soc/amd/common/acpi/platform.asl> |
| 30 | |
Raul E Rangel | c14bbc9 | 2021-03-05 13:28:32 -0700 | [diff] [blame] | 31 | #include <soc/amd/common/acpi/sleepstates.asl> |
| 32 | |
Raul E Rangel | dfe3a2f | 2021-04-16 12:16:55 -0600 | [diff] [blame] | 33 | #include <soc/amd/common/acpi/upep.asl> |
| 34 | |
Tim Van Patten | 9b3112c | 2022-09-13 10:08:49 -0600 | [diff] [blame] | 35 | #if CONFIG(SOC_AMD_COMMON_BLOCK_ACPI_DPTC) |
Tim Van Patten | 9244358 | 2022-08-23 16:06:33 -0600 | [diff] [blame] | 36 | #include <soc/amd/common/acpi/dptc.asl> |
Tim Van Patten | 9b3112c | 2022-09-13 10:08:49 -0600 | [diff] [blame] | 37 | #endif |
Tim Van Patten | 9244358 | 2022-08-23 16:06:33 -0600 | [diff] [blame] | 38 | |
Raul E Rangel | 78ee488 | 2021-12-16 10:43:26 -0700 | [diff] [blame] | 39 | #include "rtc_workaround.asl" |
| 40 | |
Raul E Rangel | bde284b | 2021-02-18 16:05:57 -0700 | [diff] [blame] | 41 | /* |
Tim Van Patten | 9244358 | 2022-08-23 16:06:33 -0600 | [diff] [blame] | 42 | * Platform Notify |
Raul E Rangel | bde284b | 2021-02-18 16:05:57 -0700 | [diff] [blame] | 43 | * |
| 44 | * This is called by soc/amd/common/acpi/platform.asl. |
| 45 | */ |
| 46 | Method (PNOT) |
| 47 | { |
Felix Held | cd922f5 | 2021-05-07 20:11:16 +0200 | [diff] [blame] | 48 | /* Report AC/DC state to ALIB using WAL1() */ |
| 49 | \WAL1 () |
Raul E Rangel | bde284b | 2021-02-18 16:05:57 -0700 | [diff] [blame] | 50 | } |