• P
    mmc: sdhci: allow for eMMC 74 clock generation by controller · 643a81ff
    Philip Rakity 提交于
    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: NPhilip Rakity <prakity@marvell.com>
    Signed-off-by: NChris Ball <cjb@laptop.org>
    643a81ff
sdhci.c 50.0 KB