blob: c49c31b2adaa528ddb2f836eeed6b62a8c1f2b85 [file] [log] [blame]
Angel Pons89ab2502020-04-03 01:22:28 +02001/* SPDX-License-Identifier: GPL-2.0-only */
2/* This file is part of the coreboot project. */
Nicolas Reineckeb165c4a2015-07-04 23:37:06 +02003
4#define THINKPAD_EC_GPE 17
5#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
6#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
7#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
8#define EC_LENOVO_H8_ME_WORKAROUND 1
9
10#include <arch/acpi.h>
11DefinitionBlock(
12 "dsdt.aml",
13 "DSDT",
14 0x02, /* DSDT revision: ACPI v2.0 and up */
15 OEM_ID,
16 ACPI_TABLE_CREATOR,
17 0x20130325 /* OEM revision */
18)
19{
Arthur Heymans6c13b042019-11-02 17:19:26 +010020 #include <southbridge/intel/common/acpi/platform.asl>
Nicolas Reineckeb165c4a2015-07-04 23:37:06 +020021
Nicolas Reineckeb165c4a2015-07-04 23:37:06 +020022 #include "acpi/platform.asl"
23
24 /* global NVS and variables */
25 #include <southbridge/intel/bd82x6x/acpi/globalnvs.asl>
26
27 /* General Purpose Events */
28 #include "acpi/gpe.asl"
29
30 #include <cpu/intel/common/acpi/cpu.asl>
31
32 Scope (\_SB) {
33 Device (PCI0)
34 {
Angel Pons95de2312020-02-17 13:08:53 +010035 #include <northbridge/intel/ironlake/acpi/ironlake.asl>
Nicolas Reineckeb165c4a2015-07-04 23:37:06 +020036 #include <southbridge/intel/bd82x6x/acpi/pch.asl>
37
38 #include <drivers/intel/gma/acpi/default_brightness_levels.asl>
39 }
40 Device (UNCR)
41 {
42 Name (_BBN, 0xFF)
Nicolas Reineckeb165c4a2015-07-04 23:37:06 +020043 Name (RID, 0x00)
44 Name (_HID, EisaId ("PNP0A03"))
45 Name (_CRS, ResourceTemplate ()
46 {
47 WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
48 0x0000, /* Granularity */
49 0x00FF, /* Range Minimum */
50 0x00FF, /* Range Maximum */
51 0x0000, /* Translation Offset */
52 0x0001, /* Length */
53 ,, )
54 })
55 Device (SAD)
56 {
57 Name (_ADR, 0x01)
58 Name (RID, 0x00)
59 OperationRegion (SADC, PCI_Config, 0x00, 0x0100)
60 Field (SADC, DWordAcc, NoLock, Preserve)
61 {
62 Offset (0x40),
63 PAM0, 8,
64 PAM1, 8,
65 PAM2, 8,
66 PAM3, 8,
67 PAM4, 8,
68 PAM5, 8,
69 PAM6, 8
70 }
71 }
72 }
73 }
74
Subrata Banik2715cdb2019-10-30 16:48:19 +053075 #include <southbridge/intel/common/acpi/sleepstates.asl>
Nicolas Reineckeb165c4a2015-07-04 23:37:06 +020076
77 /* Dock support code */
78 #include "acpi/dock.asl"
79}