Marc Jones | 2d79f16 | 2017-05-22 21:35:16 -0600 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
Richard Spiegel | 2983c70 | 2017-11-20 12:30:32 -0700 | [diff] [blame] | 4 | * Copyright (C) 2015-2017 Advanced Micro Devices, Inc. |
Marc Jones | 2d79f16 | 2017-05-22 21:35:16 -0600 | [diff] [blame] | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | */ |
| 15 | |
Martin Roth | 6c623ca | 2017-11-16 22:14:53 -0700 | [diff] [blame] | 16 | #include <variant/ec.h> |
Marc Jones | a8754bd | 2017-06-18 17:35:27 -0600 | [diff] [blame] | 17 | |
Marc Jones | 2d79f16 | 2017-05-22 21:35:16 -0600 | [diff] [blame] | 18 | /* DefinitionBlock Statement */ |
| 19 | DefinitionBlock ( |
| 20 | "DSDT.AML", /* Output filename */ |
| 21 | "DSDT", /* Signature */ |
| 22 | 0x02, /* DSDT Revision, needs to be 2 for 64bit */ |
Martin Roth | 283f1f3 | 2018-05-03 21:30:47 -0500 | [diff] [blame] | 23 | "GOOGLE", /* OEMID */ |
Marc Jones | 2d79f16 | 2017-05-22 21:35:16 -0600 | [diff] [blame] | 24 | "COREBOOT", /* TABLE ID */ |
| 25 | 0x00010001 /* OEM Revision */ |
| 26 | ) |
| 27 | { /* Start of ASL file */ |
| 28 | /* #include <arch/x86/acpi/debug.asl> */ /* as needed */ |
| 29 | |
Marc Jones | a8754bd | 2017-06-18 17:35:27 -0600 | [diff] [blame] | 30 | /* global NVS and variables */ |
| 31 | #include <globalnvs.asl> |
| 32 | |
Marc Jones | 2d79f16 | 2017-05-22 21:35:16 -0600 | [diff] [blame] | 33 | /* Globals for the platform */ |
Marc Jones | 5fb2613 | 2018-01-11 16:43:06 -0800 | [diff] [blame] | 34 | #include <variant/acpi/mainboard.asl> |
Marc Jones | 2d79f16 | 2017-05-22 21:35:16 -0600 | [diff] [blame] | 35 | |
Marc Jones | 2d79f16 | 2017-05-22 21:35:16 -0600 | [diff] [blame] | 36 | /* PCI IRQ mapping for the Southbridge */ |
| 37 | #include <pcie.asl> |
| 38 | |
| 39 | /* Describe the processor tree (\_PR) */ |
| 40 | #include <cpu.asl> |
| 41 | |
| 42 | /* Contains the supported sleep states for this chipset */ |
| 43 | #include <sleepstates.asl> |
| 44 | |
| 45 | /* Contains the Sleep methods (WAK, PTS, GTS, etc.) */ |
Marc Jones | 5fb2613 | 2018-01-11 16:43:06 -0800 | [diff] [blame] | 46 | #include <variant/acpi/sleep.asl> |
Marc Jones | 2d79f16 | 2017-05-22 21:35:16 -0600 | [diff] [blame] | 47 | |
| 48 | /* System Bus */ |
| 49 | Scope(\_SB) { /* Start \_SB scope */ |
| 50 | /* global utility methods expected within the \_SB scope */ |
| 51 | #include <arch/x86/acpi/globutil.asl> |
| 52 | |
| 53 | /* IRQ Routing mapping for this platform (in \_SB scope) */ |
Marc Jones | 5fb2613 | 2018-01-11 16:43:06 -0800 | [diff] [blame] | 54 | #include <variant/acpi/routing.asl> |
Marc Jones | 2d79f16 | 2017-05-22 21:35:16 -0600 | [diff] [blame] | 55 | |
| 56 | Device(PWRB) { |
| 57 | Name(_HID, EISAID("PNP0C0C")) |
| 58 | Name(_UID, 0xAA) |
Marc Jones | 2d79f16 | 2017-05-22 21:35:16 -0600 | [diff] [blame] | 59 | } |
| 60 | |
Richard Spiegel | 2983c70 | 2017-11-20 12:30:32 -0700 | [diff] [blame] | 61 | /* Describe the SOC */ |
| 62 | #include <soc.asl> |
Marc Jones | 2d79f16 | 2017-05-22 21:35:16 -0600 | [diff] [blame] | 63 | |
| 64 | } /* End \_SB scope */ |
| 65 | |
Marc Jones | 067031e | 2017-11-02 11:36:53 -0600 | [diff] [blame] | 66 | /* Thermal handler */ |
Marc Jones | 5fb2613 | 2018-01-11 16:43:06 -0800 | [diff] [blame] | 67 | #include <variant/acpi/thermal.asl> |
Marc Jones | 067031e | 2017-11-02 11:36:53 -0600 | [diff] [blame] | 68 | |
Marc Jones | a8754bd | 2017-06-18 17:35:27 -0600 | [diff] [blame] | 69 | /* Chrome OS specific */ |
| 70 | #include <vendorcode/google/chromeos/acpi/chromeos.asl> |
| 71 | |
| 72 | /* Chrome OS Embedded Controller */ |
| 73 | Scope (\_SB.PCI0.LPCB) |
| 74 | { |
| 75 | /* ACPI code for EC SuperIO functions */ |
| 76 | #include <ec/google/chromeec/acpi/superio.asl> |
| 77 | /* ACPI code for EC functions */ |
| 78 | #include <ec/google/chromeec/acpi/ec.asl> |
| 79 | } |
| 80 | |
Marc Jones | 2d79f16 | 2017-05-22 21:35:16 -0600 | [diff] [blame] | 81 | /* Describe SMBUS for the Southbridge */ |
| 82 | #include <smbus.asl> |
| 83 | |
| 84 | /* Define the General Purpose Events for the platform */ |
Marc Jones | 5fb2613 | 2018-01-11 16:43:06 -0800 | [diff] [blame] | 85 | #include <variant/acpi/gpe.asl> |
Marc Jones | 2d79f16 | 2017-05-22 21:35:16 -0600 | [diff] [blame] | 86 | } |
| 87 | /* End of ASL file */ |