diff options
author | Freddy Paul <freddy.paul@intel.com> | 2016-05-10 14:04:38 -0700 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2016-05-12 04:01:36 +0200 |
commit | 74d06f25541dec1cf5063e057d02228c040f409d (patch) | |
tree | f4f35908fc1be38eb317bb4c08a5842b448e5ff0 /src/mainboard/intel | |
parent | fbb3e6c10873d0c55dc477c436d8352b915895ef (diff) |
intel/amenia: Enable touchscreen in ACPI
Add support for Elan touchscreen on I2C3 for amenia
BUG=None
TEST=Boot to Chromium OS and verify if touchscreen is working.
Change-Id: Ic75bef0e5878bd5b8c0d727400679663d9f591e3
Signed-off-by: Freddy Paul <freddy.paul@intel.com>
Reviewed-on: https://review.coreboot.org/14768
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/intel')
-rw-r--r-- | src/mainboard/intel/amenia/acpi/mainboard.asl | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/mainboard/intel/amenia/acpi/mainboard.asl b/src/mainboard/intel/amenia/acpi/mainboard.asl index 76c63b725f..35043b0e73 100644 --- a/src/mainboard/intel/amenia/acpi/mainboard.asl +++ b/src/mainboard/intel/amenia/acpi/mainboard.asl @@ -47,3 +47,35 @@ Scope (\_SB.PCI0.I2C4) } } + +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) + { + GPIO_21_IRQ + } + }) + + Method (_STA) + { + Return (0xF) + } + } +} |