diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2020-10-22 16:57:52 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-23 20:13:19 +0000 |
commit | 179b04e2a9f76a07069e2cff26287e050a8612f9 (patch) | |
tree | 4b0f47db58db559eb041a52d81d451f0c68c9cab | |
parent | 29f013a11b8dd073a2491042be1d33aeb962ed76 (diff) | |
download | chrome-ec-179b04e2a9f76a07069e2cff26287e050a8612f9.tar.gz |
malefor: 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: I09dd88d28ce15ea807bf68c2041621a89f4ad79b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2493409
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r-- | board/malefor/gpio.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/malefor/gpio.inc b/board/malefor/gpio.inc index 6144bba66f..57002ebd3b 100644 --- a/board/malefor/gpio.inc +++ b/board/malefor/gpio.inc @@ -157,3 +157,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 */ |