summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2020-10-16 15:12:09 -0700
committerCommit Bot <commit-bot@chromium.org>2020-10-22 20:01:49 +0000
commit5c195ab511f88dca20be76967e56e5fbfa4d7954 (patch)
treeb7ee0d73a07887687ce841796adbcef58ee858db
parente1728abb335acf11e2c9512ae88181a770935850 (diff)
downloadchrome-ec-5c195ab511f88dca20be76967e56e5fbfa4d7954.tar.gz
Lazor: 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: I33a2bb3f9cc9df7fc8e271fca603d2476270d588 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2486291 Reviewed-by: Alexandru M Stan <amstan@chromium.org>
-rw-r--r--board/lazor/gpio.inc29
1 files changed, 25 insertions, 4 deletions
diff --git a/board/lazor/gpio.inc b/board/lazor/gpio.inc
index 4e57889271..0aa3d9bce0 100644
--- a/board/lazor/gpio.inc
+++ b/board/lazor/gpio.inc
@@ -85,10 +85,6 @@ GPIO(USB_C1_PD_RST_L, PIN(E, 4), GPIO_ODR_HIGH) /* Port-1 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 */
-GPIO(USB_C1_VBUS_DET_L, PIN(8, 3), GPIO_INPUT) /* Deprecated BC1.2 VBUS detection on port-1 */
/* USB-A */
GPIO(EN_USB_A_5V, PIN(8, 6), GPIO_OUT_LOW)
@@ -137,6 +133,31 @@ GPIO(SKU_ID0, PIN(F, 0), GPIO_INPUT)
GPIO(SKU_ID1, PIN(4, 1), GPIO_INPUT)
GPIO(SKU_ID2, PIN(D, 4), GPIO_INPUT)
+/* 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(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(3, 5))
+UNUSED(PIN(9, 7))
+UNUSED(PIN(6, 0))
+UNUSED(PIN(7, 2))
+
/* 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) */