diff options
author | Puthikorn Voravootivat <puthik@chromium.org> | 2018-10-02 16:09:42 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-05 12:09:46 +0000 |
commit | 571116db0f79e4f866cfcbec9b3fab3f2a753052 (patch) | |
tree | b3c96c47fa12991a2bb366964a55e4076f0dd7c0 /board/nocturne/gpio.inc | |
parent | 24782bc4fb22c1bbe08fd458abac637adcc60788 (diff) | |
download | chrome-ec-571116db0f79e4f866cfcbec9b3fab3f2a753052.tar.gz |
CHERRY-PICK: nocturne: Set I2C5 to 1.8V if possible.
We shouldn't make GPIO pins stay at 3.3V mode when
we can use 1.8V mode to lower power consumption.
BUG=b:117139495, b:112037915
TEST=Lower power in S0ix. ALS works fine.
Signed-off-by: Puthikorn Voravootivat <puthik@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/1257660
Reviewed-by: Mulin Chao <mlchao@nuvoton.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Change-Id: I87d07c8b0d6d8714c0d257b5ba234518b41ffd9c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2160865
Tested-by: Patryk Duda <pdk@semihalf.com>
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Diffstat (limited to 'board/nocturne/gpio.inc')
-rw-r--r-- | board/nocturne/gpio.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/nocturne/gpio.inc b/board/nocturne/gpio.inc index be53c4e7be..08a6539f16 100644 --- a/board/nocturne/gpio.inc +++ b/board/nocturne/gpio.inc @@ -86,8 +86,8 @@ GPIO(EC_I2C1_USB_C0_SCL, PIN(9, 0), GPIO_INPUT) GPIO(EC_I2C1_USB_C0_SDA, PIN(8, 7), GPIO_INPUT) GPIO(EC_I2C2_USB_C1_SCL, PIN(9, 2), GPIO_INPUT) GPIO(EC_I2C2_USB_C1_SDA, PIN(9, 1), GPIO_INPUT) -GPIO(EC_I2C5_ALS_GYRO_SCL, PIN(3, 3), GPIO_INPUT) -GPIO(EC_I2C5_ALS_GYRO_SDA, PIN(3, 6), GPIO_INPUT) +GPIO(EC_I2C5_ALS_GYRO_SCL, PIN(3, 3), GPIO_INPUT | GPIO_SEL_1P8V) +GPIO(EC_I2C5_ALS_GYRO_SDA, PIN(3, 6), GPIO_INPUT | GPIO_SEL_1P8V) GPIO(EC_I2C0_POWER_SCL, PIN(B, 5), GPIO_INPUT) GPIO(EC_I2C0_POWER_SDA, PIN(B, 4), GPIO_INPUT) GPIO(EC_I2C4_BATTERY_SCL, PIN(F, 3), GPIO_INPUT) @@ -101,7 +101,7 @@ ALTERNATE(PIN_MASK(B, 0x30), 0, MODULE_I2C, 0) /* I2C0 */ ALTERNATE(PIN_MASK(8, 0x80), 0, MODULE_I2C, 0) /* I2C1 SDA */ ALTERNATE(PIN_MASK(9, 0x07), 0, MODULE_I2C, 0) /* I2C1 SCL, I2C 2 */ ALTERNATE(PIN_MASK(F, 0x0C), 0, MODULE_I2C, 0) /* I2C4 */ -ALTERNATE(PIN_MASK(3, 0x48), 0, MODULE_I2C, 0) /* I2C5 */ +ALTERNATE(PIN_MASK(3, 0x48), 0, MODULE_I2C, GPIO_INPUT | GPIO_SEL_1P8V) /* 1.8V I2C5 */ /* PWM */ ALTERNATE(PIN_MASK(6, 0x01), 0, MODULE_PWM, 0) /* PWM7 */ |