summaryrefslogtreecommitdiff
path: root/board/magolor
diff options
context:
space:
mode:
authorBrian J. Nemec <bnemec@chromium.org>2020-08-20 12:19:35 -0700
committerCommit Bot <commit-bot@chromium.org>2020-10-17 09:42:27 +0000
commit47d2727fe3d08a4b11b752dd399c63bb2486b3e3 (patch)
tree170d07e9675b3f32434337a462f624c22ab77585 /board/magolor
parent3a8f417306a69e12794b38ea2a01d2f1cc7eb5f5 (diff)
downloadchrome-ec-47d2727fe3d08a4b11b752dd399c63bb2486b3e3.tar.gz
magolor: Configure unused GPIOs as inputs
Configure unused GPIOs as inputs to save power in deep sleep states. Disabled the GPIOE0 pin which is not connected. BUG=b:162318932 BRANCH=none TEST=make buildall Signed-off-by: Brian Nemec <bnemec@chromium.org> Change-Id: I3c31fda67ce432870857db295e0757efbf2eb5d0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2367230 Reviewed-by: Justin TerAvest <teravest@chromium.org>
Diffstat (limited to 'board/magolor')
-rw-r--r--board/magolor/gpio.inc13
1 files changed, 12 insertions, 1 deletions
diff --git a/board/magolor/gpio.inc b/board/magolor/gpio.inc
index 68861fa7f7..d648b4245b 100644
--- a/board/magolor/gpio.inc
+++ b/board/magolor/gpio.inc
@@ -63,7 +63,6 @@ GPIO(EN_PP5000_U, PIN(A, 4), GPIO_OUT_LOW)
GPIO(EN_SLP_Z, PIN(8, 3), GPIO_OUT_LOW)
GPIO(EN_KB_BL, PIN(6, 0), GPIO_OUT_LOW)
GPIO(EN_BL_OD, PIN(D, 3), GPIO_ODR_LOW)
-GPIO(IMVP9_PE, PIN(E, 0), GPIO_OUT_LOW)
GPIO(ECH1_PACKET_MODE, PIN(7, 5), GPIO_OUT_LOW)
/* LED */
@@ -133,3 +132,15 @@ 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(GPIO32_NC, PIN(3, 2), GPIO_INPUT | GPIO_PULL_UP)
+GPIO(GPIO35_NC, PIN(3, 5), 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(GPIOE0_NC, PIN(E, 0), GPIO_INPUT | GPIO_PULL_UP)