Angel Pons | b6636b0 | 2020-04-05 13:21:41 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Shelley Chen | e3110b8 | 2018-12-10 12:59:01 -0800 | [diff] [blame] | 2 | |
Furquan Shaikh | 76cedd2 | 2020-05-02 10:24:23 -0700 | [diff] [blame] | 3 | #include <acpi/acpi.h> |
Aamir Bohra | 0dfda74 | 2018-12-17 20:35:36 +0530 | [diff] [blame] | 4 | #include <variant/ec.h> |
| 5 | #include <variant/gpio.h> |
| 6 | |
Shelley Chen | e3110b8 | 2018-12-10 12:59:01 -0800 | [diff] [blame] | 7 | DefinitionBlock( |
| 8 | "dsdt.aml", |
| 9 | "DSDT", |
Elyes HAOUAS | 90d00de | 2020-10-05 16:38:53 +0200 | [diff] [blame] | 10 | ACPI_DSDT_REV_2, |
Shelley Chen | e3110b8 | 2018-12-10 12:59:01 -0800 | [diff] [blame] | 11 | OEM_ID, |
| 12 | ACPI_TABLE_CREATOR, |
| 13 | 0x20110725 /* OEM revision */ |
| 14 | ) |
| 15 | { |
Kyösti Mälkki | cf246d5 | 2021-01-21 08:17:00 +0200 | [diff] [blame] | 16 | #include <acpi/dsdt_top.asl> |
Subrata Banik | 6577ec4 | 2020-10-03 23:07:36 +0530 | [diff] [blame] | 17 | #include <soc/intel/common/block/acpi/acpi/platform.asl> |
Aamir Bohra | 0dfda74 | 2018-12-17 20:35:36 +0530 | [diff] [blame] | 18 | |
| 19 | /* global NVS and variables */ |
Subrata Banik | fa2f793 | 2019-10-30 15:47:06 +0530 | [diff] [blame] | 20 | #include <soc/intel/common/block/acpi/acpi/globalnvs.asl> |
Aamir Bohra | 0dfda74 | 2018-12-17 20:35:36 +0530 | [diff] [blame] | 21 | |
| 22 | /* CPU */ |
| 23 | #include <cpu/intel/common/acpi/cpu.asl> |
| 24 | |
| 25 | Scope (\_SB) { |
| 26 | Device (PCI0) |
| 27 | { |
Subrata Banik | d5be4e4 | 2020-01-03 14:50:49 +0530 | [diff] [blame] | 28 | #include <soc/intel/common/block/acpi/acpi/northbridge.asl> |
Aamir Bohra | 0dfda74 | 2018-12-17 20:35:36 +0530 | [diff] [blame] | 29 | #include <soc/intel/cannonlake/acpi/southbridge.asl> |
Matt DeVillier | c5a3a4a | 2020-06-07 04:05:55 -0500 | [diff] [blame] | 30 | #if CONFIG(BOARD_GOOGLE_BASEBOARD_HATCH) |
| 31 | #include <drivers/intel/gma/acpi/default_brightness_levels.asl> |
| 32 | #endif |
Aamir Bohra | 0dfda74 | 2018-12-17 20:35:36 +0530 | [diff] [blame] | 33 | } |
| 34 | } |
| 35 | |
Subrata Banik | 2715cdb | 2019-10-30 16:48:19 +0530 | [diff] [blame] | 36 | #include <southbridge/intel/common/acpi/sleepstates.asl> |
Aamir Bohra | 0dfda74 | 2018-12-17 20:35:36 +0530 | [diff] [blame] | 37 | |
| 38 | /* Chrome OS Embedded Controller */ |
| 39 | Scope (\_SB.PCI0.LPCB) |
| 40 | { |
| 41 | /* ACPI code for EC SuperIO functions */ |
| 42 | #include <ec/google/chromeec/acpi/superio.asl> |
| 43 | /* ACPI code for EC functions */ |
| 44 | #include <ec/google/chromeec/acpi/ec.asl> |
| 45 | } |
Sumeet Pawnikar | fe1b40b | 2019-02-08 00:29:00 +0530 | [diff] [blame] | 46 | |
Edward O'Callaghan | b7a68d5 | 2020-08-28 20:14:50 +1000 | [diff] [blame] | 47 | #if CONFIG(BOARD_GOOGLE_BASEBOARD_HATCH) |
Sumeet Pawnikar | fe1b40b | 2019-02-08 00:29:00 +0530 | [diff] [blame] | 48 | /* Dynamic Platform Thermal Framework */ |
| 49 | Scope (\_SB) |
| 50 | { |
| 51 | /* Per board variant specific definitions. */ |
| 52 | #include <variant/acpi/dptf.asl> |
Sumeet Pawnikar | fe1b40b | 2019-02-08 00:29:00 +0530 | [diff] [blame] | 53 | /* Include common dptf ASL files */ |
| 54 | #include <soc/intel/common/acpi/dptf/dptf.asl> |
| 55 | } |
Edward O'Callaghan | b7a68d5 | 2020-08-28 20:14:50 +1000 | [diff] [blame] | 56 | #endif |
Shelley Chen | e3110b8 | 2018-12-10 12:59:01 -0800 | [diff] [blame] | 57 | } |