blob: f2f0a8963c11ac89fe17815f359acdb2d1a4c160 [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
Patrick Georgib890a122015-03-26 15:17:45 +010018 * Foundation, Inc.
Vladimir Serbinenko9bf05de2013-11-14 19:11:19 +010019 */
20
21#define THINKPAD_EC_GPE 17
Vladimir Serbinenkodd2bc3f2014-10-31 09:16:31 +010022#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
23#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
Vladimir Serbinenko9bf05de2013-11-14 19:11:19 +010024#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
Vladimir Serbinenkoe0ceac32014-07-29 00:51:31 +020025#define EC_LENOVO_H8_ME_WORKAROUND 1
Vladimir Serbinenko9bf05de2013-11-14 19:11:19 +010026
27DefinitionBlock(
28 "dsdt.aml",
29 "DSDT",
30 0x03, /* DSDT revision: ACPI v3.0 */
31 "COREv4", /* OEM id */
32 "COREBOOT", /* OEM table id */
33 0x20130325 /* OEM revision */
34)
35{
36 /* Some generic macros */
37 #include "acpi/platform.asl"
38
39 /* global NVS and variables */
40 #include <southbridge/intel/bd82x6x/acpi/globalnvs.asl>
41
42 /* General Purpose Events */
43 #include "acpi/gpe.asl"
44
Vladimir Serbinenko9bf05de2013-11-14 19:11:19 +010045 #include <cpu/intel/model_206ax/acpi/cpu.asl>
46
47 Scope (\_SB) {
48 Device (PCI0)
49 {
50 #include <northbridge/intel/nehalem/acpi/nehalem.asl>
51 #include <southbridge/intel/bd82x6x/acpi/pch.asl>
Kyösti Mälkkia4823222015-06-06 11:03:12 +030052 #include <southbridge/intel/bd82x6x/acpi/default_irq_route.asl>
Vladimir Serbinenko9bf05de2013-11-14 19:11:19 +010053 }
54 Device (UNCR)
55 {
56 Name (_BBN, 0xFF)
57 Name (_ADR, 0x00)
58 Name (RID, 0x00)
59 Name (_HID, EisaId ("PNP0A03"))
60 Name (_CRS, ResourceTemplate ()
61 {
62 WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
63 0x0000, /* Granularity */
64 0x00FF, /* Range Minimum */
65 0x00FF, /* Range Maximum */
66 0x0000, /* Translation Offset */
67 0x0001, /* Length */
68 ,, )
69 })
70 Device (SAD)
71 {
72 Name (_ADR, 0x01)
73 Name (RID, 0x00)
74 OperationRegion (SADC, PCI_Config, 0x00, 0x0100)
75 Field (SADC, DWordAcc, NoLock, Preserve)
76 {
77 Offset (0x40),
78 PAM0, 8,
79 PAM1, 8,
80 PAM2, 8,
81 PAM3, 8,
82 PAM4, 8,
83 PAM5, 8,
84 PAM6, 8
85 }
86 }
87 }
88 }
89
Vladimir Serbinenkoa93c0142015-05-21 09:28:14 +020090/*
91 * LPC Trusted Platform Module
92 */
93Scope (\_SB.PCI0.LPCB)
94{
95 #include <drivers/pc80/tpm/acpi/tpm.asl>
96}
97
Vladimir Serbinenko9bf05de2013-11-14 19:11:19 +010098 /* Chipset specific sleep states */
99 #include <southbridge/intel/i82801gx/acpi/sleepstates.asl>
100
101 /* Dock support code */
102 #include "acpi/dock.asl"
103}