summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zephyr/Kconfig.adc7
1 files changed, 7 insertions, 0 deletions
diff --git a/zephyr/Kconfig.adc b/zephyr/Kconfig.adc
index f32da5169e..68680a8706 100644
--- a/zephyr/Kconfig.adc
+++ b/zephyr/Kconfig.adc
@@ -6,12 +6,19 @@ menuconfig PLATFORM_EC_ADC
bool "ADC shim"
default n if ARCH_POSIX
default y
+ imply ADC
help
Enable compilation of the EC ADC module. Once enabled, it is
possible to call platform/ec adc_read_channel() function.
if PLATFORM_EC_ADC
+# Chromium EC provides it's own "adc" command. Disable the Zephyr
+# built-in ADC shell command.
+# TODO(b:188434233) Investigate moving to zephyr adc shell
+config ADC_SHELL
+ default n
+
config PLATFORM_EC_ADC_CMD
bool "ADC host/console command"
default y