diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2020-10-22 16:58:36 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-23 20:13:26 +0000 |
commit | c33a998c4231ed3ebfa97be3f5454a94ae7fdb37 (patch) | |
tree | 0dd7f50339fe024bbf1424fef630138083d08c85 | |
parent | 16920628744f8611dc899cd482df8d22e9e11fd7 (diff) | |
download | chrome-ec-c33a998c4231ed3ebfa97be3f5454a94ae7fdb37.tar.gz |
trondo: 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: I15b95ce91a665efba1c2515742094a3295e6cd79
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2493412
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r-- | board/trondo/gpio.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/trondo/gpio.inc b/board/trondo/gpio.inc index 4ea6194140..ffad6194ef 100644 --- a/board/trondo/gpio.inc +++ b/board/trondo/gpio.inc @@ -169,3 +169,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 */ |