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