[PATCH 2/4] mmc: add eMMC v5 and V5.1 detection support

Sascha Hauer s.hauer at pengutronix.de
Thu May 18 05:01:13 PDT 2017


From: Peter Seiderer <ps.report at gmx.net>

Just add the defines.

Signed-off-by: Peter Seiderer <ps.report at gmx.net>
---
 drivers/mci/mci-core.c | 6 ++++++
 include/mci.h          | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
index b6ef506540..07911d43d7 100644
--- a/drivers/mci/mci-core.c
+++ b/drivers/mci/mci-core.c
@@ -770,6 +770,12 @@ static void mci_correct_version_from_ext_csd(struct mci *mci)
 		case 6:
 			mci->version = MMC_VERSION_4_5;
 			break;
+		case 7:
+			mci->version = MMC_VERSION_5_0;
+			break;
+		case 8:
+			mci->version = MMC_VERSION_5_1;
+			break;
 		}
 	}
 }
diff --git a/include/mci.h b/include/mci.h
index eb942e62b8..bc7d9c95b2 100644
--- a/include/mci.h
+++ b/include/mci.h
@@ -54,6 +54,8 @@
 #define MMC_VERSION_4_3		(MMC_VERSION_MMC | 0x430)
 #define MMC_VERSION_4_41	(MMC_VERSION_MMC | 0x441)
 #define MMC_VERSION_4_5		(MMC_VERSION_MMC | 0x450)
+#define MMC_VERSION_5_0		(MMC_VERSION_MMC | 0x500)
+#define MMC_VERSION_5_1		(MMC_VERSION_MMC | 0x510)
 
 #define MMC_CAP_SPI			(1 << 0)
 #define MMC_CAP_4_BIT_DATA		(1 << 1)
-- 
2.11.0




More information about the barebox mailing list