From da540040f61cd3947a46f87e0811095329aa1701 Mon Sep 17 00:00:00 2001 From: Wai-Hong Tam Date: Fri, 16 Oct 2020 16:17:08 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2486292 Reviewed-by: Alexandru M Stan --- board/pompom/gpio.inc | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) (limited to 'board/pompom') 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) */ -- cgit v1.2.1