Angel Pons | 89ab250 | 2020-04-03 01:22:28 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Nicolas Reinecke | b165c4a | 2015-07-04 23:37:06 +0200 | [diff] [blame] | 2 | |
| 3 | #define THINKPAD_EC_GPE 17 |
| 4 | #define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB |
| 5 | #define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB |
Nicolas Reinecke | b165c4a | 2015-07-04 23:37:06 +0200 | [diff] [blame] | 6 | #define EC_LENOVO_H8_ME_WORKAROUND 1 |
| 7 | |
Furquan Shaikh | 76cedd2 | 2020-05-02 10:24:23 -0700 | [diff] [blame] | 8 | #include <acpi/acpi.h> |
Nicolas Reinecke | b165c4a | 2015-07-04 23:37:06 +0200 | [diff] [blame] | 9 | DefinitionBlock( |
| 10 | "dsdt.aml", |
| 11 | "DSDT", |
Elyes HAOUAS | 90d00de | 2020-10-05 16:38:53 +0200 | [diff] [blame] | 12 | ACPI_DSDT_REV_2, |
Nicolas Reinecke | b165c4a | 2015-07-04 23:37:06 +0200 | [diff] [blame] | 13 | OEM_ID, |
| 14 | ACPI_TABLE_CREATOR, |
| 15 | 0x20130325 /* OEM revision */ |
| 16 | ) |
| 17 | { |
Kyösti Mälkki | cf246d5 | 2021-01-21 08:17:00 +0200 | [diff] [blame^] | 18 | #include <acpi/dsdt_top.asl> |
Arthur Heymans | 6c13b04 | 2019-11-02 17:19:26 +0100 | [diff] [blame] | 19 | #include <southbridge/intel/common/acpi/platform.asl> |
Nicolas Reinecke | b165c4a | 2015-07-04 23:37:06 +0200 | [diff] [blame] | 20 | |
Nicolas Reinecke | b165c4a | 2015-07-04 23:37:06 +0200 | [diff] [blame] | 21 | #include "acpi/platform.asl" |
| 22 | |
| 23 | /* global NVS and variables */ |
Kyösti Mälkki | e653942 | 2020-12-19 19:33:12 +0200 | [diff] [blame] | 24 | #include <southbridge/intel/ibexpeak/acpi/globalnvs.asl> |
Nicolas Reinecke | b165c4a | 2015-07-04 23:37:06 +0200 | [diff] [blame] | 25 | |
| 26 | /* General Purpose Events */ |
| 27 | #include "acpi/gpe.asl" |
| 28 | |
| 29 | #include <cpu/intel/common/acpi/cpu.asl> |
| 30 | |
| 31 | Scope (\_SB) { |
| 32 | Device (PCI0) |
| 33 | { |
Angel Pons | 95de231 | 2020-02-17 13:08:53 +0100 | [diff] [blame] | 34 | #include <northbridge/intel/ironlake/acpi/ironlake.asl> |
Nicolas Reinecke | b165c4a | 2015-07-04 23:37:06 +0200 | [diff] [blame] | 35 | #include <southbridge/intel/bd82x6x/acpi/pch.asl> |
| 36 | |
| 37 | #include <drivers/intel/gma/acpi/default_brightness_levels.asl> |
| 38 | } |
| 39 | Device (UNCR) |
| 40 | { |
| 41 | Name (_BBN, 0xFF) |
Nicolas Reinecke | b165c4a | 2015-07-04 23:37:06 +0200 | [diff] [blame] | 42 | Name (RID, 0x00) |
| 43 | Name (_HID, EisaId ("PNP0A03")) |
| 44 | Name (_CRS, ResourceTemplate () |
| 45 | { |
| 46 | WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode, |
| 47 | 0x0000, /* Granularity */ |
| 48 | 0x00FF, /* Range Minimum */ |
| 49 | 0x00FF, /* Range Maximum */ |
| 50 | 0x0000, /* Translation Offset */ |
| 51 | 0x0001, /* Length */ |
| 52 | ,, ) |
| 53 | }) |
| 54 | Device (SAD) |
| 55 | { |
| 56 | Name (_ADR, 0x01) |
| 57 | Name (RID, 0x00) |
| 58 | OperationRegion (SADC, PCI_Config, 0x00, 0x0100) |
| 59 | Field (SADC, DWordAcc, NoLock, Preserve) |
| 60 | { |
| 61 | Offset (0x40), |
| 62 | PAM0, 8, |
| 63 | PAM1, 8, |
| 64 | PAM2, 8, |
| 65 | PAM3, 8, |
| 66 | PAM4, 8, |
| 67 | PAM5, 8, |
| 68 | PAM6, 8 |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | |
Subrata Banik | 2715cdb | 2019-10-30 16:48:19 +0530 | [diff] [blame] | 74 | #include <southbridge/intel/common/acpi/sleepstates.asl> |
Nicolas Reinecke | b165c4a | 2015-07-04 23:37:06 +0200 | [diff] [blame] | 75 | |
| 76 | /* Dock support code */ |
| 77 | #include "acpi/dock.asl" |
Stefan Ott | cd23084 | 2020-04-22 23:20:03 +0200 | [diff] [blame] | 78 | |
| 79 | #include <ec/lenovo/h8/acpi/thinklight.asl> |
Nicolas Reinecke | b165c4a | 2015-07-04 23:37:06 +0200 | [diff] [blame] | 80 | } |