]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Powerpc: eSDHC: Fix mmc read write err in uboot of T4240QDS board
authorHaijun.Zhang <Haijun.Zhang@freescale.com>
Mon, 1 Jul 2013 06:26:01 +0000 (14:26 +0800)
committerAndy Fleming <afleming@freescale.com>
Tue, 16 Jul 2013 23:44:22 +0000 (18:44 -0500)
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>
drivers/mmc/fsl_esdhc.c

index 973b19f337b59b9646f58cff06454b0182b85ae5..4e43e3eec94599da9b75527a2d99118bc188c41c 100644 (file)
@@ -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