]> asedeno.scripts.mit.edu Git - linux.git/commit
mmc: sdhci-omap: Add card_busy host ops
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 5 Feb 2018 12:50:15 +0000 (18:20 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 5 Mar 2018 08:00:56 +0000 (09:00 +0100)
commit20ea26a1e3a513dadafcd35531c6d289820f60cb
tree8a6fff7dbd43e31b2b252c09fd7d950bc965b351
parent300df508c806c0b0446f075bc7658f0fefa1b701
mmc: sdhci-omap: Add card_busy host ops

Add card_busy host ops in sdhci_omap to check card busy status.

The voltage switching sequence for AM572x platform is mentioned
in Figure 25-48. eMMC/SD/SDIO Power Switching Procedure of
AM572x Sitara Processors Silicon Revision 2.0, 1.1 TRM
(SPRUHZ6I - October 2014–Revised April 2017 [1]).

In the voltage switching sequence, CLKEXTFREE bit in MMCHS_CON
should also be set after switching to 1.8v which is also taken
care in the card_busy ops.

[1] -> http://www.ti.com/lit/ug/spruhz6i/spruhz6i.pdf

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-omap.c