summaryrefslogtreecommitdiff
path: root/drivers/mmc/davinci_mmc.c
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-05-07 10:09:00 -0400
committerTom Rini <trini@ti.com>2013-05-07 10:09:00 -0400
commit7e7501f4bb0d550fbc6960e7e2fb2bc84d9795cf (patch)
tree10ee78027dbf2d1e6e0d4d454c85d40ef6c7d73c /drivers/mmc/davinci_mmc.c
parent4f4eab4d14b181c3a9447c75fd2b41b9d0d761e4 (diff)
parent88227a1d8a734cfd09ac43609abec8b66c2d2610 (diff)
downloadu-boot-imx-7e7501f4bb0d550fbc6960e7e2fb2bc84d9795cf.zip
u-boot-imx-7e7501f4bb0d550fbc6960e7e2fb2bc84d9795cf.tar.gz
u-boot-imx-7e7501f4bb0d550fbc6960e7e2fb2bc84d9795cf.tar.bz2
Merge branch 'master' of git://www.denx.de/git/u-boot-mmc
Diffstat (limited to 'drivers/mmc/davinci_mmc.c')
-rw-r--r--drivers/mmc/davinci_mmc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/davinci_mmc.c b/drivers/mmc/davinci_mmc.c
index e2379e3..5aa2184 100644
--- a/drivers/mmc/davinci_mmc.c
+++ b/drivers/mmc/davinci_mmc.c
@@ -285,8 +285,11 @@ dmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
*/
if (bytes_left > fifo_bytes)
dmmc_wait_fifo_status(regs, 0x4a);
- else if (bytes_left == fifo_bytes)
+ else if (bytes_left == fifo_bytes) {
dmmc_wait_fifo_status(regs, 0x40);
+ if (cmd->cmdidx == MMC_CMD_SEND_EXT_CSD)
+ udelay(600);
+ }
for (i = 0; bytes_left && (i < fifo_words); i++) {
cmddata = get_val(&regs->mmcdrr);