summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/wm8994-regulator.c
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@ti.com>2010-04-22 10:48:32 +0200
committerLiam Girdwood <lrg@slimlogic.co.uk>2010-05-25 11:16:02 +0200
commit3e3d3be79c75a214cd81454bb891980532d8ca89 (patch)
tree650b9ad61377fee33ab68254556c169351fbc476 /drivers/regulator/wm8994-regulator.c
parentmc13783-regulator: fix vaild voltage range checking for mc13783_fixed_regulat... (diff)
downloadlinux-3e3d3be79c75a214cd81454bb891980532d8ca89.tar.xz
linux-3e3d3be79c75a214cd81454bb891980532d8ca89.zip
twl6030: regulator: Remove vsel tables and use formula for calculation
All twl6030 regulators can be programmed from 1.0v to 3.3v with 100mV steps. The below formula can be used to calculate the vsel values to be programmed in the VREG_VOLTAGE registers. Voltage(in mV) = 1000mv + 100mv * (vsel - 1) Ex: if vsel = 0x9, mV = 1000 + 100 * (9 -1) = 1800mV. This patch removes all existing VSEL tables for twl6030 adjustable regulators and just uses the formula directly for vsel calculations after verifing they fall in the allowed range. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Cc: Liam Girdwood <lrg@slimlogic.co.uk> Cc: Samuel Ortiz <sameo@linux.intel.com> Cc: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator/wm8994-regulator.c')
0 files changed, 0 insertions, 0 deletions