summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMulin Chao <mlchao@nuvoton.com>2018-06-07 02:43:07 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-06-28 21:06:23 -0700
commitc12fe99d58b37278016567b245b154345a17a61f (patch)
tree5722a564c84049bfdf612e49249c76536385019b
parentab38c2f25602f51994d56b22d5ded7c7bfa0beba (diff)
downloadchrome-ec-c12fe99d58b37278016567b245b154345a17a61f.tar.gz
yorp: add internal PUs for unused pins to prevent leakage current.
This CL adds internal PUs for unused pins on yorp in gpio.inc to prevent leakage current. Please notice the test platform is yorp proto 1. Beside PUs for strap-pins, the configuration of other pins might need to change on yorp proto 2. BRANCH=none BUG=b:110170824 TEST=No build errors for npcx7 series. Adding PUs on strap-pins saves ~0.4mA at S0ix. Adding PUs on the other unused pin saves ~0.2mA at S0ix. Change-Id: If2406f9fca12f7b3456301435f8ec25cb264ed3a Signed-off-by: Mulin Chao <mlchao@nuvoton.com> Reviewed-on: https://chromium-review.googlesource.com/1092391 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
-rw-r--r--board/yorp/gpio.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/yorp/gpio.inc b/board/yorp/gpio.inc
index a616c48f88..042f623d6f 100644
--- a/board/yorp/gpio.inc
+++ b/board/yorp/gpio.inc
@@ -135,6 +135,13 @@ GPIO(C1_EN_SNK_V0, PIN(4, 0), GPIO_DEFAULT) /* C1: EN_SNK */
GPIO(SYS_RESET_L_V0, PIN(0, 2), GPIO_DEFAULT) /* SYS_RESET_L */
GPIO(ENTERING_RW_V0, PIN(8, 0), GPIO_DEFAULT) /* ENTERING_RW */
+/* Overcurrent event to host */
+GPIO(USB_C_OC, PIN(3, 6), GPIO_ODR_HIGH | GPIO_SEL_1P8V)
+
+/* Strap pins */
+GPIO(GPO66_NC, PIN(6, 6), GPIO_INPUT | GPIO_PULL_UP)
+GPIO(GPOB6_NC, PIN(B, 6), GPIO_INPUT | GPIO_PULL_UP)
+
/* Keyboard pins */
ALTERNATE(PIN_MASK(3, 0x03), 0, MODULE_KEYBOARD_SCAN, GPIO_INPUT) /* KSI_00-01 */
ALTERNATE(PIN_MASK(2, 0xFC), 0, MODULE_KEYBOARD_SCAN, GPIO_INPUT) /* KSI_02-07 */