From 31cacbabf07ce00f5250b9826d5e48d4bbee1f94 Mon Sep 17 00:00:00 2001 From: Raffaele Recalcati Date: Fri, 11 Mar 2011 02:01:13 +0000 Subject: 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 Signed-off-by: Andy Fleming --- include/mmc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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) -- cgit v1.1