summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbe Levkoy <alevkoy@chromium.org>2020-10-22 16:56:25 -0600
committerCommit Bot <commit-bot@chromium.org>2020-10-23 20:13:04 +0000
commit7195d4860c879f5e7a44cce8c8fd20f63b5dd1e2 (patch)
tree6da822a99fe6556bd69bdf1ba8dfbb817b01fa7f
parent2d1cd54e17a49aca536fae1b583db61f82cb7e7b (diff)
downloadchrome-ec-7195d4860c879f5e7a44cce8c8fd20f63b5dd1e2.tar.gz
delbin: 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: I034f4027c11b6be03533fe216df58f8391dc3e96 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2493403 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r--board/delbin/gpio.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/delbin/gpio.inc b/board/delbin/gpio.inc
index 3ac9d81092..143971ff65 100644
--- a/board/delbin/gpio.inc
+++ b/board/delbin/gpio.inc
@@ -173,3 +173,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 */