[U-Boot] [PATCH v4 07/16] dm: regulator: add regulator command

Simon Glass sjg at chromium.org
Wed Apr 22 19:09:48 CEST 2015


On 22 April 2015 at 10:30, Simon Glass <sjg at chromium.org> wrote:
> Hi Przemyslaw,
>
> On 20 April 2015 at 12:07, Przemyslaw Marczak <p.marczak at samsung.com> wrote:
>> 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 at samsung.com>
>> ---
>> Changes v3:
>> - new file
>> - Kconfig entry
>>
>> Changes V4:
>> - cmd regulator: move platdata to uc pdata
>> - cmd_regulator: includes cleanup
>> - cmd_regulator: add get_curr_dev_and_pl() check type
>> - move config name: CONFIG_DM_REGULATOR_CMD to CONFIG_CMD_REGULATOR
>> - common/Kconfig - cleanup
>> ---
>>  common/Kconfig         |  22 +++
>>  common/Makefile        |   1 +
>>  common/cmd_regulator.c | 403 +++++++++++++++++++++++++++++++++++++++++++++++++
>>  3 files changed, 426 insertions(+)
>>  create mode 100644 common/cmd_regulator.c
>
> Acked-by: Simon Glass <sjg at chromium.org>
>
> I have a few nits that could be dealt with by a follow-on patch.

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list