summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbe Levkoy <alevkoy@chromium.org>2020-10-22 16:56:40 -0600
committerCommit Bot <commit-bot@chromium.org>2020-10-23 20:13:07 +0000
commitd88b873f2ba4dfa51ef2ffe2949e9738b2e92c08 (patch)
tree57a1f90bf00fd315799ca6cf67af392f29db501c
parent7195d4860c879f5e7a44cce8c8fd20f63b5dd1e2 (diff)
downloadchrome-ec-d88b873f2ba4dfa51ef2ffe2949e9738b2e92c08.tar.gz
eldrid: 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: Ia5a980247182a6eb076a477b8f99111cc6c89ce6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2493404 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r--board/eldrid/gpio.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/eldrid/gpio.inc b/board/eldrid/gpio.inc
index 67be3988c0..1006391c4e 100644
--- a/board/eldrid/gpio.inc
+++ b/board/eldrid/gpio.inc
@@ -177,3 +177,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 */