U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/4] Add adc uclass's channel mask and conversion helpers and enhance adc cmd
@ 2018-11-12 13:03 Fabrice Gasnier
  2018-11-12 13:03 ` [U-Boot] [PATCH v2 1/4] dm: adc: add uclass's mask and conversion helpers Fabrice Gasnier
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Fabrice Gasnier @ 2018-11-12 13:03 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-11-20 21:48 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-12 13:03 [U-Boot] [PATCH v2 0/4] Add adc uclass's channel mask and conversion helpers and enhance adc cmd Fabrice Gasnier
2018-11-12 13:03 ` [U-Boot] [PATCH v2 1/4] dm: adc: add uclass's mask and conversion helpers Fabrice Gasnier
2018-11-13  3:31   ` Simon Glass
2018-11-20 21:47   ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-11-12 13:03 ` [U-Boot] [PATCH v2 2/4] cmd: adc: add info on channel mask Fabrice Gasnier
2018-11-13  3:31   ` Simon Glass
2018-11-20 21:47   ` [U-Boot] [U-Boot,v2,2/4] " Tom Rini
2018-11-12 13:04 ` [U-Boot] [PATCH v2 3/4] cmd: adc: print single conversion also in uV Fabrice Gasnier
2018-11-13  3:31   ` Simon Glass
2018-11-20 21:47   ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-11-12 13:04 ` [U-Boot] [PATCH v2 4/4] cmd: adc: add an option to scan some or all available channels Fabrice Gasnier
2018-11-13  3:32   ` Simon Glass
2018-11-20 21:48   ` [U-Boot] [U-Boot, v2, " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox