blob: 5c99f1bbf61dda06b498edf895a8032f4a50f63f [file] [log] [blame]
Nicolas Reineckeb165c4a2015-07-04 23:37:06 +02001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2007-2009 coresystems GmbH
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; version 2 of
9 * the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16
17#define THINKPAD_EC_GPE 17
18#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
19#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
20#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
21#define EC_LENOVO_H8_ME_WORKAROUND 1
22
23#include <arch/acpi.h>
24DefinitionBlock(
25 "dsdt.aml",
26 "DSDT",
27 0x02, /* DSDT revision: ACPI v2.0 and up */
28 OEM_ID,
29 ACPI_TABLE_CREATOR,
30 0x20130325 /* OEM revision */
31)
32{
33 #include <southbridge/intel/bd82x6x/acpi/platform.asl>
34
35 /* Some generic macros */
36 #include "acpi/platform.asl"
37
38 /* global NVS and variables */
39 #include <southbridge/intel/bd82x6x/acpi/globalnvs.asl>
40
41 /* General Purpose Events */
42 #include "acpi/gpe.asl"
43
44 #include <cpu/intel/common/acpi/cpu.asl>
45
46 Scope (\_SB) {
47 Device (PCI0)
48 {
49 #include <northbridge/intel/nehalem/acpi/nehalem.asl>
50 #include <southbridge/intel/bd82x6x/acpi/pch.asl>
51
52 #include <drivers/intel/gma/acpi/default_brightness_levels.asl>
53 }
54 Device (UNCR)
55 {
56 Name (_BBN, 0xFF)
Nicolas Reineckeb165c4a2015-07-04 23:37:06 +020057 Name (RID, 0x00)
58 Name (_HID, EisaId ("PNP0A03"))
59 Name (_CRS, ResourceTemplate ()
60 {
61 WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
62 0x0000, /* Granularity */
63 0x00FF, /* Range Minimum */
64 0x00FF, /* Range Maximum */
65 0x0000, /* Translation Offset */
66 0x0001, /* Length */
67 ,, )
68 })
69 Device (SAD)
70 {
71 Name (_ADR, 0x01)
72 Name (RID, 0x00)
73 OperationRegion (SADC, PCI_Config, 0x00, 0x0100)
74 Field (SADC, DWordAcc, NoLock, Preserve)
75 {
76 Offset (0x40),
77 PAM0, 8,
78 PAM1, 8,
79 PAM2, 8,
80 PAM3, 8,
81 PAM4, 8,
82 PAM5, 8,
83 PAM6, 8
84 }
85 }
86 }
87 }
88
89 /* Chipset specific sleep states */
Subrata Banik2715cdb2019-10-30 16:48:19 +053090 #include <southbridge/intel/common/acpi/sleepstates.asl>
Nicolas Reineckeb165c4a2015-07-04 23:37:06 +020091
92 /* Dock support code */
93 #include "acpi/dock.asl"
94}