regulator: Support voltage offsets to compensate for drops in system
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 8 May 2011 21:13:37 +0000 (22:13 +0100)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Mon, 9 May 2011 12:51:25 +0000 (13:51 +0100)
commitbf44b94b8dd0e9f2a0636c11bd9b2435a5eaedcb
treeb38384d29207396197fbcdcfb403f5c02044e81d
parent91e7b7554bb76e52aa8b914453e2a0ac52b2412c
regulator: Support voltage offsets to compensate for drops in system

Some systems, particularly physically large systems used for early
prototyping, may experience substantial voltage drops between the regulator
and the consumers as a result of long traces in the system. With these
systems voltages may need to be set higher than requested in order to
ensure reliable system operation.

Allow systems to work around such hardware issues by allowing constraints
to supply an offset to be applied to any requested and reported voltages.
This is not ideal, especially since the voltage drop may be load dependant,
but is sufficient for most affected systems, it is not expected to be used
in production hardware. The offset is applied after all constraint
processing so constraints should be specified in terms of consumer values
not physically configured values.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/core.c
include/linux/regulator/machine.h