summaryrefslogtreecommitdiff
path: root/src/mainboard/google/hatch
diff options
context:
space:
mode:
authorTony Huang <tony-huang@quanta.corp-partner.google.com>2021-04-28 15:26:43 +0800
committerFurquan Shaikh <furquan@google.com>2021-05-05 04:36:57 +0000
commitbce4f2f70f5422e1d16d2d9efb4a29e484127b17 (patch)
tree90ab239c6d37f65779eb73db96ca7481dd68dcfe /src/mainboard/google/hatch
parent1282b007be8c4ee2c6193a71f66b66ef989be4b3 (diff)
mb/google/puff/var/dooly: enable touchscreen wakeup
Configure GPP_A20 as PAD_CFG_GPI_IRQ_WAKE to enable interrupt and wake routes for touchscreen device. BUG=b:186070097 BRANCH=puff TEST=Build and make sure TS works to wakeup suspend/resume. Change-Id: I2bbaab56924849a22a4d05ce53bf5bdcf00265dd Signed-off-by: Tony Huang <tony-huang@quanta.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/52725 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/hatch')
-rw-r--r--src/mainboard/google/hatch/variants/dooly/gpio.c2
-rw-r--r--src/mainboard/google/hatch/variants/dooly/overridetree.cb1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/mainboard/google/hatch/variants/dooly/gpio.c b/src/mainboard/google/hatch/variants/dooly/gpio.c
index 4406c060eb..5fd88c254c 100644
--- a/src/mainboard/google/hatch/variants/dooly/gpio.c
+++ b/src/mainboard/google/hatch/variants/dooly/gpio.c
@@ -12,7 +12,7 @@ static const struct pad_config gpio_table[] = {
/* A19 : GPP_A19 */
PAD_NC(GPP_A19, NONE),
/* A20 : TOUCH_INT_ODL */
- PAD_CFG_GPI_APIC(GPP_A20, NONE, PLTRST, LEVEL, NONE),
+ PAD_CFG_GPI_IRQ_WAKE(GPP_A20, NONE, PLTRST, LEVEL, INVERT),
/* A21 : FPMCU_PCH_BOOT0 */
PAD_NC(GPP_A21, NONE),
/* A22 : FPMCU_PCH_INT_L */
diff --git a/src/mainboard/google/hatch/variants/dooly/overridetree.cb b/src/mainboard/google/hatch/variants/dooly/overridetree.cb
index 69d142886b..3d7a4a5bde 100644
--- a/src/mainboard/google/hatch/variants/dooly/overridetree.cb
+++ b/src/mainboard/google/hatch/variants/dooly/overridetree.cb
@@ -327,6 +327,7 @@ chip soc/intel/cannonlake
register "generic.probed" = "1"
register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)"
register "generic.reset_delay_ms" = "100"
+ register "generic.wake" = "GPE0_DW0_20"
register "generic.has_power_resource" = "1"
register "generic.disable_gpio_export_in_crs" = "1"
register "hid_desc_reg_offset" = "0x20"