]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: palmas: Fix off-by-one for ramp_delay and register value mapping
authorAxel Lin <axel.lin@ingics.com>
Mon, 22 Apr 2013 10:22:49 +0000 (18:22 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 22 Apr 2013 12:34:42 +0000 (13:34 +0100)
commit99c4edc5f28282f5b42ef18dc6de19ca44fc690c
treea454a1ef105ca99b009cdf74d9a88ccb291662d9
parent220b9a751faf6d496d9ff7084669ffce0cbfbbfb
regulator: palmas: Fix off-by-one for ramp_delay and register value mapping

Datasheet says:
Time Step (TSTEP) selection, when changing the output voltage, the new value is
reached through successive voltage steps (if not bypassed). The equivalent
programmable slew rate of the output voltage is:

TSTEP[1:0]: 00 Jump (no slope control)
TSTEP[1:0]: 01 10mV/us
TSTEP[1:0]: 10 5mV/us (default)
TSTEP[1:0]: 11 2.5mV/us

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/palmas-regulator.c