summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-17 11:53:06 -0700
committerCommit Bot <commit-bot@chromium.org>2020-12-18 01:01:17 +0000
commit2a7ab1df82ff20a22a938947e6bb7bd6f5a92c3f (patch)
tree2a3db3acbf95dfe379b357eb5c493d8a81486e28
parent28ffaeaf6ba9db8bdb99c9235ff699a1f8a0bf66 (diff)
downloadchrome-ec-2a7ab1df82ff20a22a938947e6bb7bd6f5a92c3f.tar.gz
zephyr: Define an empty adc.h for now
While we wait for an ADC shim, define this enum so that the code at least compiles. BUG=b:175881324 BRANCH=none TEST=build zephyr for volteer Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I688e313afd78a0953c3e03da6a8039ae3112afdd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2595219 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r--include/adc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/adc.h b/include/adc.h
index 545a5e503b..b4b4c8cb43 100644
--- a/include/adc.h
+++ b/include/adc.h
@@ -12,6 +12,13 @@
#define ADC_READ_ERROR -1 /* Value returned by adc_read_channel() on error */
+#ifdef CONFIG_ZEPHYR
+/* TODO(b/175881324): Add a shim for ADC */
+enum adc_channel {
+ ADC_NONE,
+};
+#endif
+
/*
* Boards which use the ADC interface must provide enum adc_channel in the
* board.h file. See chip/$CHIP/adc_chip.h for additional chip-specific