blob: 2568800f918b9b416707dfc246eaac41a8a74103 [file] [log] [blame]
Thejaswani Puttae3443d82019-07-18 16:23:20 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2018 Google LLC
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
16#include <variant/ec.h>
17
18#include <arch/acpi.h>
19DefinitionBlock(
20 "dsdt.aml",
21 "DSDT",
22 0x02, /* DSDT revision: ACPI v2.0 and up */
23 OEM_ID,
24 ACPI_TABLE_CREATOR,
25 0x20110725 /* OEM revision */
26)
27{
28 /* Some generic macros */
29 #include <soc/intel/cannonlake/acpi/platform.asl>
30
31 /* global NVS and variables */
32 #include <soc/intel/cannonlake/acpi/globalnvs.asl>
33
34 /* CPU */
35 #include <cpu/intel/common/acpi/cpu.asl>
36
37 Scope (\_SB) {
38 Device (PCI0)
39 {
40 #include <soc/intel/cannonlake/acpi/northbridge.asl>
41 #include <soc/intel/cannonlake/acpi/southbridge.asl>
42 }
43 /* Per board variant mainboard hooks. */
44 #include <variant/acpi/mainboard.asl>
45 }
46
47#if CONFIG(CHROMEOS)
48 /* Chrome OS specific */
49 #include <vendorcode/google/chromeos/acpi/chromeos.asl>
50 /* VPD support */
51 #include <vendorcode/google/chromeos/acpi/vpd.asl>
52 /* MAC address passthru */
53 #include <vendorcode/google/chromeos/acpi/amac.asl>
54#endif
55
56 /* Chipset specific sleep states */
57 #include <soc/intel/cannonlake/acpi/sleepstates.asl>
58
59 /* Low power idle table */
60 #include <soc/intel/cannonlake/acpi/lpit.asl>
61
62 /* Chrome OS Embedded Controller */
63 Scope (\_SB.PCI0.LPCB)
64 {
65 /* ACPI code for EC SuperIO functions */
66 #include <ec/google/wilco/acpi/superio.asl>
67 /* ACPI code for EC functions */
68 #include <ec/google/wilco/acpi/ec.asl>
69 }
70
71 /* Dynamic Platform Thermal Framework */
72 Scope (\_SB)
73 {
74 /* Per board variant specific definitions. */
75 #include <variant/acpi/dptf.asl>
76 /* Include soc specific DPTF changes */
77 #include <soc/intel/cannonlake/acpi/dptf.asl>
78 /* Include common dptf ASL files */
79 #include <soc/intel/common/acpi/dptf/dptf.asl>
80 }
81}