From 4a51ea8470eecabe401b22142fd1bbcb263953f7 Mon Sep 17 00:00:00 2001 From: Ivy Jian Date: Wed, 12 Apr 2017 11:44:22 +0800 Subject: google/kahlee: Add ASL for Elan touchpad Add ASL for the Elan touchpad driver connection in ChromeOS. This is based on the Auron and Rambi ASL. The AMD ACPI code doesn't have the auto table generation the newer Intel Chrome SOC use. Device visible to OS: /sys/bus/acpi/devices/ELAN0000 Change-Id: Id3fc8c8855b0296f43a502e81143498d663468ec Signed-off-by: Ivy Jian Signed-off-by: Marc Jones Reviewed-on: https://review.coreboot.org/19844 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/mainboard/google/kahlee/acpi/mainboard.asl | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/mainboard/google') diff --git a/src/mainboard/google/kahlee/acpi/mainboard.asl b/src/mainboard/google/kahlee/acpi/mainboard.asl index e98d26defd..b7dbc147da 100644 --- a/src/mainboard/google/kahlee/acpi/mainboard.asl +++ b/src/mainboard/google/kahlee/acpi/mainboard.asl @@ -34,3 +34,27 @@ Name (SSFG, 0x0D) Name (OSVR, 3) /* WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name (OSV, Ones) /* Assume nothing */ Name (PMOD, One) /* Assume APIC */ + +Device (ETPA) +{ + Name (_HID, "ELAN0000") + Name (_DDN, "Elan Touchpad") + Name (_UID, 1) + Name (ISTP, 1) /* Touchpad */ + + Name (_CRS, ResourceTemplate() + { + I2cSerialBus ( + 0x15, /* SlaveAddress */ + ControllerInitiated, /* SlaveMode */ + 400000, /* ConnectionSpeed */ + AddressingMode7Bit, /* AddressingMode */ + "\\_SB.I2CD", /* ResourceSource */ + ) + GpioInt (Level, ActiveLow, ExclusiveAndWake, PullNone,, + "\\_SB.GPIO") { 0x5 } + }) + + /* Allow device to power off in S0 */ + Name (_S0W, 3) +} -- cgit v1.2.3