summaryrefslogtreecommitdiff
path: root/board/coachz/gpio.inc
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2020-11-04 10:23:14 -0800
committerCommit Bot <commit-bot@chromium.org>2020-11-24 16:23:01 +0000
commit9bfe97924bfd1cefac5a83291b2a5e53d7cba935 (patch)
treedb718aeb27be055e61e44e33161cc9378867227e /board/coachz/gpio.inc
parent786ee9e804bc0db42318cbf008b6916a8e2a3e98 (diff)
downloadchrome-ec-9bfe97924bfd1cefac5a83291b2a5e53d7cba935.tar.gz
coachz: Enable stylus charging
This patch enables stylus charging. BUG=b:173235954 BRANCH=Trogdor TEST=See the description of CL:2538536. Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: Ia28214cc963168df7b229a6fbf530fc357e85740 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2538540 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/coachz/gpio.inc')
-rw-r--r--board/coachz/gpio.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/board/coachz/gpio.inc b/board/coachz/gpio.inc
index ec406b4fea..dc8eacdb26 100644
--- a/board/coachz/gpio.inc
+++ b/board/coachz/gpio.inc
@@ -28,6 +28,10 @@ GPIO_INT(AP_RST_L, PIN(C, 1), GPIO_INT_BOTH | GPIO_SEL_1P8V, chipset_ap
GPIO_INT(PS_HOLD, PIN(A, 4), GPIO_INT_BOTH | GPIO_PULL_DOWN, power_signal_interrupt) /* Indicate when AP triggers reset/shutdown */
GPIO_INT(AP_SUSPEND, PIN(5, 7), GPIO_INT_BOTH, power_signal_interrupt) /* Suspend signal from PMIC */
GPIO_INT(DEPRECATED_AP_RST_REQ, PIN(C, 2), GPIO_INT_BOTH | GPIO_PULL_DOWN | GPIO_SEL_1P8V, power_signal_interrupt) /* Deprecated AP initiated reset indicator */
+
+/* WLC interrupt */
+GPIO_INT(WLC_IRQ_CONN, PIN(7, 4), GPIO_INT_RISING, pchg_irq)
+
/*
* When switch-cap is off, the POWER_GOOD signal is floating. Need a pull-down
* to make it low. Overload the interrupt function chipset_warm_reset_interrupt
@@ -72,7 +76,6 @@ GPIO(CAM_LED, PIN(3, 0), GPIO_INPUT)
/* Stylus */
/* TODO(b/168652326): Implement the WLC controls */
-GPIO(WLC_IRQ_CONN, PIN(7, 4), GPIO_INPUT)
GPIO(WLC_NRST_CONN, PIN(C, 5), GPIO_INPUT)
/* Base detection */