]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: tps65910: Configure correct value for VDDCTRL vout reg
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 7 Mar 2012 11:09:05 +0000 (16:39 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 7 Mar 2012 19:28:37 +0000 (19:28 +0000)
commit61985c91c6867a79b397d1613da4686698706d73
treeccf9f4aee9a57f52536aab2db929494c32d63b5a
parenta66a4cb2bcf3de211da27e06e6a28bd7f23fc32a
regulator: tps65910: Configure correct value for VDDCTRL vout reg

As per datasheet, the voltage output is defined as
from SEL[6:0] = 3 to 64 (dec)
Vout= (SEL[6:0] × 12.5 mV + 562.5 mV)

The list_voltage returns the vout as
    600mV +  selector * 12.5mV

and so equivalent VSEL is selector + 3.
Adding 3 on selector when configuring VSEL register for
VDDCTRL output.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/tps65910-regulator.c