summaryrefslogtreecommitdiff
path: root/board/redrix/gpio.inc
diff options
context:
space:
mode:
authorZick Wei <zick.wei@quanta.corp-partner.google.com>2021-08-03 10:45:50 +0800
committerCommit Bot <commit-bot@chromium.org>2021-08-05 02:50:11 +0000
commite36ae821dca113e7e9e262ff2b6ff6a92eff4d7a (patch)
treeb725af9fc9abae48ac9147356e8b385677531e09 /board/redrix/gpio.inc
parent4053f907a135b00adbe824f4b944e5a8aa84306f (diff)
downloadchrome-ec-e36ae821dca113e7e9e262ff2b6ff6a92eff4d7a.tar.gz
redrix: add PCHG support
This patch add PCHG:ctn730 support on redrix. BUG=none BRANCH=none TEST=verify PCHG work as intended. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I8bf0abc3df9e28e7a018ddeb4fb971d2ede46039 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3066828 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'board/redrix/gpio.inc')
-rw-r--r--board/redrix/gpio.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/redrix/gpio.inc b/board/redrix/gpio.inc
index c8a9f2e3d2..21f8b51ee1 100644
--- a/board/redrix/gpio.inc
+++ b/board/redrix/gpio.inc
@@ -33,6 +33,11 @@ GPIO_INT(USB_C1_BC12_INT_ODL, PIN(8, 3), GPIO_INT_FALLING, bc12_inter
GPIO_INT(USB_C1_PPC_INT_ODL, PIN(7, 0), GPIO_INT_FALLING, ppc_interrupt)
GPIO_INT(USB_C1_RT_INT_ODL, PIN(4, 1), GPIO_INT_FALLING, retimer_interrupt)
+/* WLC interrupt. GPIO_PULL_DOWN ensures no IRQ when WLC chip is off. */
+#ifdef SECTION_IS_RW
+GPIO_INT(PEN_INT_ODL, PIN(F, 5), GPIO_INT_RISING | GPIO_PULL_DOWN, pchg_irq)
+#endif
+
/* USED GPIOs: */
GPIO(CCD_MODE_ODL, PIN(E, 5), GPIO_INPUT)
GPIO(CHARGER_VAP_OTG_EN, PIN(9, 6), GPIO_OUT_LOW)
@@ -76,6 +81,7 @@ GPIO(SYS_RST_ODL, PIN(C, 5), GPIO_ODR_HIGH)
GPIO(USB_C0_TCPC_RST_ODL, PIN(A, 7), GPIO_ODR_LOW)
GPIO(USB_C1_TCPC_RST_ODL, PIN(A, 0), GPIO_ODR_LOW)
GPIO(VCCST_PWRGD_OD, PIN(A, 4), GPIO_ODR_LOW)
+GPIO(PEN_RST_L, PIN(0, 2), GPIO_ODR_HIGH)
/* LED */
GPIO(C0_CHARGE_LED_AMBER_L, PIN(C, 4), GPIO_OUT_HIGH) /* Amber C0 port */