From 893fc7014661e550d920f0cc42afab43523f421c Mon Sep 17 00:00:00 2001 From: Abe Levkoy Date: Thu, 22 Oct 2020 16:57:02 -0600 Subject: 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 Change-Id: I2d76a8478bbe4fc7b1d4960edc29a7cede16cfdc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2493405 Reviewed-by: Keith Short Commit-Queue: Keith Short --- board/elemi/gpio.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'board/elemi/gpio.inc') 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 */ -- cgit v1.2.1