aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/ab8500.c
diff options
context:
space:
mode:
authorBengt Jonsson <bengt.g.jonsson@stericsson.com>2010-12-10 05:08:41 -0500
committerLiam Girdwood <lrg@slimlogic.co.uk>2011-01-12 09:33:02 -0500
commit65e03ed2d0cd49259c527e488b94e93fcf23f62e (patch)
tree445c6d00df4e5cc7eae840e689e77be28c64c646 /drivers/regulator/ab8500.c
parentcb189b07d57b574cc14382e2130960b0a0193c23 (diff)
regulators: Fixed errors in ab8500 register mapping
For INTCORE and TVOUT regulators, the low power register bit is included in the mask so that enable will set the regulator in normal (high power) mode. ANAMIC1, ANAMIC2, DMIC regulator settings are swapped with each other so that the correct regulator gets enabled/disabled. ANA regulator register address is corrected. Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Acked-by: Linus Walleij <linus.walleij@stericsson.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator/ab8500.c')
-rw-r--r--drivers/regulator/ab8500.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c
index 5670775f6c9b..4efe3cf25083 100644
--- a/drivers/regulator/ab8500.c
+++ b/drivers/regulator/ab8500.c
@@ -330,19 +330,19 @@ static struct ab8500_regulator_info ab8500_regulator_info[] = {
330 ldo_vauxn_voltages, ARRAY_SIZE(ldo_vauxn_voltages)), 330 ldo_vauxn_voltages, ARRAY_SIZE(ldo_vauxn_voltages)),
331 AB8500_LDO(AUX3, 1100, 3300, 0x04, 0x0a, 0x3, 0x1, 0x04, 0x21, 0xf, 331 AB8500_LDO(AUX3, 1100, 3300, 0x04, 0x0a, 0x3, 0x1, 0x04, 0x21, 0xf,
332 ldo_vauxn_voltages, ARRAY_SIZE(ldo_vauxn_voltages)), 332 ldo_vauxn_voltages, ARRAY_SIZE(ldo_vauxn_voltages)),
333 AB8500_LDO(INTCORE, 1100, 3300, 0x03, 0x80, 0x4, 0x4, 0x03, 0x80, 0x38, 333 AB8500_LDO(INTCORE, 1100, 3300, 0x03, 0x80, 0x44, 0x4, 0x03, 0x80, 0x38,
334 ldo_vintcore_voltages, ARRAY_SIZE(ldo_vintcore_voltages)), 334 ldo_vintcore_voltages, ARRAY_SIZE(ldo_vintcore_voltages)),
335 335
336 /* 336 /*
337 * Fixed Voltage LDOs 337 * Fixed Voltage LDOs
338 * name, o/p uV, ctrl bank, ctrl reg, enable, disable 338 * name, o/p uV, ctrl bank, ctrl reg, enable, disable
339 */ 339 */
340 AB8500_FIXED_LDO(TVOUT, 2000, 0x03, 0x80, 0x2, 0x2), 340 AB8500_FIXED_LDO(TVOUT, 2000, 0x03, 0x80, 0x82, 0x2),
341 AB8500_FIXED_LDO(AUDIO, 2000, 0x03, 0x83, 0x2, 0x2), 341 AB8500_FIXED_LDO(AUDIO, 2000, 0x03, 0x83, 0x2, 0x2),
342 AB8500_FIXED_LDO(ANAMIC1, 2050, 0x03, 0x83, 0x4, 0x4), 342 AB8500_FIXED_LDO(ANAMIC1, 2050, 0x03, 0x83, 0x08, 0x08),
343 AB8500_FIXED_LDO(ANAMIC2, 2050, 0x03, 0x83, 0x8, 0x8), 343 AB8500_FIXED_LDO(ANAMIC2, 2050, 0x03, 0x83, 0x10, 0x10),
344 AB8500_FIXED_LDO(DMIC, 1800, 0x03, 0x83, 0x10, 0x10), 344 AB8500_FIXED_LDO(DMIC, 1800, 0x03, 0x83, 0x04, 0x04),
345 AB8500_FIXED_LDO(ANA, 1200, 0x03, 0x83, 0xc, 0x4), 345 AB8500_FIXED_LDO(ANA, 1200, 0x04, 0x06, 0xc, 0x4),
346}; 346};
347 347
348static inline struct ab8500_regulator_info *find_regulator_info(int id) 348static inline struct ab8500_regulator_info *find_regulator_info(int id)