diff options
author | Denis Brockus <dbrockus@google.com> | 2021-05-14 10:28:55 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-17 20:39:25 +0000 |
commit | 9d9bfdae1eea3dcb1c29dd6b39a65e3c795afcb4 (patch) | |
tree | fbd1046a668624336722fd21ce2681f0a18b5caa | |
parent | e0c3fcb2ab4e85fb6202767f44f3ce0d248183e4 (diff) | |
download | chrome-ec-9d9bfdae1eea3dcb1c29dd6b39a65e3c795afcb4.tar.gz |
zephyr: adc: PLATFORM_EC_ADC and ADC_shell
tie CONFIG_PLATFORM_EC_ADC to CONFIG_ADC
Disable the zephyr adc_shell command as there is
already one present in Chromium EC
BUG=none
BRANCH=none
TEST=submit build should verify it is ok
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: I3db30f674e917e8b55a90cec2b746939374d6767
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2895790
Tested-by: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
Commit-Queue: Yuval Peress <peress@chromium.org>
-rw-r--r-- | zephyr/Kconfig.adc | 7 |
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 |