Stefan Reinauer (stefan.reinauer@coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9271
-gerrit
commit 19ba6bad8d69b3e12819e3b359156c71567884e5 Author: Duncan Laurie dlaurie@chromium.org Date: Mon Nov 3 12:48:11 2014 -0800
samus: Enable GPIO9 as touchpad wake
With EVT2 systems GPIO9 is now used for touchpad wake.
BUG=chrome-os-partner:32232 BRANCH=samus TEST=suspend/resume by touchpad on samus, with kernel workaround to disable setting of T19 in atmel driver mxt_suspend()
51 | 2014-11-03 12:41:34 | ACPI Enter | S3 52 | 2014-11-03 12:41:37 | ACPI Wake | S3 53 | 2014-11-03 12:41:37 | Wake Source | GPIO | 9
Change-Id: I67c1a6591dc287fc780889950e78c731a5a65d44 Signed-off-by: Stefan Reinauer reinauer@chromium.org Original-Commit-Id: 8512a6e5266edaf77d300f47bd26c501f00361d7 Original-Change-Id: I8120747986e694b64d464826f87c9afa68af157a Original-Signed-off-by: Duncan Laurie dlaurie@chromium.org Original-Reviewed-on: https://chromium-review.googlesource.com/227157 Original-Reviewed-by: Aaron Durbin adurbin@chromium.org --- src/mainboard/google/samus/acpi/mainboard.asl | 6 ++---- src/mainboard/google/samus/gpio.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/mainboard/google/samus/acpi/mainboard.asl b/src/mainboard/google/samus/acpi/mainboard.asl index c6ad278..feecac3 100644 --- a/src/mainboard/google/samus/acpi/mainboard.asl +++ b/src/mainboard/google/samus/acpi/mainboard.asl @@ -122,7 +122,7 @@ Scope (_SB.PCI0.I2C0) Name (_UID, 2) Name (_S0W, 4) Name (ISTP, 1) /* Touchpad */ - Name (GPIO, 13) /* TRACKPAD_INT_L */ + Name (GPIO, 9) /* TRACKPAD_INT_L (WAKE) */
Name (_CRS, ResourceTemplate() { @@ -140,7 +140,6 @@ Scope (_SB.PCI0.I2C0)
Name (_PRW, Package() { GPIO, 3 })
-#ifdef ENABLE_TOUCH_WAKE Method (_DSW, 3, NotSerialized) { If (LEqual (Arg0, 1)) { @@ -148,7 +147,6 @@ Scope (_SB.PCI0.I2C0) _SB.PCI0.LPCB.GPIO.GWAK (^GPIO) } } -#endif
Method (_STA) { @@ -304,9 +302,9 @@ Scope (_SB.PCI0.I2C1) Interrupt (ResourceConsumer, Edge, ActiveLow) { 28 } })
+#ifdef ENABLE_TOUCH_WAKE Name (_PRW, Package() { GPIO, 3 })
-#ifdef ENABLE_TOUCH_WAKE Method (_DSW, 3, NotSerialized) { If (LEqual (Arg0, 1)) { diff --git a/src/mainboard/google/samus/gpio.h b/src/mainboard/google/samus/gpio.h index 393a14f..9f4031f 100644 --- a/src/mainboard/google/samus/gpio.h +++ b/src/mainboard/google/samus/gpio.h @@ -37,7 +37,7 @@ static const struct gpio_config mainboard_gpio_config[] = { PCH_GPIO_NATIVE, /* 6: NATIVE: I2C1_SDA_GPIO6 */ PCH_GPIO_NATIVE, /* 7: NATIVE: I2C1_SCL_GPIO7 */ PCH_GPIO_ACPI_SCI, /* 8: PCH_LTE_WAKE_L */ - PCH_GPIO_UNUSED, /* 9: UNUSED */ + PCH_GPIO_INPUT_INVERT, /* 9: TRACKPAD_INT_L (WAKE) */ PCH_GPIO_ACPI_SCI, /* 10: PCH_WLAN_WAKE_L */ PCH_GPIO_UNUSED, /* 11: UNUSED */ PCH_GPIO_UNUSED, /* 12: UNUSED */