summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/arch-omap4/mmc_host_def.h
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2012-01-30 11:22:25 +0000
committerAndy Fleming <afleming@freescale.com>2012-02-15 17:42:22 -0600
commita7778f8fbee098c78b1fa1e1331313a7e217fb30 (patch)
tree67e8af7f8cf6b53b27c5b5af416540c141015b3b /arch/arm/include/asm/arch-omap4/mmc_host_def.h
parent9a3aae22edf1eda6326cc51c28631ca5c23b7706 (diff)
downloadtalos-obmc-uboot-a7778f8fbee098c78b1fa1e1331313a7e217fb30.tar.gz
talos-obmc-uboot-a7778f8fbee098c78b1fa1e1331313a7e217fb30.zip
omap_hsmmc: Wait for CMDI to be clear
Before we can send a command we need both the DATI (command inhibit on mmc_dat line) bit and CMDI (command inhibit on mmc_cmd line) are clear. The previous behavior of only checking on DATI was insufficient on some cards and incorrect behavior in any case. This makes the code check for both bits being clear and makes the error print more clear as to what happened. DATI_CMDDIS is removed as it was unused elsewhere in the code and stood for 'DATI is set, cmds are disabled still'. Fix originally spotted by Peter Bigot. Tested-by: Peter A. Bigot <bigotp@acm.org> Tested-by: Robert Nelson <robertcnelson@gmail.com> Signed-off-by: Tom Rini <trini@ti.com> Tested-by: Andreas Müller <schnitzeltony@googlemail.com>
Diffstat (limited to 'arch/arm/include/asm/arch-omap4/mmc_host_def.h')
-rw-r--r--arch/arm/include/asm/arch-omap4/mmc_host_def.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-omap4/mmc_host_def.h b/arch/arm/include/asm/arch-omap4/mmc_host_def.h
index 74439c9d9b..ce1bce1fdd 100644
--- a/arch/arm/include/asm/arch-omap4/mmc_host_def.h
+++ b/arch/arm/include/asm/arch-omap4/mmc_host_def.h
@@ -107,7 +107,7 @@ struct hsmmc {
#define INDEX_MASK (0x3f << 24)
#define INDEX(i) (i << 24)
#define DATI_MASK (0x1 << 1)
-#define DATI_CMDDIS (0x1 << 1)
+#define CMDI_MASK (0x1 << 0)
#define DTW_1_BITMODE (0x0 << 1)
#define DTW_4_BITMODE (0x1 << 1)
#define DTW_8_BITMODE (0x1 << 5) /* CON[DW8]*/
OpenPOWER on IntegriCloud