diff options
| author | Sujit Reddy Thumma <sthumma@codeaurora.org> | 2012-12-04 06:36:19 -0500 |
|---|---|---|
| committer | Chris Ball <cjb@laptop.org> | 2013-02-11 12:51:23 -0500 |
| commit | 41875e388401ad97c33252d5fa39d52e0b70ee9b (patch) | |
| tree | 2f76e0c6660f00920589fde0fed7489d30008523 /include/linux | |
| parent | 51aa66a58494f869f491eedda86c409c50536c14 (diff) | |
mmc: sdio: Fix SDIO 3.0 UHS-I initialization sequence
According to UHS-I initialization sequence for SDIO 3.0 cards,
the host must set bit[24] (S18R) of OCR register during OCR
handshake to know whether the SDIO card is capable of doing
1.8V I/O.
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Reviewed-by: Johan Rudholm <johan.rudholm@stericsson.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mmc/host.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 61a10c17aabd..c89a1bb87fa5 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h | |||
| @@ -434,6 +434,14 @@ static inline int mmc_boot_partition_access(struct mmc_host *host) | |||
| 434 | return !(host->caps2 & MMC_CAP2_BOOTPART_NOACC); | 434 | return !(host->caps2 & MMC_CAP2_BOOTPART_NOACC); |
| 435 | } | 435 | } |
| 436 | 436 | ||
| 437 | static inline int mmc_host_uhs(struct mmc_host *host) | ||
| 438 | { | ||
| 439 | return host->caps & | ||
| 440 | (MMC_CAP_UHS_SDR12 | MMC_CAP_UHS_SDR25 | | ||
| 441 | MMC_CAP_UHS_SDR50 | MMC_CAP_UHS_SDR104 | | ||
| 442 | MMC_CAP_UHS_DDR50); | ||
| 443 | } | ||
| 444 | |||
| 437 | #ifdef CONFIG_MMC_CLKGATE | 445 | #ifdef CONFIG_MMC_CLKGATE |
| 438 | void mmc_host_clk_hold(struct mmc_host *host); | 446 | void mmc_host_clk_hold(struct mmc_host *host); |
| 439 | void mmc_host_clk_release(struct mmc_host *host); | 447 | void mmc_host_clk_release(struct mmc_host *host); |
