mmc: sdhci: allow for eMMC 74 clock generation by controller
authorPhilip Rakity <prakity@marvell.com>
Thu, 23 Sep 2010 15:24:32 +0000 (08:24 -0700)
committerChris Ball <cjb@laptop.org>
Sat, 23 Oct 2010 13:11:20 +0000 (21:11 +0800)
commit643a81ff3c5a89ae5c0768f89b29d3e1d08be5c3
tree594e014da8c4dcfc3d029bd7fe328f7e70e4b038
parent3ab9c8dad6444007700b5949ec80cfdc823d31b4
mmc: sdhci: allow for eMMC 74 clock generation by controller

Snippet of code for how adaptation layer should handle the call:
/*
 * eMMC spec calls for the host to send 74 clocks to the card
 * during initialization, right after voltage stabilization.
 * create the clocks manually right here.
 */
void generate_init_clocks_A0(struct sdhci_host *host, u8 power_mode)
{
struct sdhci_mmc_slot *slot = sdhci_priv(host);

if (slot->power_mode == MMC_POWER_UP &&
    power_mode == MMC_POWER_ON) {
/* controller specific code here */
/* slot->power_mode holds previous power setting */
}
slot->power_mode = power_mode;
}

Signed-off-by: Philip Rakity <prakity@marvell.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h