blob: 4ab03d0f362b49d26000737d7ba38e1113046f23 [file] [log] [blame]
Raul E Rangel3ac44142021-02-11 16:40:07 -07001/* SPDX-License-Identifier: GPL-2.0-only */
2
Felix Held90044bd2023-06-01 22:01:40 +02003#include <soc/amd/common/acpi/pci_root.asl>
Mathew Kingfc49adf2021-03-05 07:09:24 -07004#include "globalnvs.asl"
5
Raul E Rangel3ac44142021-02-11 16:40:07 -07006Scope(\_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 Rangel980721b2021-02-11 16:43:53 -070011
Raul E Rangela89a4ea2021-04-19 17:09:30 -060012 #include <soc/amd/common/acpi/osc.asl>
13
Raul E Rangel980721b2021-02-11 16:43:53 -070014 #include "pci_int_defs.asl"
15
Raul E Rangelf486fcc2021-03-16 20:29:06 -060016 #include <soc/amd/common/acpi/pci_int.asl>
17
Raul E Rangel980721b2021-02-11 16:43:53 -070018 #include "mmio.asl"
Raul E Rangel0b123dd2021-02-12 15:13:57 -070019
Felix Held90044bd2023-06-01 22:01:40 +020020 ROOT_BRIDGE(PCI0)
21
22 Scope(PCI0) {
23 #include <soc/amd/common/acpi/lpc.asl>
24 } /* End PCI0 scope */
Raul E Rangel3ac44142021-02-11 16:40:07 -070025} /* End \_SB scope */
Raul E Rangelbde284b2021-02-18 16:05:57 -070026
Felix Heldcd922f52021-05-07 20:11:16 +020027#include <soc/amd/common/acpi/alib.asl>
28
Raul E Rangelbde284b2021-02-18 16:05:57 -070029#include <soc/amd/common/acpi/platform.asl>
30
Raul E Rangelc14bbc92021-03-05 13:28:32 -070031#include <soc/amd/common/acpi/sleepstates.asl>
32
Raul E Rangeldfe3a2f2021-04-16 12:16:55 -060033#include <soc/amd/common/acpi/upep.asl>
34
Tim Van Patten9b3112c2022-09-13 10:08:49 -060035#if CONFIG(SOC_AMD_COMMON_BLOCK_ACPI_DPTC)
Tim Van Patten92443582022-08-23 16:06:33 -060036#include <soc/amd/common/acpi/dptc.asl>
Tim Van Patten9b3112c2022-09-13 10:08:49 -060037#endif
Tim Van Patten92443582022-08-23 16:06:33 -060038
Raul E Rangel78ee4882021-12-16 10:43:26 -070039#include "rtc_workaround.asl"
40
Raul E Rangelbde284b2021-02-18 16:05:57 -070041/*
Tim Van Patten92443582022-08-23 16:06:33 -060042 * Platform Notify
Raul E Rangelbde284b2021-02-18 16:05:57 -070043 *
44 * This is called by soc/amd/common/acpi/platform.asl.
45 */
46Method (PNOT)
47{
Felix Heldcd922f52021-05-07 20:11:16 +020048 /* Report AC/DC state to ALIB using WAL1() */
49 \WAL1 ()
Raul E Rangelbde284b2021-02-18 16:05:57 -070050}