summaryrefslogtreecommitdiff
path: root/board/drawcia/gpio.inc
diff options
context:
space:
mode:
authorDevin Lu <Devin.Lu@quantatw.com>2020-08-19 19:23:01 +0800
committerCommit Bot <commit-bot@chromium.org>2020-08-21 06:14:24 +0000
commitb6aeedc1f939b93f4b81ec1cd336ba8f928178a1 (patch)
treed3566c990d11b15f72bf839b9d49059c6c691616 /board/drawcia/gpio.inc
parentd44d6b29eb5ff59c1afd47135ec626ed907b174a (diff)
downloadchrome-ec-b6aeedc1f939b93f4b81ec1cd336ba8f928178a1.tar.gz
drawcia: enable stylus charging
Drawcia has garage stylus, this patch enables stylus charging when stylus present. BUG=b:163146414 BRANCH=none TEST=Make sure EN_PP5000_PEN turn on when stylus detected. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I53f181ae381a33a87d7c2c312f7528cddccf49e3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2364344 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/drawcia/gpio.inc')
-rw-r--r--board/drawcia/gpio.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/drawcia/gpio.inc b/board/drawcia/gpio.inc
index 4c709c72c3..92c8bf7058 100644
--- a/board/drawcia/gpio.inc
+++ b/board/drawcia/gpio.inc
@@ -41,6 +41,7 @@ GPIO_INT(VOLUP_BTN_ODL_HDMI_HPD, PIN(I, 7), GPIO_INT_BOTH, button_sub_hdmi_hpd_i
GPIO_INT(BASE_SIXAXIS_INT_L, PIN(J, 0), GPIO_INT_FALLING | GPIO_SEL_1P8V, lsm6dsm_interrupt)
GPIO_INT(CAM_EC_VSYNC, PIN(C, 7), GPIO_INT_RISING, sync_interrupt)
GPIO_INT(EC_WP_OD, PIN(A, 6), GPIO_INT_BOTH, switch_interrupt)
+GPIO_INT(PEN_DET_ODL, PIN(J, 1), GPIO_INT_BOTH | GPIO_PULL_UP, pen_detect_interrupt)
/* Power sequence GPIOs */
GPIO(EC_AP_RTCRST, PIN(K, 2), GPIO_OUT_LOW)
@@ -100,9 +101,9 @@ GPIO(EN_BL_OD, PIN(K, 4), GPIO_ODR_LOW)
GPIO(EC_ENTERING_RW, PIN(G, 0), GPIO_OUT_LOW)
GPIO(CCD_MODE_ODL, PIN(H, 5), GPIO_INPUT)
GPIO(EC_BATTERY_PRES_ODL, PIN(I, 4), GPIO_INPUT)
-GPIO(PEN_DET_ODL, PIN(J, 1), GPIO_INPUT | GPIO_PULL_UP)
GPIO(EN_KB_BL, PIN(J, 3), GPIO_OUT_LOW) /* Currently unused */
GPIO(ECH1_PACKET_MODE, PIN(H, 1), GPIO_OUT_LOW)
+GPIO(EN_PP5000_PEN, PIN(B, 5), GPIO_OUT_LOW)
/* NC pins, enable internal pull-down to avoid floating state. */
GPIO(GPIOC0_NC, PIN(C, 0), GPIO_INPUT | GPIO_PULL_DOWN)