diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2020-10-22 16:57:42 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-23 20:13:17 +0000 |
commit | 29f013a11b8dd073a2491042be1d33aeb962ed76 (patch) | |
tree | ee062f88365e77550a6c3feceac8a3fc19e76d52 /board/lingcod | |
parent | 9b713d94cf30f3d37fa96e62d94bfe7c2c10aebe (diff) | |
download | chrome-ec-29f013a11b8dd073a2491042be1d33aeb962ed76.tar.gz |
lingcod: 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: If63b468efcade5b882ef7904b2c11305be016f71
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2493408
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/lingcod')
-rw-r--r-- | board/lingcod/gpio.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/lingcod/gpio.inc b/board/lingcod/gpio.inc index 6144bba66f..57002ebd3b 100644 --- a/board/lingcod/gpio.inc +++ b/board/lingcod/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 */ |