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

Fabrice Gasnier fabrice.gasnier at st.com
Thu Oct 11 16:00:40 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


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(-)

-- 
1.9.1



More information about the U-Boot mailing list