]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
regulator: twl4030 regulators
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 8 Feb 2009 18:37:06 +0000 (10:37 -0800)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 31 Mar 2009 08:56:25 +0000 (09:56 +0100)
commitfa16a5c13a2fc1433cfff38a083b4f8c5138d022
tree81f2e5ce5a1c1b7bd4de59e695b5e423126f3ec2
parent3b2a6061afe6fcc44437cd5ec641b0aeb2825ee3
regulator: twl4030 regulators

Support most of the LDO regulators in the twl4030 family chips.
In the case of LDOs supporting MMC/SD, the voltage controls are
used; but in most other cases, the regulator framework is only
used to enable/disable a supplies, conserving power when a given
voltage rail is not needed.

The drivers/mfd/twl4030-core.c code already sets up the various
regulators according to board-specific configuration, and knows
that some chips don't provide the full set of voltage rails.

The omitted regulators are intended to be under hardware control,
such as during the hardware-mediated system powerup, powerdown,
and suspend states.  Unless/until software hooks are known to
be safe, they won't be exported here.

These regulators implement the new get_status() operation, but
can't realistically implement get_mode(); the status output is
effectively the result of a vote, with the relevant hardware
inputs not exposed.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/Kconfig
drivers/regulator/Makefile
drivers/regulator/twl4030-regulator.c [new file with mode: 0644]
include/linux/i2c/twl4030.h