From edde584bb23bae1e703481e0f33a1f036373a578 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Mon, 27 Jan 2014 15:31:45 -0800 Subject: [PATCH] rambi: Add LPE GPIOs for Jack/Mic detect These GPIOs are defined in the mainboard and will be returned as part of the LPE Device _CRS method. BUG=chrome-os-partner:24380 BRANCH=rambi TEST=build and boot on rambi Change-Id: I7fe0852b63499530f6dfef4553e818e7364f4101 Signed-off-by: Duncan Laurie Reviewed-on: https://chromium-review.googlesource.com/184007 --- src/mainboard/google/rambi/acpi/mainboard.asl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/mainboard/google/rambi/acpi/mainboard.asl b/src/mainboard/google/rambi/acpi/mainboard.asl index 501bbf7020..1f5b7a1551 100644 --- a/src/mainboard/google/rambi/acpi/mainboard.asl +++ b/src/mainboard/google/rambi/acpi/mainboard.asl @@ -360,3 +360,17 @@ Scope (\_SB.I2C6) Name (_PRW, Package() { BOARD_TOUCHSCREEN_WAKE_GPIO, 0x3 }) } } + +Scope (\_SB.LPEA) +{ + Name (GBUF, ResourceTemplate () + { + /* Jack Detect (index 0) */ + GpioInt (Edge, ActiveHigh, Exclusive, PullNone,, + "\\_SB.GPSC") { 14 } + + /* Mic Detect (index 1) */ + GpioInt (Edge, ActiveHigh, Exclusive, PullNone,, + "\\_SB.GPSC") { 15 } + }) +}