[U-Boot] [PATCH 0/4] Add adc uclass's channel mask and conversion helpers and enhance adc cmd

Simon Glass sjg at chromium.org
Fri Oct 19 03:25:22 UTC 2018


Hi Fabrice,

On 11 October 2018 at 10:00, Fabrice Gasnier <fabrice.gasnier at st.com> wrote:
> This series adds ADC uclass's helpers to
> - retrieve the ADC device available channels
> - ease conversions to standard unit (µV)
> - enhance 'adc' command to print information on available ADC channels
> - enhance 'adc' command to print conversion result both as raw and µV
> - enhance 'adc' command to scan once several or all channels
>
>
> Fabrice Gasnier (4):
>   dm: adc: add uclass's mask and conversion helpers
>   cmd: adc: add info on channel mask
>   cmd: adc: print single conversion also in uV
>   cmd: adc: add an option to scan some or all available channels
>
>  cmd/adc.c                | 70 +++++++++++++++++++++++++++++++++++++++++++++---
>  drivers/adc/adc-uclass.c | 37 +++++++++++++++++++++++++
>  include/adc.h            | 21 +++++++++++++++
>  3 files changed, 124 insertions(+), 4 deletions(-)

Please also update test/dm/adc.c to call your new functions.

Regards,
Simon


More information about the U-Boot mailing list