diff options
author | Brian J. Nemec <bnemec@chromium.org> | 2020-08-17 15:05:00 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-16 04:09:41 +0000 |
commit | 94b07b000f55eb8922014b4a09a91a6d9866b70f (patch) | |
tree | 76fdd02890aec73b1621e0e1db7c30f1da405381 | |
parent | 70c72206fd1e7871a1f7bd15c0017ddf2ac35135 (diff) | |
download | chrome-ec-94b07b000f55eb8922014b4a09a91a6d9866b70f.tar.gz |
madoo: Configure unused GPIOs as inputs
Configure unused GPIOs as inputs to save power in deep sleep states.
Disabled the GPIO00, GPIO34, and GPIO37 pins which are not connected.
BUG=b:162318932
BRANCH=none
TEST=make buildall
Signed-off-by: Brian Nemec <bnemec@chromium.org>
Change-Id: I50a90cad18b50563be026888f3930e795213ddcb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2358819
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r-- | board/madoo/gpio.inc | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/board/madoo/gpio.inc b/board/madoo/gpio.inc index 53dece4e13..49a8715565 100644 --- a/board/madoo/gpio.inc +++ b/board/madoo/gpio.inc @@ -52,10 +52,6 @@ GPIO(EC_I2C_USB_C0_SDA, PIN(8, 7), GPIO_INPUT) GPIO(EC_I2C_SUB_USB_C1_SCL, PIN(9, 2), GPIO_INPUT) GPIO(EC_I2C_SUB_USB_C1_SDA, PIN(9, 1), GPIO_INPUT) -/* Extra Sub-board I/O pins */ -GPIO(EC_SUB_IO_1, PIN(3, 7), GPIO_OUT_LOW) -GPIO(EC_SUB_IO_2, PIN(3, 4), GPIO_OUT_LOW) - /* Misc Enables */ GPIO(EN_VCCIO_EXT, PIN(6, 1), GPIO_OUT_LOW) /* TODO(b:149775160) - Modify if needed if we ever use this signal. */ @@ -130,3 +126,20 @@ ALTERNATE(PIN_MASK(B, 0x3C), 0, MODULE_I2C, 0) /* I2C7,I2C0 */ ALTERNATE(PIN_MASK(3, 0x48), 0, MODULE_I2C, 0) /* I2C5 */ ALTERNATE(PIN_MASK(9, 0x07), 0, MODULE_I2C, 0) /* I2C2, I2C1 SCL */ ALTERNATE(PIN_MASK(8, 0x80), 0, MODULE_I2C, 0) /* I2C1 SDA */ + +/* NC pins, enable internal pull-up to avoid floating state. */ +GPIO(GPIO00_NC, PIN(0, 0), GPIO_INPUT | GPIO_PULL_UP) +GPIO(GPIO32_NC, PIN(3, 2), GPIO_INPUT | GPIO_PULL_UP) +GPIO(GPIO34_NC, PIN(3, 4), GPIO_INPUT | GPIO_PULL_UP) +GPIO(GPIO35_NC, PIN(3, 5), GPIO_INPUT | GPIO_PULL_UP) +GPIO(GPIO37_NC, PIN(3, 7), GPIO_INPUT | GPIO_PULL_UP) +GPIO(GPIO41_NC, PIN(4, 1), GPIO_INPUT | GPIO_PULL_UP) +GPIO(GPIO57_NC, PIN(5, 7), GPIO_INPUT | GPIO_PULL_UP) +GPIO(GPIO81_NC, PIN(8, 1), GPIO_INPUT | GPIO_PULL_UP) +GPIO(GPIO86_NC, PIN(8, 6), GPIO_INPUT | GPIO_PULL_UP) +GPIO(GPIOC0_NC, PIN(C, 0), GPIO_INPUT | GPIO_PULL_UP) +GPIO(GPIOD0_NC, PIN(D, 0), GPIO_INPUT | GPIO_PULL_UP) +GPIO(GPIOD1_NC, PIN(D, 1), GPIO_INPUT | GPIO_PULL_UP) +GPIO(GPIOD6_NC, PIN(D, 6), GPIO_INPUT | GPIO_PULL_UP) +GPIO(GPIOF2_NC, PIN(F, 2), GPIO_INPUT | GPIO_PULL_UP) +GPIO(GPIOF3_NC, PIN(F, 3), GPIO_INPUT | GPIO_PULL_UP) |