diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2020-06-18 08:33:24 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-01 20:15:45 +0000 |
commit | cb38a889caec1ff6c40bcf244b67f75c9a3b58b2 (patch) | |
tree | dc742821aa93f9934c182beea2ac52759ecb2f12 | |
parent | 7bc20163929a6430f554964103953b47e52bc785 (diff) | |
download | chrome-ec-cb38a889caec1ff6c40bcf244b67f75c9a3b58b2.tar.gz |
volteer: Configure unused GPIOs as inputs
Configure unused GPIOs as inputs to save power in deep sleep states.
BUG=b:155882590,b:157609784
TEST=make buildall
TEST=Boot image on Volteer
BRANCH=none
Change-Id: I8ad71f304186d094934435aed60bde131130d1ed
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2276704
Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r-- | board/volteer/gpio.inc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/board/volteer/gpio.inc b/board/volteer/gpio.inc index 5a70d2c795..3f9e801d31 100644 --- a/board/volteer/gpio.inc +++ b/board/volteer/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_INT(EC_ALS_RGB_INT_L, PIN(D, 4), GPIO_INT_FALLING, tcs3400_interrupt) GPIO_INT(TABLET_MODE_L, PIN(9, 5), GPIO_INT_BOTH, gmr_tablet_switch_isr) +/* + * Lid g-sensor interrupt unused on Volteer, 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) @@ -106,6 +111,14 @@ GPIO(UART2_EC_RX, PIN(7, 5), GPIO_OUT_LOW) /* H1 Packet Mode */ */ GPIO(M2_SSD_PLN, PIN(A, 0), GPIO_OUT_HIGH) /* SSD power-loss notification */ GPIO(M2_SSD_PLA, PIN(7, 0), GPIO_INPUT) /* SSD power-loss acknoledgement */ +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_GPIO41, PIN(4, 1), GPIO_INPUT | GPIO_PULL_UP) +GPIO(UNUSED_GPIOF2, PIN(F, 2), GPIO_INPUT | GPIO_PULL_UP) +GPIO(UNUSED_GPIO96, PIN(9, 6), GPIO_INPUT | GPIO_PULL_UP) +GPIO(UNUSED_GPIO34, PIN(3, 4), GPIO_INPUT | GPIO_PULL_UP) /* * eDP backlight - both PCH and EC have enable pins that must be high |