From 9d9bfdae1eea3dcb1c29dd6b39a65e3c795afcb4 Mon Sep 17 00:00:00 2001 From: Denis Brockus Date: Fri, 14 May 2021 10:28:55 -0600 Subject: 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 Change-Id: I3db30f674e917e8b55a90cec2b746939374d6767 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2895790 Tested-by: Denis Brockus Auto-Submit: Denis Brockus Reviewed-by: Yuval Peress Commit-Queue: Yuval Peress --- zephyr/Kconfig.adc | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.1