summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Chen <ben.chen2@quanta.corp-partner.google.com>2020-08-04 16:00:59 +0800
committerCommit Bot <commit-bot@chromium.org>2020-08-14 11:48:32 +0000
commit070a3bb78134e1fbbc2bdf83715c68ba2ce844c8 (patch)
treebb9f34101acb7586392563468303102c1cd6d131
parentd4013027f0f1c95397363b21761085c0d08a6825 (diff)
downloadchrome-ec-070a3bb78134e1fbbc2bdf83715c68ba2ce844c8.tar.gz
voxel: Configure unused GPIOs as inputs
Configure unused GPIOs as inputs to save power in deep sleep states. BUG=b:162592971 BRANCH=none TEST=make buildall Change-Id: I1cc6330268b269bb9f337913335f055056b3800a Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2335526 Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r--board/voxel/gpio.inc17
1 files changed, 17 insertions, 0 deletions
diff --git a/board/voxel/gpio.inc b/board/voxel/gpio.inc
index 26a50b9437..63b42c9a7c 100644
--- a/board/voxel/gpio.inc
+++ b/board/voxel/gpio.inc
@@ -28,6 +28,11 @@ GPIO_INT(PG_EC_ALL_SYS_PWRGD, PIN(F, 4), GPIO_INT_BOTH, power_signal_interrupt
GPIO_INT(EC_IMU_INT_L, PIN(5, 6), GPIO_INT_FALLING | GPIO_SEL_1P8V, bmi260_interrupt)
GPIO(EC_ALS_RGB_INT_L, PIN(D, 4), GPIO_INPUT | GPIO_PULL_UP) /* unused */
GPIO_INT(TABLET_MODE_L, PIN(9, 5), GPIO_INT_BOTH, gmr_tablet_switch_isr)
+/*
+ * Lid g-sensor interrupt unused on Voxel, 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)
@@ -76,6 +81,7 @@ GPIO_INT(EC_PROCHOT_IN_L, PIN(F, 0), GPIO_INT_BOTH, throttle_ap_prochot_inp
GPIO(SYS_RST_ODL, PIN(C, 5), GPIO_ODR_HIGH)
GPIO(EC_PCH_INT_ODL, PIN(B, 0), GPIO_ODR_HIGH)
+GPIO(CPU_C10_GATE_L, PIN(6, 7), GPIO_INPUT)
/* USB and USBC Signals */
GPIO(EN_PP5000_USBA, PIN(3, 5), GPIO_OUT_LOW) /* Enable USB-A charging - all ports */
@@ -105,6 +111,17 @@ GPIO(LED_1_L, PIN(C, 4), GPIO_OUT_HIGH) /* Blue */
GPIO(LED_2_L, PIN(C, 3), GPIO_OUT_HIGH) /* Yellow */
GPIO(EC_KB_BL_EN, PIN(8, 6), GPIO_OUT_LOW) /* Keyboard backlight enable*/
+GPIO(M2_SSD_PLN, PIN(A, 0), GPIO_ODR_HIGH) /* SSD power-loss notification */
+GPIO(CCD_MODE_ODL, PIN(E, 5), GPIO_INPUT) /* Case Closed Debug Mode */
+GPIO(EC_SLP_S0IX, PIN(7, 2), GPIO_INPUT | GPIO_PULL_UP)
+
+/* Unused signals */
+GPIO(UNUSED_GPIO34, PIN(3, 4), 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_GPIOC6, PIN(C, 6), 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