Commit 7486831d authored by Baolin Wang's avatar Baolin Wang Committed by Ulf Hansson

mmc: sdhci-sprd: Implement the get_max_timeout_count() interface

Implement the get_max_timeout_count() interface to set the Spredtrum SD
host controller actual maximum timeout count.
Signed-off-by: default avatarBaolin Wang <baolin.wang@linaro.org>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent ebd88a38
...@@ -285,6 +285,12 @@ static void sdhci_sprd_hw_reset(struct sdhci_host *host) ...@@ -285,6 +285,12 @@ static void sdhci_sprd_hw_reset(struct sdhci_host *host)
usleep_range(300, 500); usleep_range(300, 500);
} }
static unsigned int sdhci_sprd_get_max_timeout_count(struct sdhci_host *host)
{
/* The Spredtrum controller actual maximum timeout count is 1 << 31 */
return 1 << 31;
}
static struct sdhci_ops sdhci_sprd_ops = { static struct sdhci_ops sdhci_sprd_ops = {
.read_l = sdhci_sprd_readl, .read_l = sdhci_sprd_readl,
.write_l = sdhci_sprd_writel, .write_l = sdhci_sprd_writel,
...@@ -296,6 +302,7 @@ static struct sdhci_ops sdhci_sprd_ops = { ...@@ -296,6 +302,7 @@ static struct sdhci_ops sdhci_sprd_ops = {
.reset = sdhci_reset, .reset = sdhci_reset,
.set_uhs_signaling = sdhci_sprd_set_uhs_signaling, .set_uhs_signaling = sdhci_sprd_set_uhs_signaling,
.hw_reset = sdhci_sprd_hw_reset, .hw_reset = sdhci_sprd_hw_reset,
.get_max_timeout_count = sdhci_sprd_get_max_timeout_count,
}; };
static void sdhci_sprd_request(struct mmc_host *mmc, struct mmc_request *mrq) static void sdhci_sprd_request(struct mmc_host *mmc, struct mmc_request *mrq)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment