[U-Boot] [PATCH v2] power: regulator: Add support for gpio regulators

Simon Glass sjg at chromium.org
Mon Sep 19 02:59:04 CEST 2016


On 15 September 2016 at 05:34, Keerthy <j-keerthy at ti.com> wrote:
> Add support for gpio regulators. As of now this driver caters
> to gpio regulators with one gpio. Supports setting voltage values to gpio
> regulators and retrieving the values.
>
> Signed-off-by: Keerthy <j-keerthy at ti.com>
> ---
>
> Changes in v2:
>
>   * Added states and voltages as part of plat data to have
>     a generic state to voltage mapping removing any assumptions.
>
>  drivers/power/regulator/Kconfig          |   8 ++
>  drivers/power/regulator/Makefile         |   1 +
>  drivers/power/regulator/gpio-regulator.c | 137 +++++++++++++++++++++++++++++++
>  include/power/regulator.h                |   1 +
>  4 files changed, 147 insertions(+)
>  create mode 100644 drivers/power/regulator/gpio-regulator.c

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list