2 * This file is part of the coreboot project.
4 * Copyright (C) 2012 Google Inc.
5 * Copyright (C) 2015 Intel Corp.
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; version 2 of
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
28 Name (_HID, EisaId ("PNP0C0D"))
31 Store (\_SB.PCI0.LPCB.EC0.LIDS, \LIDS)
38 Name (_HID, EisaId ("PNP0C0C"))
44 * LPC Trusted Platform Module
46 Scope (\_SB.PCI0.LPCB)
48 #include <drivers/pc80/tpm/acpi/tpm.asl>
54 Name (_HID, "ATML0001")
55 Name (_DDN, "Atmel Touchscreen Bootloader")
57 Name (ISTP, 0) /* TouchScreen */
59 Method(_CRS, 0x0, NotSerialized)
61 Name (BUF0, ResourceTemplate ()
64 0x26, /* SlaveAddress */
65 ControllerInitiated, /* SlaveMode */
66 400000, /* ConnectionSpeed */
67 AddressingMode7Bit, /* AddressingMode */
68 "\\_SB.I2C1", /* ResourceSource */
70 Interrupt (ResourceConsumer, Edge, ActiveLow)
75 Name (BUF1, ResourceTemplate ()
78 0x26, /* SlaveAddress */
79 ControllerInitiated, /* SlaveMode */
80 400000, /* ConnectionSpeed */
81 AddressingMode7Bit, /* AddressingMode */
82 "\\_SB.I2C1", /* ResourceSource */
84 Interrupt (ResourceConsumer, Edge, ActiveLow)
89 If (LEqual (\BDID, BOARD_EVT)) {
98 If (LEqual (\S1EN, 1)) {
105 /* Allow device to power off in S0 */
111 Name (_HID, "ATML0001")
112 Name (_DDN, "Atmel Touchscreen")
114 Name (ISTP, 0) /* TouchScreen */
116 Method(_CRS, 0x0, NotSerialized)
118 Name (BUF0, ResourceTemplate ()
121 0x4b, /* SlaveAddress */
122 ControllerInitiated, /* SlaveMode */
123 400000, /* ConnectionSpeed */
124 AddressingMode7Bit, /* AddressingMode */
125 "\\_SB.I2C1", /* ResourceSource */
127 Interrupt (ResourceConsumer, Edge, ActiveLow)
132 Name (BUF1, ResourceTemplate ()
135 0x4b, /* SlaveAddress */
136 ControllerInitiated, /* SlaveMode */
137 400000, /* ConnectionSpeed */
138 AddressingMode7Bit, /* AddressingMode */
139 "\\_SB.I2C1", /* ResourceSource */
141 Interrupt (ResourceConsumer, Edge, ActiveLow)
146 If (LEqual (\BDID, BOARD_EVT)) {
155 If (LEqual (\S1EN, 1)) {
162 Name (_PRW, Package() { BOARD_TOUCHSCREEN_WAKE_GPIO, 0x3 })
164 /* Allow device to power off in S0 */
172 /* Realtek Audio Codec */
173 Device (RTEK) /* Audio Codec driver I2C */
176 Name (_HID, AUDIO_CODEC_HID)
177 Name (_CID, AUDIO_CODEC_CID)
178 Name (_DDN, AUDIO_CODEC_DDN)
181 Method(_CRS, 0x0, NotSerialized)
183 Name(SBUF,ResourceTemplate ()
186 AUDIO_CODEC_I2C_ADDR, /* SlaveAddress: bus address */
187 ControllerInitiated, /* SlaveMode: default to ControllerInitiated */
188 400000, /* ConnectionSpeed: in Hz */
189 AddressingMode7Bit, /* Addressing Mode: default to 7 bit */
190 "\\_SB.I2C5", /* ResourceSource: I2C bus controller name */
194 /* Jack Detect (index 0) */
195 GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone,,
196 "\\_SB.GPSW") { JACK_DETECT_GPIO_INDEX }
203 If (LEqual (\S5EN, 1)) {
204 If (LEqual (\BDID, BOARD_BCRD2)) {
217 Name (_HID, "ELAN0000")
218 Name (_DDN, "Elan Touchpad")
220 Name (ISTP, 1) /* Touchpad */
222 Name (_CRS, ResourceTemplate()
225 0x15, /* SlaveAddress */
226 ControllerInitiated, /* SlaveMode */
227 400000, /* ConnectionSpeed */
228 AddressingMode7Bit, /* AddressingMode */
229 "\\_SB.I2C6", /* ResourceSource */
231 GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone,,
232 "\\_SB.GPNC") { BOARD_TRACKPAD_GPIO_INDEX }
237 If (LEqual (\S6EN, 1)) {
244 Name (_PRW, Package() { BOARD_TRACKPAD_WAKE_GPIO, 0x3 })
245 /* Allow device to power off in S0 */
252 Name (GBUF, ResourceTemplate ()
254 /* Jack Detect (index 0) */
255 GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone,,
256 "\\_SB.GPSW") { JACK_DETECT_GPIO_INDEX }
262 Method (_AEI, 0, NotSerialized) // _AEI: ACPI Event Interrupts
264 Name (RBUF, ResourceTemplate ()
266 GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone,,
267 "\\_SB.GPNC") { BOARD_SCI_GPIO_INDEX }
272 Method (_E0F, 0, NotSerialized) // _Exx: Edge-Triggered GPE