blob: d245f2aed902353e479095d591b5340a967145b8 [file] [log] [blame]
Vladimir Serbinenko9bf05de2013-11-14 19:11:19 +01001/*
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 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
19 * MA 02110-1301 USA
20 */
21
22#define THINKPAD_EC_GPE 17
23#define BRIGHTNESS_UP \_SB.PCI0.GFX0.LCD0.INCB
24#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.LCD0.DECB
25#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
Vladimir Serbinenko4c8b1ee2014-01-10 19:30:54 +010026#define RP04_IS_EXPRESSCARD 1
Vladimir Serbinenkoe0ceac32014-07-29 00:51:31 +020027#define EC_LENOVO_H8_ME_WORKAROUND 1
Vladimir Serbinenko9bf05de2013-11-14 19:11:19 +010028
29DefinitionBlock(
30 "dsdt.aml",
31 "DSDT",
32 0x03, /* DSDT revision: ACPI v3.0 */
33 "COREv4", /* OEM id */
34 "COREBOOT", /* OEM table id */
35 0x20130325 /* OEM revision */
36)
37{
38 /* Some generic macros */
39 #include "acpi/platform.asl"
40
41 /* global NVS and variables */
42 #include <southbridge/intel/bd82x6x/acpi/globalnvs.asl>
43
44 /* General Purpose Events */
45 #include "acpi/gpe.asl"
46
47 /* mainboard specific devices */
48 #include "acpi/mainboard.asl"
49
50 #include <cpu/intel/model_206ax/acpi/cpu.asl>
51
52 Scope (\_SB) {
53 Device (PCI0)
54 {
55 #include <northbridge/intel/nehalem/acpi/nehalem.asl>
56 #include <southbridge/intel/bd82x6x/acpi/pch.asl>
57 }
58 Device (UNCR)
59 {
60 Name (_BBN, 0xFF)
61 Name (_ADR, 0x00)
62 Name (RID, 0x00)
63 Name (_HID, EisaId ("PNP0A03"))
64 Name (_CRS, ResourceTemplate ()
65 {
66 WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
67 0x0000, /* Granularity */
68 0x00FF, /* Range Minimum */
69 0x00FF, /* Range Maximum */
70 0x0000, /* Translation Offset */
71 0x0001, /* Length */
72 ,, )
73 })
74 Device (SAD)
75 {
76 Name (_ADR, 0x01)
77 Name (RID, 0x00)
78 OperationRegion (SADC, PCI_Config, 0x00, 0x0100)
79 Field (SADC, DWordAcc, NoLock, Preserve)
80 {
81 Offset (0x40),
82 PAM0, 8,
83 PAM1, 8,
84 PAM2, 8,
85 PAM3, 8,
86 PAM4, 8,
87 PAM5, 8,
88 PAM6, 8
89 }
90 }
91 }
92 }
93
94 #include "acpi/video.asl"
95
96 /* Chipset specific sleep states */
97 #include <southbridge/intel/i82801gx/acpi/sleepstates.asl>
98
99 /* Dock support code */
100 #include "acpi/dock.asl"
101}