Furquan Shaikh (furquan@google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/15499
-gerrit
commit ad1123017b504795e613ec6004e7d1eac4f74f5f Author: Furquan Shaikh furquan@google.com Date: Wed Jun 29 13:06:52 2016 -0700
google/reef: Enable touchscreen in ACPI
Add support for ELAN touchscreen on I2C3.
Change-Id: Id8b07a3a3fd4beca0d7ce804ba8d6859275c70d9 Signed-off-by: Furquan Shaikh furquan@google.com --- src/mainboard/google/reef/acpi/mainboard.asl | 32 ++++++++++++++++++++++++++++ src/mainboard/google/reef/gpio.h | 1 + 2 files changed, 33 insertions(+)
diff --git a/src/mainboard/google/reef/acpi/mainboard.asl b/src/mainboard/google/reef/acpi/mainboard.asl index 5471488..d6f9289 100644 --- a/src/mainboard/google/reef/acpi/mainboard.asl +++ b/src/mainboard/google/reef/acpi/mainboard.asl @@ -33,6 +33,38 @@ Scope (_SB) } }
+Scope (_SB.PCI0.I2C3) +{ + Device (ETSA) + { + Name (_HID, "ELAN0001") + Name (_DDN, "Elan Touchscreen") + Name (_UID, 1) + Name (ISTP, 0) /* TouchScreen */ + Name (_S0W, 4) + + Name (_CRS, ResourceTemplate() + { + I2cSerialBus ( + 0x10, // SlaveAddress + ControllerInitiated, // SlaveMode + 400000, // ConnectionSpeed + AddressingMode7Bit, // AddressingMode + "\_SB.PCI0.I2C3", // ResourceSource + ) + Interrupt (ResourceConsumer, Edge, ActiveLow) + { + TOUCHSCREEN_INT + } + }) + + Method (_STA) + { + Return (0xF) + } + } +} + Scope (_SB.PCI0.I2C4) { /* Standard Mode: HCNT, LCNT, SDA Hold Register */ diff --git a/src/mainboard/google/reef/gpio.h b/src/mainboard/google/reef/gpio.h index b41f5f9..b491dfe 100644 --- a/src/mainboard/google/reef/gpio.h +++ b/src/mainboard/google/reef/gpio.h @@ -20,6 +20,7 @@
/* Input device interrupt configuration */ #define TOUCHPAD_INT GPIO_18_IRQ +#define TOUCHSCREEN_INT GPIO_21_IRQ
#ifndef __ACPI__ /*