summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.adc
Commit message (Collapse)AuthorAgeFilesLines
* adc: Allow runtime config of adc_channelsCaveh Jalali2021-08-271-0/+14
| | | | | | | | | | | | | | | This adds the CONFIG_ADC_CHANNELS_RUNTIME_CONFIG config option to allow the adc_channels array to be tweaked at runtime. BRANCH=none BUG=b:183452273,b:181271666 TEST=buildall passes Change-Id: I1241012b6e36c19baa7fe80853a6c6de4affeefa Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3116990 Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: adc: PLATFORM_EC_ADC and ADC_shellDenis Brockus2021-05-171-0/+7
| | | | | | | | | | | | | | | | | | 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>
* zephyr: add shim ADCDawid Niedzwiecki2021-02-091-0/+41
Add ADC shim to connect the platform/ec ADC API to the Zephyr ADC API. Generate needed global variables/types: enum adc_channel and adc_channels from dts. Once ADC_CMD config is enabled, it replaces the "adc" Zephyr console function. The shim assues only ADC_0 module. More specific channel options can be added to named-adc.yaml e.g. shift or gain. BUG=b:175881324 BRANCH=none TEST=build Zephyr TEST=Run "adc" command, it should return current levels in mv of configured channels Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: Ic9c03223e611f916bebc1296cbee614401098994 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2673418 Reviewed-by: Simon Glass <sjg@chromium.org>