blob: db81393c30bcb20c51614ad5cf04f3b82b1d30d5 [file] [log] [blame]
Marc Jones2d79f162017-05-22 21:35:16 -06001/*
2 * This file is part of the coreboot project.
3 *
Richard Spiegel2983c702017-11-20 12:30:32 -07004 * Copyright (C) 2015-2017 Advanced Micro Devices, Inc.
Marc Jones2d79f162017-05-22 21:35:16 -06005 *
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 Roth6c623ca2017-11-16 22:14:53 -070016#include <variant/ec.h>
Marc Jonesa8754bd2017-06-18 17:35:27 -060017
Marc Jones2d79f162017-05-22 21:35:16 -060018/* DefinitionBlock Statement */
19DefinitionBlock (
20 "DSDT.AML", /* Output filename */
21 "DSDT", /* Signature */
22 0x02, /* DSDT Revision, needs to be 2 for 64bit */
Martin Roth283f1f32018-05-03 21:30:47 -050023 "GOOGLE", /* OEMID */
Marc Jones2d79f162017-05-22 21:35:16 -060024 "COREBOOT", /* TABLE ID */
25 0x00010001 /* OEM Revision */
26 )
27{ /* Start of ASL file */
28 /* #include <arch/x86/acpi/debug.asl> */ /* as needed */
29
Marc Jonesa8754bd2017-06-18 17:35:27 -060030 /* global NVS and variables */
31 #include <globalnvs.asl>
32
Marc Jones2d79f162017-05-22 21:35:16 -060033 /* Globals for the platform */
Marc Jones5fb26132018-01-11 16:43:06 -080034 #include <variant/acpi/mainboard.asl>
Marc Jones2d79f162017-05-22 21:35:16 -060035
Marc Jones2d79f162017-05-22 21:35:16 -060036 /* 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 Jones5fb26132018-01-11 16:43:06 -080046 #include <variant/acpi/sleep.asl>
Marc Jones2d79f162017-05-22 21:35:16 -060047
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 Jones5fb26132018-01-11 16:43:06 -080054 #include <variant/acpi/routing.asl>
Marc Jones2d79f162017-05-22 21:35:16 -060055
56 Device(PWRB) {
57 Name(_HID, EISAID("PNP0C0C"))
58 Name(_UID, 0xAA)
Marc Jones2d79f162017-05-22 21:35:16 -060059 }
60
Richard Spiegel2983c702017-11-20 12:30:32 -070061 /* Describe the SOC */
62 #include <soc.asl>
Marc Jones2d79f162017-05-22 21:35:16 -060063
64 } /* End \_SB scope */
65
Marc Jones067031e2017-11-02 11:36:53 -060066 /* Thermal handler */
Marc Jones5fb26132018-01-11 16:43:06 -080067 #include <variant/acpi/thermal.asl>
Marc Jones067031e2017-11-02 11:36:53 -060068
Marc Jonesa8754bd2017-06-18 17:35:27 -060069 /* 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 Jones2d79f162017-05-22 21:35:16 -060081 /* Describe SMBUS for the Southbridge */
82 #include <smbus.asl>
83
84 /* Define the General Purpose Events for the platform */
Marc Jones5fb26132018-01-11 16:43:06 -080085 #include <variant/acpi/gpe.asl>
Marc Jones2d79f162017-05-22 21:35:16 -060086}
87/* End of ASL file */