mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
power: regulator: s2mps11: Fix step for LDO27 and LDO35
LDO27 and LDO35 have 25 mV step, not 50 mV. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Reviewed-by: Lukasz Majewski <lukma@denx.de> Tested-by: Anand Moon <linux.amoon@gmail.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:
parent
6e74c6af32
commit
311eaf7430
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue