omap_hsmmc: Allow for a shared VccQ
authorAdrian Hunter <adrian.hunter@nokia.com>
Mon, 15 Feb 2010 18:03:34 +0000 (10:03 -0800)
committerTony Lindgren <tony@atomide.com>
Mon, 15 Feb 2010 18:03:34 +0000 (10:03 -0800)
commite0eb2424469ec2333885672d3db8bd07d322455d
tree987a225999bbed33b1f456ccdf56fd10ed574019
parent6da20c89af64b75302399369a90b9d50c1a87665
omap_hsmmc: Allow for a shared VccQ

EMMC can have two voltage supplies, Vcc and VccQ
which are implemented in the code as consumer
supplies vmmc and vmmc_aux.

If the regulator that supplies vmmc_aux is shared
with other consumers, then sending it to sleep
will disrupt those consumers.  However, the
TWL4030-family regulators may have OFF remapped
to SLEEP, in which case 'regulator_disable()'
will put the regulator to sleep only when all
consumers are disabled - which is the desired
behaviour.

This patch adds a platform data field to allow
that option.

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/hsmmc.c
arch/arm/mach-omap2/hsmmc.h
arch/arm/plat-omap/include/plat/mmc.h
drivers/mmc/host/omap_hsmmc.c