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

Fabrice Gasnier fabrice.gasnier at st.com
Mon Nov 12 13:03:57 UTC 2018


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

Changes in v2:
- Add calls to the new functions in test/dm/adc.c as suggested by Simon

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 +++++++++++++++
 test/dm/adc.c            | 36 +++++++++++++++++++++++++
 4 files changed, 160 insertions(+), 4 deletions(-)

-- 
1.9.1



More information about the U-Boot mailing list