summaryrefslogtreecommitdiff
path: root/board/wheelie/board.h
diff options
context:
space:
mode:
authorDevin Lu <Devin.Lu@quantatw.com>2020-07-09 18:58:33 +0800
committerCommit Bot <commit-bot@chromium.org>2020-07-14 05:22:14 +0000
commitac66d1eb5c19e8c5b974617f2ccd0dc571027cf8 (patch)
tree1aa6f9f9bae66104e04eae8880dccce9e8d3b1a2 /board/wheelie/board.h
parent81abfa1eba1195c87b206711f59d4a92675845b2 (diff)
downloadchrome-ec-ac66d1eb5c19e8c5b974617f2ccd0dc571027cf8.tar.gz
dedede: Move adc channel to board variant
Dedede family may have different temp sensors for other ADCs channel. This patch moves adc channel to board variant. BUG=none BRANCH=none TEST=make buildall -j Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Id34a924fc9431a553a1467068c6ccee6111102bc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2289478 Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/wheelie/board.h')
-rw-r--r--board/wheelie/board.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/wheelie/board.h b/board/wheelie/board.h
index f8c567dc3f..07a4a6fd0f 100644
--- a/board/wheelie/board.h
+++ b/board/wheelie/board.h
@@ -104,6 +104,15 @@ enum sensor_id {
SENSOR_COUNT
};
+/* ADC channels */
+enum adc_channel {
+ ADC_VSNS_PP3300_A, /* ADC0 */
+ ADC_TEMP_SENSOR_1, /* ADC2 */
+ ADC_TEMP_SENSOR_2, /* ADC3 */
+ ADC_SUB_ANALOG, /* ADC13 */
+ ADC_CH_COUNT
+};
+
enum temp_sensor_id {
TEMP_SENSOR_1,
TEMP_SENSOR_2,