]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP3: mmc-twl4030 uses regulator framework
authorDavid Brownell <dbrownell@users.sourceforge.net>
Thu, 28 May 2009 21:04:03 +0000 (14:04 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 28 May 2009 21:04:03 +0000 (14:04 -0700)
commit6d01353237f3d1bf107a1c45084069eb1f039414
tree23b79b4078535b91ac9d4471916fec08e68fbe18
parent8d25cd052088dfe74166d5da1610c58baf5547ac
ARM: OMAP3: mmc-twl4030 uses regulator framework

Decouple the HSMMC glue from the twl4030 as the only
regulator provider, using the regulator framework instead.
This makes the glue's "mmc-twl4030" name become a complete
misnomer ... this code could probably all migrate into the
HSMMC driver now.

Tested on 3430SDP (SD and low-voltage MMC) and Beagle (SD),
plus some other boards (including Overo) after they were
converted to set up MMC regulators properly.

Eventually all boards should just associate a regulator with
each MMC controller they use.  In some cases (Overo MMC2 and
Pandora MMC3, at least) that would be a fixed-voltage regulator
with no real software control.  As a temporary hack (pending
regulator-next updates to make the "fixed.c" regulator become
usable) there's a new ocr_mask field for those boards.

Patch updated with a fix for disabling vcc_aux by
Adrian Hunter <adrian.hunter@nokia.com>

Cc: Pierre Ossman <drzeus-list@drzeus.cx>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/mmc-twl4030.c
arch/arm/mach-omap2/mmc-twl4030.h
drivers/mmc/host/omap_hsmmc.c