summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKevin Liu <kliu5@marvell.com>2015-03-23 17:57:00 -0500
committerPantelis Antoniou <pantelis.antoniou@konsulko.com>2015-05-05 12:29:42 +0300
commit5e1c23cd392f17be9d135e504d48925a1cd92aa2 (patch)
tree12192e46d3b07d0a1690579af19e586ebde28f05 /drivers
parent5a20397b007e9c1482997cf4418639e9ba3df5fe (diff)
downloadu-boot-imx-5e1c23cd392f17be9d135e504d48925a1cd92aa2.zip
u-boot-imx-5e1c23cd392f17be9d135e504d48925a1cd92aa2.tar.gz
u-boot-imx-5e1c23cd392f17be9d135e504d48925a1cd92aa2.tar.bz2
mmc: sdhci: add timeout setting for response busy command
Timeout interrupt also work for response busy command(R1b) like cmd38/cmd6. So need to set it accordingly. Current code only set timeout for data command. Signed-off-by: Kevin Liu <kliu5@marvell.com> Signed-off-by: Rob Herring <robh@kernel.org> Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/sdhci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index 5332e61..75556a3 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -213,6 +213,8 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd,
SDHCI_BLOCK_SIZE);
sdhci_writew(host, data->blocks, SDHCI_BLOCK_COUNT);
sdhci_writew(host, mode, SDHCI_TRANSFER_MODE);
+ } else if (cmd->resp_type & MMC_RSP_BUSY) {
+ sdhci_writeb(host, 0xe, SDHCI_TIMEOUT_CONTROL);
}
sdhci_writel(host, cmd->cmdarg, SDHCI_ARGUMENT);