summaryrefslogtreecommitdiff
path: root/board/cherry/gpio.inc
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2021-03-30 17:39:49 +0800
committerCommit Bot <commit-bot@chromium.org>2021-07-29 09:59:05 +0000
commit11be0bd36e7a91c0469f917f6ec767df14c2c80f (patch)
treeb45d311fc73172f04f824d5b715a5617aa180a36 /board/cherry/gpio.inc
parent06309cebb69bc3d1f4711249463d013a76f9d950 (diff)
downloadchrome-ec-11be0bd36e7a91c0469f917f6ec767df14c2c80f.tar.gz
cherry: enable usb pd
BUG=b:177391887 TEST=verify pd works BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Ied4516abef3d544b8b4bdf8355f0f9fc305629a3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2793783 Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'board/cherry/gpio.inc')
-rw-r--r--board/cherry/gpio.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/cherry/gpio.inc b/board/cherry/gpio.inc
index caa8739d7d..895ec70f8c 100644
--- a/board/cherry/gpio.inc
+++ b/board/cherry/gpio.inc
@@ -38,8 +38,7 @@ GPIO_INT(USB_C0_BC12_INT_ODL,PIN(J, 4), GPIO_INT_FALLING, bc12_interrupt)
#else /* TOMATO */
GPIO_INT(USB_C0_BC12_INT_ODL,PIN(I, 5), GPIO_INT_FALLING, bc12_interrupt)
#endif
-/* TODO: rt1718s interrupt, not implemented */
-GPIO(USB_C1_INT_ODL, PIN(B, 2), GPIO_INPUT | GPIO_INT_FALLING)
+GPIO_INT(USB_C1_INT_ODL, PIN(B, 2), GPIO_INT_FALLING, rt1718s_tcpc_interrupt)
/* TODO: not used in other devices? */
GPIO(LID_ACCEL_INT_L, PIN(M, 2), GPIO_INT_FALLING | GPIO_SEL_1P8V)
@@ -78,7 +77,8 @@ GPIO(EC_INT_L, PIN(E, 6), GPIO_ODR_HIGH | GPIO_SEL_1P8V) /* EC_AP_
/* USB and USBC Signals */
GPIO(DP_PATH_SEL, PIN(G, 0), GPIO_OUT_HIGH)
-GPIO(DP_DEMUX_EN, PIN(G, 1), GPIO_OUT_LOW)
+/* TODO: Turn off in S3 */
+GPIO(DP_DEMUX_EN, PIN(G, 1), GPIO_OUT_HIGH)
GPIO(EC_AP_DP_HPD_ODL, PIN(J, 0), GPIO_ODR_HIGH)
GPIO(EN_PP5000_USB_A0_VBUS_X,PIN(B, 7), GPIO_OUT_LOW)
GPIO(USB_C0_DP_IN_HPD, PIN(H, 4), GPIO_OUT_LOW)