regulator: tps65910: Configure correct value for VDDCTRL vout reg
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 7 Mar 2012 11:09:05 +0000 (16:09 +0530)
committerRohan Somvanshi <rsomvanshi@nvidia.com>
Fri, 9 Mar 2012 14:05:29 +0000 (06:05 -0800)
commit103e9ab9ad42da8023f0199b2207b39c729ea9df
treec2fc9a8cee11fd670a972e52f70cb9683da34532
parent651aef2849ce18a0e005492c400d7200e92bbc73
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>
cherry picked from mainline commit
c4632aed3e5b134c55b54af19db49662959384c1

Change-Id: Ifc514a87803191cf796ffc0d75d979476e712dde
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/88830
drivers/regulator/tps65910-regulator.c