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: I8120747986e694b64d464826f87c9afa68af157a
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/227157
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Duncan Laurie 2014-11-03 12:48:11 -08:00 committed by chrome-internal-fetch
commit 8512a6e526
2 changed files with 3 additions and 5 deletions

View file

@ -130,7 +130,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()
{
@ -148,7 +148,6 @@ Scope (\_SB.PCI0.I2C0)
Name (_PRW, Package() { GPIO, 3 })
#ifdef ENABLE_TOUCH_WAKE
Method (_DSW, 3, NotSerialized)
{
If (LEqual (Arg0, 1)) {
@ -156,7 +155,6 @@ Scope (\_SB.PCI0.I2C0)
\_SB.PCI0.LPCB.GPIO.GWAK (^GPIO)
}
}
#endif
Method (_STA)
{
@ -312,9 +310,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)) {

View file

@ -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 */