[U-Boot] [PATCH v2 3/6] power: as3722: fix ldo_get/set_enable for ldo index bigger than 7

Simon Glass sjg at chromium.org
Sun Aug 13 21:35:38 UTC 2017


On 8 August 2017 at 06:42, Marcel Ziswiler <marcel at ziswiler.com> wrote:
> From: Marcel Ziswiler <marcel.ziswiler at toradex.com>
>
> Fix ldo_get_enable() and ldo_set_enable() functions for LDOs with an
> index > 7. Turns out there are actually two separate AS3722_LDO_CONTROL
> registers AS3722_LDO_CONTROL0 and AS3722_LDO_CONTROL1. Actually make use
> of both. While at it also actually use the enable parameter of the
> ldo_set_enable() function which now truly allows disabling as opposed to
> only enabling LDOs.
>
> Signed-off-by: Marcel Ziswiler <marcel.ziswiler at toradex.com>
> ---
>
> Changes in v2:
> - New bug fix.
>
>  drivers/power/regulator/as3722_regulator.c | 16 ++++++++++++++--
>  include/power/as3722.h                     |  3 ++-
>  2 files changed, 16 insertions(+), 3 deletions(-)

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


More information about the U-Boot mailing list