summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2020-10-16 16:17:08 -0700
committerCommit Bot <commit-bot@chromium.org>2020-10-22 20:01:54 +0000
commitda540040f61cd3947a46f87e0811095329aa1701 (patch)
tree689618f9469bda4fdd9a78674f48761e5e106725
parent5c195ab511f88dca20be76967e56e5fbfa4d7954 (diff)
downloadchrome-ec-da540040f61cd3947a46f87e0811095329aa1701.tar.gz
Pompom: Define unused GPIOs
For the GPIOs connecting to nothing, define them. The unused GPIOs are configured as input with pull-up to save power. BRANCH=None BUG=b:169595541 TEST=Checked EC booted up correctly. Should be no change except power numbers. Change-Id: I425a120c0944342f5f12707bfc03df65d191995d Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2486292 Reviewed-by: Alexandru M Stan <amstan@chromium.org>
-rw-r--r--board/pompom/gpio.inc33
1 files changed, 27 insertions, 6 deletions
diff --git a/board/pompom/gpio.inc b/board/pompom/gpio.inc
index 74dbc2d6b5..72e97f8b47 100644
--- a/board/pompom/gpio.inc
+++ b/board/pompom/gpio.inc
@@ -57,8 +57,6 @@ GPIO(QSIP_ON, PIN(5, 0), GPIO_OUT_LOW) /* Not used, for non-swit
/* Power enables */
GPIO(HIBERNATE_L, PIN(5, 2), GPIO_OUT_HIGH) /* EC hibernate */
GPIO(SWITCHCAP_ON, PIN(D, 5), GPIO_OUT_LOW) /* Enable switch cap */
-/* TODO(waihong): Remove it. The VBOB switch is for backup. */
-GPIO(VBOB_EN, PIN(D, 3), GPIO_OUT_LOW) /* Enable VBOB */
GPIO(EN_PP3300_A, PIN(A, 6), GPIO_OUT_LOW) /* Enable PP3300 */
GPIO(EN_PP5000_A, PIN(6, 7), GPIO_OUT_LOW) /* Enable PP5000 */
GPIO(EC_BL_DISABLE_L, PIN(B, 6), GPIO_OUT_LOW) /* Backlight disable signal from EC */
@@ -74,10 +72,6 @@ GPIO(USB_C0_PD_RST_L, PIN(F, 1), GPIO_OUT_HIGH) /* Port-0 TCPC chip reset
GPIO(DP_MUX_OE_L, PIN(9, 6), GPIO_OUT_HIGH) /* DP mux enable */
GPIO(DP_MUX_SEL, PIN(4, 5), GPIO_OUT_HIGH) /* DP mux selection: L:C0, H:C1 */
GPIO(DP_HOT_PLUG_DET, PIN(9, 5), GPIO_OUT_LOW) /* DP HPD to AP */
-/* TODO(waihong): Remove it from schematic. No use. */
-GPIO(USBC_MUX_CONF0, PIN(5, 1), GPIO_INPUT)
-GPIO(USB_C0_VBUS_DET_L, PIN(6, 2), GPIO_INPUT) /* Deprecated BC1.2 VBUS detection on port-0 */
-
/* USB-A */
GPIO(EN_USB_A_5V, PIN(8, 6), GPIO_OUT_LOW)
@@ -132,6 +126,33 @@ GPIO(SKU_ID2, PIN(D, 4), GPIO_INPUT)
*/
GPIO(DA9313_GPIO0, PIN(E, 2), GPIO_INPUT | GPIO_PULL_DOWN) /* Switchcap GPIO0 */
+/* Unused GPIOs, NC. */
+UNUSED(PIN(5, 1))
+UNUSED(PIN(D, 0))
+UNUSED(PIN(F, 3))
+UNUSED(PIN(0, 4))
+UNUSED(PIN(C, 0))
+UNUSED(PIN(A, 7))
+UNUSED(PIN(8, 3))
+UNUSED(PIN(8, 1))
+UNUSED(PIN(3, 7))
+UNUSED(PIN(7, 6))
+UNUSED(PIN(3, 4))
+UNUSED(PIN(C, 5))
+UNUSED(PIN(C, 6))
+UNUSED(PIN(7, 3))
+UNUSED(PIN(D, 7))
+UNUSED(PIN(A, 5))
+UNUSED(PIN(B, 0))
+UNUSED(PIN(9, 4))
+UNUSED(PIN(B, 1))
+UNUSED(PIN(6, 2))
+UNUSED(PIN(E, 4))
+UNUSED(PIN(F, 5))
+UNUSED(PIN(3, 5))
+UNUSED(PIN(9, 7))
+UNUSED(PIN(D, 3))
+
/* Alternate functions GPIO definitions */
ALTERNATE(PIN_MASK(6, 0x30), 0, MODULE_UART, 0) /* UART (GPIO64/65) */
ALTERNATE(PIN_MASK(B, 0x30), 1, MODULE_I2C, 0) /* I2C0 (GPIOB4/B5) */