Commit 6b57c0155cb78d15b0d93b2c7f66ad9536862476

Authored by Axel Lin
Committed by Mark Brown
1 parent ea851f4f08

regulator: tps65023: Fix mask for LDOs output voltage select control

According to the datasheet:
The LDO_CTRL registers are used to set the output voltage of LDO1 and LDO2.
LDO_CTRL[7] and LDO_CTRL[3] are reserved and should always be written to 0.

Thus the mask for TPS65023_LDO_1 and TPS65023_LDO_2 should be 0x07 and 0x70
respectively.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/regulator/tps65023-regulator.c
... ... @@ -71,7 +71,7 @@
71 71  
72 72 /* LDO_CTRL bitfields */
73 73 #define TPS65023_LDO_CTRL_LDOx_SHIFT(ldo_id) ((ldo_id)*4)
74   -#define TPS65023_LDO_CTRL_LDOx_MASK(ldo_id) (0x0F << ((ldo_id)*4))
  74 +#define TPS65023_LDO_CTRL_LDOx_MASK(ldo_id) (0x07 << ((ldo_id)*4))
75 75  
76 76 /* Number of step-down converters available */
77 77 #define TPS65023_NUM_DCDC 3