From 0f4191204bc7c8f45b6d34624674cf21fc3b418e Mon Sep 17 00:00:00 2001 From: Karthikeyan Ramasubramanian Date: Tue, 30 Mar 2021 15:34:47 -0600 Subject: [PATCH] mb/google/guybrush: Add Elan Touchpad configuration Enable Touchpad by configuring the enable GPIO to logic high. Add touchpad configuration for ELAN touchpad. BUG=b:182207444 TEST=Build and boot to OS in Guybrush. Ensure that the trackpad events are detected using evtest. Change-Id: Ib47fbb33f2b181eb85f6ded98a5b0ce08fbc7b64 Signed-off-by: Karthikeyan Ramasubramanian Reviewed-on: https://review.coreboot.org/c/coreboot/+/51962 Reviewed-by: Mathew King Tested-by: build bot (Jenkins) --- .../google/guybrush/variants/baseboard/gpio.c | 2 +- .../google/guybrush/variants/guybrush/overridetree.cb | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/guybrush/variants/baseboard/gpio.c b/src/mainboard/google/guybrush/variants/baseboard/gpio.c index e386658624..ba392b4de9 100644 --- a/src/mainboard/google/guybrush/variants/baseboard/gpio.c +++ b/src/mainboard/google/guybrush/variants/baseboard/gpio.c @@ -22,7 +22,7 @@ static const struct soc_amd_gpio base_gpio_table[] = { /* EN_PP3300_WLAN */ PAD_GPO(GPIO_6, LOW), /* EN_PP3300_TCHPAD */ - PAD_GPO(GPIO_7, LOW), + PAD_GPO(GPIO_7, HIGH), /* EN_PWR_WWAN_X */ PAD_GPO(GPIO_8, LOW), /* SOC_TCHPAD_INT_ODL */ diff --git a/src/mainboard/google/guybrush/variants/guybrush/overridetree.cb b/src/mainboard/google/guybrush/variants/guybrush/overridetree.cb index 286ba28c45..5f9b037c60 100644 --- a/src/mainboard/google/guybrush/variants/guybrush/overridetree.cb +++ b/src/mainboard/google/guybrush/variants/guybrush/overridetree.cb @@ -61,4 +61,14 @@ chip soc/amd/cezanne .early_init = true, }" + device ref i2c_0 on + chip drivers/i2c/generic + register "hid" = ""ELAN0000"" + register "desc" = ""ELAN Touchpad"" + register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_LOW(GPIO_9)" + register "wake" = "GEVENT_22" + register "probed" = "1" + device i2c 15 on end + end + end # I2C0 end # chip soc/amd/cezanne