From f56e71b4d20bf19a74562f4ea080fe467fc8e088 Mon Sep 17 00:00:00 2001 From: Van Chen Date: Fri, 19 Jan 2018 15:16:19 +0800 Subject: mb/google/poppy/variants/nami: Enable elan touchpad wakeup system from S3/S0ix BUG=b:71839089 TEST= 1. emerge-nami coreboot chromeos-bootimage 2. powerd_dbus_suspend 3. touch touchpad to wakeup system 4. localhost ~ # cat /var/log/eventlog.txt | 2018-01-21 17:01:59 | S0ix Enter | 2018-01-21 17:02:04 | S0ix Exit | 2018-01-21 17:02:04 | Wake Source | GPIO | 80 Change-Id: Ie550cfa3f7b5fd105f89c16076d428743392d0e4 Signed-off-by: Van Chen Reviewed-on: https://review.coreboot.org/23363 Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/mainboard/google/poppy/variants/nami/devicetree.cb | 1 + src/mainboard/google/poppy/variants/nami/gpio.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mainboard') diff --git a/src/mainboard/google/poppy/variants/nami/devicetree.cb b/src/mainboard/google/poppy/variants/nami/devicetree.cb index 2d0ea75728..3db379b8c3 100644 --- a/src/mainboard/google/poppy/variants/nami/devicetree.cb +++ b/src/mainboard/google/poppy/variants/nami/devicetree.cb @@ -250,6 +250,7 @@ chip soc/intel/skylake register "hid" = ""ELAN0000"" register "desc" = ""ELAN Touchpad"" register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E3_IRQ)" + register "wake" = "GPE0_DW2_16" device i2c 15 on end end end # I2C #1 diff --git a/src/mainboard/google/poppy/variants/nami/gpio.c b/src/mainboard/google/poppy/variants/nami/gpio.c index 999f1de38f..dbee643e4d 100644 --- a/src/mainboard/google/poppy/variants/nami/gpio.c +++ b/src/mainboard/google/poppy/variants/nami/gpio.c @@ -241,8 +241,8 @@ static const struct pad_config gpio_table[] = { PAD_CFG_NF(GPP_E14, 20K_PD, DEEP, NF1), /* E15 : DDPD_HPD2 ==> NC */ PAD_CFG_NC(GPP_E15), - /* E16 : DDPE_HPD3 ==> NC(TP17) */ - PAD_CFG_NC(GPP_E16), + /* E16 : DDPE_HPD3 ==> PCH_GPP_E16 */ + PAD_CFG_GPI_ACPI_SCI(GPP_E16, NONE, DEEP, INVERT), /* E17 : EDP_HPD ==> EDP_HPD */ PAD_CFG_NF(GPP_E17, NONE, DEEP, NF1), /* E18 : DDPB_CTRLCLK ==> SOC_DP1_CTRL_CLK */ -- cgit v1.2.3