Skip to contentSkip to conversation

mmc: check the revision for sd3.0

PATCH In review Jaehoon Chung 3 participants 3 messages Jan 30, 2013 – Apr 17, 2013 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: check the revision for sd3.0

Support to check whether the SD3.0 or not.

---
 drivers/mmc/mmc.c |    2 ++
 include/mmc.h     |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
drivers/mmc/mmc.c +2 -0
index 72e8ce6..b704d8b 100644
@@ -759,6 +759,8 @@ retry_scr:
 			break;
 		case 2:
 			mmc->version = SD_VERSION_2;
+			if ((mmc->scr[0] >> 15) & 0x1)
+				mmc->version = SD_VERSION_3;
 			break;
 		default:
 			mmc->version = SD_VERSION_1_0;
include/mmc.h +1 -0
index a13e2bd..7c8f325 100644
@@ -30,6 +30,7 @@
 #include <linux/compiler.h>
 
 #define SD_VERSION_SD	0x20000
+#define SD_VERSION_3	(SD_VERSION_SD | 0x30)
 #define SD_VERSION_2	(SD_VERSION_SD | 0x20)
 #define SD_VERSION_1_0	(SD_VERSION_SD | 0x10)
 #define SD_VERSION_1_10	(SD_VERSION_SD | 0x1a)
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/1 mmc: check the revision for sd3.0

Dear Jaehoon,

Quoted 11 lines

Jaehoon Chung <jh80.chung <at> samsung.com> writes:

Support to check whether the SD3.0 or not.

Signed-off-by Jaehoon Chung <jh80.chung <at> samsung.com>
Signed-off-by Kyungmin Park <kyungmin.park <at> samsung.com>
---
 drivers/mmc/mmc.c |    2 ++
 include/mmc.h     |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

Note:
The change only reflects in the output of mmcinfo.
The functionality of mmc_send_if_cond() and sd_send_op_cond() is unaffected.

All the best,
Rommel

#2 lore raw
In reply to Jaehoon Chung
Quoted 5 lines · Jaehoon Chung

Support to check whether the SD3.0 or not.

Applied to u-boot/master with a fixup to apply / be correct with the other patch also applied, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130417/74d33562/attachment.pgp>