[U-Boot] [PATCH v2 2/9] power: regulator: s2mps11: Fix step for LDO27 and LDO35

Lukasz Majewski lukma at denx.de
Fri Feb 15 06:55:25 UTC 2019


On Wed, 13 Feb 2019 17:46:41 +0100
Krzysztof Kozlowski <krzk at kernel.org> wrote:

> LDO27 and LDO35 have 25 mV step, not 50 mV.
> 
> Signed-off-by: Krzysztof Kozlowski <krzk at kernel.org>
> ---
>  drivers/power/regulator/s2mps11_regulator.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/power/regulator/s2mps11_regulator.c
> b/drivers/power/regulator/s2mps11_regulator.c index
> ced504eb1476..723d27f67c9a 100644 ---
> a/drivers/power/regulator/s2mps11_regulator.c +++
> b/drivers/power/regulator/s2mps11_regulator.c @@ -346,6 +346,8 @@
> static int s2mps11_ldo_hex2volt(int ldo, int hex) case 11:
>  	case 22:
>  	case 23:
> +	case 27:
> +	case 35:
>  		uV = hex * S2MPS11_LDO_STEP + S2MPS11_LDO_UV_MIN;
>  		break;
>  	default:
> @@ -366,6 +368,8 @@ static int s2mps11_ldo_volt2hex(int ldo, int uV)
>  	case 11:
>  	case 22:
>  	case 23:
> +	case 27:
> +	case 35:
>  		hex = (uV - S2MPS11_LDO_UV_MIN) / S2MPS11_LDO_STEP;
>  		break;
>  	default:

Reviewed-by: Lukasz Majewski <lukma at denx.de>


Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190215/f93ebed3/attachment.sig>


More information about the U-Boot mailing list