regulator: palmas: add support for LDO8 tracking mode
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 17 Apr 2013 09:43:13 +0000 (15:13 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Apr 2013 14:05:19 +0000 (15:05 +0100)
commit17c11a7603496949989ed286ed218a9e645b6259
treec6b66dd199b2e0c92deea8dd16ae401d06ad003c
parentaa07f02793ec149d560142f25af0243fff84208b
regulator: palmas: add support for LDO8 tracking mode

LDO8 of Palma device like tps65913 support the tracking mode
on which LDO8 track the SMPS45 voltage when SMPS45 is ON
and use the LDO8.VOLTAGE_SEL register when SMPS45 is OFF.

On track mode, the steps of voltage change for LDO8 is 25mV
where in non-tracking mode it is 50mV. Set the steps accordingly.
Number of voltage count is still same for both the cases.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Graeme Gregory <gg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/palmas-regulator.c
include/linux/mfd/palmas.h