OSDN Git Service

regulator: pwm-regulator: Add support for continuous-voltage
authorLee Jones <lee.jones@linaro.org>
Tue, 7 Jul 2015 15:06:51 +0000 (16:06 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 7 Jul 2015 17:58:27 +0000 (18:58 +0100)
commit4773be185a0f7c1c09d8966e100c76f4fa9a3227
treeed1f6334443e81d8003e09ce8ee605f77069d7f5
parent02258b8bcbb98b28064cc829f7062455da398633
regulator: pwm-regulator: Add support for continuous-voltage

The current version of PWM regulator only supports a static table
approach, where pre-calculated values are supplied by the vendor and
obtained via DT.  The continuous-voltage method takes min_uV and
max_uV, and divides the difference between them up into a number of
slices.  The number of slices depend on how large the duty cycle
register is.  This information is provided by a DT property.

As the name alludes, this provides values for a continuous voltage
range between min_uV and max_uV, which has obvious benefits over
either limited voltage possibilities, or the requirement to provide
a large voltage-table.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pwm-regulator.c