kernel-fxtec-pro1x/include/linux/mmc
Linus Walleij 04566831a7 mmc: Aggressive clock gating framework
This patch modifies the MMC core code to optionally call the set_ios()
operation on the driver with the clock frequency set to 0 (gate) after
a grace period of at least 8 MCLK cycles, then restore it (ungate)
before any new request. This gives the driver the option to shut down
the MCI clock to the MMC/SD card when the clock frequency is 0, i.e.
the core has stated that the MCI clock does not need to be generated.

It is inspired by existing clock gating code found in the OMAP and
Atmel drivers and brings this up to the host abstraction.  Gating is
performed before and after any MMC request.

This patchset implements this for the MMCI/PL180 MMC/SD host controller,
but it should be simple to switch OMAP/Atmel over to using this instead.

mmc_set_{gated,ungated}() add variable protection to the state holders
for the clock gating code.  This is particularly important when ordinary
.set_ios() calls would race with the .set_ios() call resulting from a
delayed gate operation.

Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Reviewed-by: Chris Ball <cjb@laptop.org>
Tested-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
2011-01-08 22:48:03 -05:00
..
card.h mmc: MMC 4.4 DDR support 2010-10-23 21:11:16 +08:00
core.h mmc: Fixes for Dual Data Rate (DDR) support 2010-10-23 21:11:16 +08:00
host.h mmc: Aggressive clock gating framework 2011-01-08 22:48:03 -05:00
mmc.h mmc: MMC 4.4 DDR support 2010-10-23 21:11:16 +08:00
pm.h
sd.h mmc: add erase, secure erase, trim and secure trim operations 2010-08-12 08:43:30 -07:00
sdhci-pltfm.h mmc: sdhci_pltfm: pass more data on custom init call 2010-10-23 21:11:22 +08:00
sdhci-spear.h
sdhci.h mmc: sdhci: split up sdhci.h for sdhci-pltfm users 2010-10-23 21:11:17 +08:00
sdio.h mmc: avoid getting CID on SDIO-only cards 2010-09-09 18:57:22 -07:00
sdio_func.h
sdio_ids.h Bluetooth: Support SDIO devices that are AMP controllers 2010-10-12 12:44:51 -03:00
sh_mmcif.h Merge branch 'common/mmcif' into rmobile/mmcif 2010-11-30 14:42:55 +09:00