diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2020-10-22 16:57:02 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-23 20:13:10 +0000 |
commit | 893fc7014661e550d920f0cc42afab43523f421c (patch) | |
tree | 41a89b6a1cb429eed7fe1d280b62e00f4cd39556 /board/elemi/gpio.inc | |
parent | d88b873f2ba4dfa51ef2ffe2949e9738b2e92c08 (diff) | |
download | chrome-ec-893fc7014661e550d920f0cc42afab43523f421c.tar.gz |
elemi: 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: I2d76a8478bbe4fc7b1d4960edc29a7cede16cfdc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2493405
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/elemi/gpio.inc')
-rw-r--r-- | board/elemi/gpio.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/elemi/gpio.inc b/board/elemi/gpio.inc index d0055671ca..4a3cd1728c 100644 --- a/board/elemi/gpio.inc +++ b/board/elemi/gpio.inc @@ -182,3 +182,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 */ |