From d18e0e998ad846e12dac7784daf49787d4ea5f19 Mon Sep 17 00:00:00 2001 From: Bernie Thompson Date: Thu, 4 Sep 2014 17:52:51 -0700 Subject: [PATCH] auron: add Atmel i2c touch screen to the ACPI resources BUG=chrome-os-partner:31812 TEST=check if TS is found by the kernel Change-Id: I22e6a9b65253bd17b639ce4d0742d1e7d3109e0c Signed-off-by: Bernie Thompson Reviewed-on: https://chromium-review.googlesource.com/216527 Reviewed-by: Shawn Nematbakhsh --- src/mainboard/google/auron/acpi/mainboard.asl | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/mainboard/google/auron/acpi/mainboard.asl b/src/mainboard/google/auron/acpi/mainboard.asl index fd46111e0e..2fcb4de0b5 100644 --- a/src/mainboard/google/auron/acpi/mainboard.asl +++ b/src/mainboard/google/auron/acpi/mainboard.asl @@ -161,3 +161,38 @@ Scope (\_SB.PCI0.I2C0) Name (_S0W, 4) } } +Scope (\_SB.PCI0.I2C1) +{ + Device (ATSA) + { + Name (_HID, "ATML0001") + Name (_DDN, "Atmel Touchscreen") + Name (_UID, 5) + Name (_S0W, 4) + Name (ISTP, 0) /* TouchScreen */ + + Name (_CRS, ResourceTemplate() + { + I2cSerialBus ( + 0x4a, // SlaveAddress + ControllerInitiated, // SlaveMode + 400000, // ConnectionSpeed + AddressingMode7Bit, // AddressingMode + "\\_SB.PCI0.I2C1", // ResourceSource + ) + + // GPIO54 (ball L3) is PIRQW: PIRQL_GSI + PIRQL - PIRQW = PIRQW_GSI + // 27 + 3 - 14 = 38 + Interrupt (ResourceConsumer, Edge, ActiveLow) { 38 } + }) + + Method (_STA) + { + If (LEqual (\S2EN, 1)) { + Return (0xF) + } Else { + Return (0x0) + } + } + } +}