diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2020-10-22 16:57:30 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-23 20:13:14 +0000 |
commit | 9b713d94cf30f3d37fa96e62d94bfe7c2c10aebe (patch) | |
tree | ec7329373b95192fff348c1048c17ebbc7590c02 /board/lindar | |
parent | cf8fb0ccc7fa3aff077c345fc138f02bc42846e8 (diff) | |
download | chrome-ec-9b713d94cf30f3d37fa96e62d94bfe7c2c10aebe.tar.gz |
lindar: 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: I65d2b2cd353fdb7d082971848f21ec53f556a5ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2493407
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/lindar')
-rw-r--r-- | board/lindar/gpio.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/lindar/gpio.inc b/board/lindar/gpio.inc index 611512a7b6..736d6a5360 100644 --- a/board/lindar/gpio.inc +++ b/board/lindar/gpio.inc @@ -162,6 +162,10 @@ 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 */ + /* Unused signals */ GPIO(UNUSED_GPIO60, PIN(6, 0), GPIO_INPUT | GPIO_PULL_UP) GPIO(UNUSED_GPIO34, PIN(3, 4), GPIO_INPUT | GPIO_PULL_UP) |