blob: e892b47fae1da590956739e51a541e0f135cedb1 [file] [log] [blame]
Nick Vaccarod3e00ab2017-08-28 17:34:36 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2007-2009 coresystems GmbH
5 * Copyright 2017 Google Inc.
6 * Copyright (C) 2017 Intel Corporation
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; version 2 of the License.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 */
17
Caveh Jalali50657aa2018-01-11 20:12:39 -080018#include "variant/ec.h"
19#include "variant/gpio.h"
20
Nick Vaccarod3e00ab2017-08-28 17:34:36 -070021DefinitionBlock(
22 "dsdt.aml",
23 "DSDT",
24 0x05, // DSDT revision: ACPI v5.0
25 "COREv4", // OEM id
26 "COREBOOT", // OEM table id
27 0x20110725 // OEM revision
28)
29{
Nick Vaccarob3319232017-12-28 20:28:20 -080030 // Some generic macros
31 #include <soc/intel/cannonlake/acpi/platform.asl>
32
Nick Vaccarod3e00ab2017-08-28 17:34:36 -070033 // global NVS and variables
34 #include <soc/intel/cannonlake/acpi/globalnvs.asl>
35
Caveh Jalali50657aa2018-01-11 20:12:39 -080036 // CPU
37 #include <soc/intel/cannonlake/acpi/cpu.asl>
38
Nick Vaccarod3e00ab2017-08-28 17:34:36 -070039 Scope (\_SB) {
Caveh Jalali50657aa2018-01-11 20:12:39 -080040 Device (PWRB)
41 {
42 Name (_HID, EisaId ("PNP0C0C"))
43 }
Nick Vaccarob3319232017-12-28 20:28:20 -080044 Device (PCI0)
45 {
46 #include <soc/intel/cannonlake/acpi/northbridge.asl>
47 #include <soc/intel/cannonlake/acpi/southbridge.asl>
48 }
Nick Vaccarod3e00ab2017-08-28 17:34:36 -070049 }
50
51 #if IS_ENABLED(CONFIG_CHROMEOS)
52 // Chrome OS specific
53 #include <vendorcode/google/chromeos/acpi/chromeos.asl>
54 #endif
Nick Vaccarob3319232017-12-28 20:28:20 -080055
56 // Chipset specific sleep states
57 #include <soc/intel/cannonlake/acpi/sleepstates.asl>
Caveh Jalali50657aa2018-01-11 20:12:39 -080058
59 /* Chrome OS Embedded Controller */
60 Scope (\_SB.PCI0.LPCB)
61 {
62 /* ACPI code for EC SuperIO functions */
63 #include <ec/google/chromeec/acpi/superio.asl>
64 /* ACPI code for EC functions */
65 #include <ec/google/chromeec/acpi/ec.asl>
66 }
Nick Vaccarod3e00ab2017-08-28 17:34:36 -070067}