diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2020-10-22 16:58:54 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-23 20:13:29 +0000 |
commit | 37e08f4ad8df3a42325d69a27214d9b1d6db95cc (patch) | |
tree | 0e69b695cb6fc6bff819868bdc54855277055193 | |
parent | c33a998c4231ed3ebfa97be3f5454a94ae7fdb37 (diff) | |
download | chrome-ec-37e08f4ad8df3a42325d69a27214d9b1d6db95cc.tar.gz |
voxel: Configure temperature sensors
Enable the ADC alternate function to reduce power usage.
BUG=b:155882590
TEST=make buildall
BRANCH=none
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Change-Id: If5ec0c0a85cc300b2ede3187415c297e2874d438
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2493413
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r-- | board/voxel/gpio.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/voxel/gpio.inc b/board/voxel/gpio.inc index 3d8c61dceb..bd807aa399 100644 --- a/board/voxel/gpio.inc +++ b/board/voxel/gpio.inc @@ -181,3 +181,6 @@ ALTERNATE(PIN_MASK(0, BIT(0) | BIT(1) | BIT(2)), 0, MODULE_PMU, 0) /* GPIO00 = GPIO01 = H1_EC_PWR_BTN_ODL GPIO02 = EC_RST_ODL */ +/* Temperature sensors */ +ALTERNATE(PIN_MASK(4, BIT(2) | BIT(4) | BIT(5)), 0, MODULE_ADC, 0) /* TEMP_SENSOR1,2,4 */ +ALTERNATE(PIN(F, 1), 0, MODULE_ADC, 0) /* TEMP_SENSOR3 */ |