soc/mediatek/mt8196: Initialize SSPM
[coreboot2.git] / src / mainboard / google / cyan / acpi / trackpad_elan.asl
blobb767c372bea36ced208f3e50d7bacaaaff5a9e26
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 Scope (\_SB.PCI0.I2C6)
5         Device (ETPA)
6         {
7                 Name (_HID, "ELAN0000")
8                 Name (_DDN, "Elan Touchpad")
9                 Name (_UID, 3)
10                 Name (ISTP, 1) /* Touchpad */
12                 Name (_CRS, ResourceTemplate()
13                 {
14                         I2cSerialBus (
15                                 0x15,                     /* SlaveAddress */
16                                 ControllerInitiated,      /* SlaveMode */
17                                 400000,                   /* ConnectionSpeed */
18                                 AddressingMode7Bit,       /* AddressingMode */
19                                 "\\_SB.PCI0.I2C6",        /* ResourceSource */
20                         )
21                         GpioInt (Level, ActiveLow, SharedAndWake, PullDefault,,
22                                  "\\_SB.GPNC") { BOARD_TRACKPAD_GPIO_INDEX }
23                 })
25                 Method (_STA)
26                 {
27                         If (\S6EN == 1) {
28                                 Return (0xF)
29                         } Else {
30                                 Return (0x0)
31                         }
32                 }
33 #if CONFIG(CHROMEOS)
34                 Name (_PRW, Package() { BOARD_TRACKPAD_WAKE_GPIO, 0x3 })
35 #endif
36                 /* Allow device to power off in S0 */
37                 Name (_S0W, 4)
38         }