summaryrefslogtreecommitdiff
path: root/drivers/mmc/fsl_esdhc.c
diff options
context:
space:
mode:
authorHaijun.Zhang <Haijun.Zhang@freescale.com>2013-07-01 14:26:01 +0800
committerAndy Fleming <afleming@freescale.com>2013-07-16 18:44:22 -0500
commitb8e5b072255c32b74118339c19f3ffba6a940a48 (patch)
treeac4ce93078755bfabf4c2252db0ccea9f3e90f8c /drivers/mmc/fsl_esdhc.c
parentbaa8841d6cc8a8cb79e0aee2fe1b360dacc05aaf (diff)
downloadu-boot-imx-b8e5b072255c32b74118339c19f3ffba6a940a48.zip
u-boot-imx-b8e5b072255c32b74118339c19f3ffba6a940a48.tar.gz
u-boot-imx-b8e5b072255c32b74118339c19f3ffba6a940a48.tar.bz2
Powerpc: eSDHC: Fix mmc read write err in uboot of T4240QDS board
Fill the right command type when using CMD12 to stop data transfer. Signed-off-by: Haijun Zhang <Haijun.Zhang@freescale.com> CC: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> CC: Scott Wood <scottwood@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'drivers/mmc/fsl_esdhc.c')
-rw-r--r--drivers/mmc/fsl_esdhc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index 973b19f..4e43e3e 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -100,7 +100,7 @@ static uint esdhc_xfertyp(struct mmc_cmd *cmd, struct mmc_data *data)
else if (cmd->resp_type & MMC_RSP_PRESENT)
xfertyp |= XFERTYP_RSPTYP_48;
-#ifdef CONFIG_MX53
+#if defined(CONFIG_MX53) || defined(CONFIG_T4240QDS)
if (cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION)
xfertyp |= XFERTYP_CMDTYP_ABORT;
#endif