]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: regulator: add regulator command
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Mon, 20 Apr 2015 18:07:44 +0000 (20:07 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:40:24 +0000 (22:40 +0200)
commit28dbcc15dcd0a2a1541ab8dce59e3f20bd59d43a
tree303c363af2f49f0a926d2eed27b0b6c873b63357
parenta0d5fa9cba669fdc174b8017616af3a368859acb
dm: regulator: add regulator command

This command is based on driver model regulator's API.
The user interface provides:
- list UCLASS regulator devices
- show or [set] operating regulator device
- print constraints info
- print operating status
- print/[set] voltage value [uV] (force)
- print/[set] current value [uA]
- print/[set] operating mode id
- enable the regulator output
- disable the regulator output

The 'force' option can be used for setting the value which exceeds
the constraints min/max limits.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
common/Kconfig
common/Makefile
common/cmd_regulator.c [new file with mode: 0644]