diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2020-10-22 16:57:14 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-23 20:13:12 +0000 |
commit | cf8fb0ccc7fa3aff077c345fc138f02bc42846e8 (patch) | |
tree | d9e8e2b2eecc17bcf1934dacbac21fd71d7ffdef | |
parent | 893fc7014661e550d920f0cc42afab43523f421c (diff) | |
download | chrome-ec-cf8fb0ccc7fa3aff077c345fc138f02bc42846e8.tar.gz |
halvor: 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: Iafb169df1b50b0331f87dafab9438b46e109d385
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2493406
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r-- | board/halvor/gpio.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/halvor/gpio.inc b/board/halvor/gpio.inc index 7631415318..fdf9402f27 100644 --- a/board/halvor/gpio.inc +++ b/board/halvor/gpio.inc @@ -178,3 +178,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 */ |