summaryrefslogtreecommitdiff
path: root/board/delbin
diff options
context:
space:
mode:
authorMichael5 Chen <michael5_chen1@pegatron.corp-partner.google.com>2020-08-04 15:21:32 +0800
committerCommit Bot <commit-bot@chromium.org>2020-08-06 13:31:50 +0000
commit44d39b1af40f3759430cfdc995fe456a62585eff (patch)
tree24721e23f37fdc48c95063c536a13eb482a140c5 /board/delbin
parent99fb6536b49052f69898288df02a01d321d760ba (diff)
downloadchrome-ec-44d39b1af40f3759430cfdc995fe456a62585eff.tar.gz
Delbin: Configure unused GPIOs as inputs
Configure unused GPIOs as inputs to save power in deep sleep states. BUG=b:162592172 BRANCH=master TEST=make buildall TEST=Boot image on Delbin Signed-off-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com> Change-Id: I1e2e74a5e9aeb25bf80e86459a4f906a1642cafa Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2335623 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/delbin')
-rw-r--r--board/delbin/gpio.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/board/delbin/gpio.inc b/board/delbin/gpio.inc
index f3b3ff6c7d..b4612ed0ff 100644
--- a/board/delbin/gpio.inc
+++ b/board/delbin/gpio.inc
@@ -27,6 +27,12 @@ GPIO_INT(PG_EC_ALL_SYS_PWRGD, PIN(F, 4), GPIO_INT_BOTH, power_signal_interrupt
/* Sensor Interrupts */
GPIO_INT(EC_IMU_INT_L, PIN(5, 6), GPIO_INT_FALLING | GPIO_SEL_1P8V, bmi260_interrupt)
GPIO_INT(TABLET_MODE_L, PIN(9, 5), GPIO_INT_BOTH, gmr_tablet_switch_isr)
+/*
+ * Lid g-sensor interrupt unused on Delbin, configure as regular input for
+ * power saving.
+ */
+GPIO(EC_ACCEL_INT, PIN(8, 1), GPIO_INPUT | GPIO_PULL_UP)
+
/* USB-C interrupts */
GPIO_INT(USB_C0_TCPC_INT_ODL, PIN(E, 0), GPIO_INT_BOTH, tcpc_alert_event)
@@ -99,6 +105,15 @@ GPIO(LED_2_L, PIN(C, 3), GPIO_OUT_HIGH) /* Battery Charging LED: Amber */
GPIO(LED_3_L, PIN(C, 2), GPIO_OUT_HIGH) /* Battery Power LED: White */
GPIO(CCD_MODE_ODL, PIN(E, 5), GPIO_INPUT) /* Case Closed Debug Mode */
+/* Unused signals */
+GPIO(UNUSED_GPIO34, PIN(3, 4), GPIO_INPUT | GPIO_PULL_UP)
+GPIO(UNUSED_GPIO41, PIN(4, 1), GPIO_INPUT | GPIO_PULL_UP)
+GPIO(UNUSED_GPIO72, PIN(7, 2), GPIO_INPUT | GPIO_PULL_UP)
+GPIO(UNUSED_GPIO96, PIN(9, 6), GPIO_INPUT | GPIO_PULL_UP)
+GPIO(UNUSED_GPIOA7, PIN(A, 7), GPIO_INPUT | GPIO_PULL_UP)
+GPIO(UNUSED_GPIOC0, PIN(C, 0), GPIO_INPUT | GPIO_PULL_UP)
+GPIO(UNUSED_GPIOF2, PIN(F, 2), GPIO_INPUT | GPIO_PULL_UP)
+
/*
* eDP backlight - both PCH and EC have enable pins that must be high
* for the backlight to turn on. Default state is high, and can be turned