summaryrefslogtreecommitdiff
path: root/src/mainboard/google/dedede/variants/metaknight/gpio.c
diff options
context:
space:
mode:
authorDavid Wu <david_wu@quanta.corp-partner.google.com>2021-03-22 19:55:42 +0800
committerKarthik Ramasubramanian <kramasub@google.com>2021-04-08 03:50:45 +0000
commite490c787dada04523711ec131c53b43123d2da6e (patch)
tree961c8f91149d3c33722a611e68b7a5b48defa2bb /src/mainboard/google/dedede/variants/metaknight/gpio.c
parentc56350860f452628a0e307d279086a66d6d0961a (diff)
mb/google/dedede/var/metaknight: Add support to handle pen detection
Update devicetree and gpio setting of metaknight to handle pen detection. BUG=b:180426949 TEST=Build and check behavior is expected. Signed-off-by: David Wu <david_wu@quanta.corp-partner.google.com> Change-Id: Ieeca20eff57b16217a13d996dca3f662911f3e5a Reviewed-on: https://review.coreboot.org/c/coreboot/+/51709 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/mainboard/google/dedede/variants/metaknight/gpio.c')
-rw-r--r--src/mainboard/google/dedede/variants/metaknight/gpio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/variants/metaknight/gpio.c b/src/mainboard/google/dedede/variants/metaknight/gpio.c
index d6a7fd599f..2645e26d8a 100644
--- a/src/mainboard/google/dedede/variants/metaknight/gpio.c
+++ b/src/mainboard/google/dedede/variants/metaknight/gpio.c
@@ -10,6 +10,9 @@ static const struct pad_config gpio_table[] = {
/* A10 : WWAN_EN => LTE_PWR_OFF_ODL */
PAD_CFG_GPO(GPP_A10, 1, PWROK),
+ /* C12 : AP_PEN_DET_ODL */
+ PAD_CFG_GPI_GPIO_DRIVER(GPP_C12, NONE, DEEP),
+
/* H17 : WWAN_RST_L => LTE_RESET_R_ODL */
PAD_CFG_GPO(GPP_H17, 0, PLTRST),
};