summaryrefslogtreecommitdiff
path: root/include/mmc.h
diff options
context:
space:
mode:
authorRaffaele Recalcati <raffaele.recalcati@bticino.it>2011-03-11 02:01:13 +0000
committerAndy Fleming <afleming@freescale.com>2011-04-13 07:09:04 -0500
commit31cacbabf07ce00f5250b9826d5e48d4bbee1f94 (patch)
tree6a74675a8854534415fda66327ffd944299a6972 /include/mmc.h
parent5d4fc8d907ed12844b9c9190601fef2919f3ec25 (diff)
downloadu-boot-imx-31cacbabf07ce00f5250b9826d5e48d4bbee1f94.zip
u-boot-imx-31cacbabf07ce00f5250b9826d5e48d4bbee1f94.tar.gz
u-boot-imx-31cacbabf07ce00f5250b9826d5e48d4bbee1f94.tar.bz2
mmc: SEND_OP_COND considers card capabilities (voltage)
The first SEND_OP_COND (CMD1) command added is used to ask card capabilities. After it an AND operation is done between card capabilities and host capabilities (at the moment only for the voltage field). Finally the correct value is sent to the MMC, waiting that the card exits from busy state. Signed-off-by: Raffaele Recalcati <raffaele.recalcati@bticino.it> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'include/mmc.h')
-rw-r--r--include/mmc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h
index ed084c8..e0a56d9 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -96,6 +96,8 @@
#define OCR_BUSY 0x80000000
#define OCR_HCS 0x40000000
+#define OCR_VOLTAGE_MASK 0x007FFF80
+#define OCR_ACCESS_MODE 0x60000000
#define MMC_STATUS_MASK (~0x0206BF7F)
#define MMC_STATUS_RDY_FOR_DATA (1<<8)