Debian Codegraph @

src/mainboard/google/butterfly/acpi/mainboard.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <mainboard/google/butterfly/onboard.h>
4
5 Scope (\_SB) {
6 Device (LID0)
7 {
8 Name (_HID, EisaId("PNP0C0D"))
9 Method (_LID, 0)
10 {
11 \LIDS = \_SB.PCI0.LPCB.EC0.LIDF
12 Return (\LIDS)
13 }
14 }
15
16 Device (TPAD)
17 {
18 Name(_HID, "CYSM0000")
19 Name(_UID, 1)
20 Name(_HRV, 2)
21
22 // Trackpad Wake is GPIO11, wake from S3
23 Name(_PRW, Package() { BOARD_TRACKPAD_WAKE_GPIO, 0x03 })
24
25 Name(_CRS, ResourceTemplate()
26 {
27 // PIRQG -> GSI22
28 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, )
29 {
30 BOARD_TRACKPAD_IRQ
31 }
32
33 // SMBUS Address 0x67
34 VendorShort (ADDR) { BOARD_TRACKPAD_I2C_ADDR }
35 })
36 }
37
38 }
39
40 // Battery information
41 Name (BATV, "GOOGLE")