Skip to contentSkip to conversation

MMC: add MMC_VERSION_5_0

PATCH New Markus Niebel 4 participants 4 messages Nov 18, 2014 – Dec 12, 2014 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MMC: add MMC_VERSION_5_0

From: Markus Niebel <[email protected]>

---
 drivers/mmc/mmc.c | 3 +++
 include/mmc.h     | 1 +
 2 files changed, 4 insertions(+)
drivers/mmc/mmc.c +3 -0
index 24b0989..144c7f7 100644
@@ -1001,6 +1001,9 @@ static int mmc_startup(struct mmc *mmc)
 		case 6:
 			mmc->version = MMC_VERSION_4_5;
 			break;
+		case 7:
+			mmc->version = MMC_VERSION_5_0;
+			break;
 		}
 
 		/*
include/mmc.h +1 -0
index cb91565..51ee24b 100644
@@ -31,6 +31,7 @@
 #define MMC_VERSION_4_3		(MMC_VERSION_MMC | 0x403)
 #define MMC_VERSION_4_41	(MMC_VERSION_MMC | 0x429)
 #define MMC_VERSION_4_5		(MMC_VERSION_MMC | 0x405)
+#define MMC_VERSION_5_0		(MMC_VERSION_MMC | 0x500)
 
 #define MMC_MODE_HS		(1 << 0)
 #define MMC_MODE_HS_52MHz	(1 << 1)
Signature · 1 line
2.1.1
#1 lore raw

PATCH 1/1 MMC: add MMC_VERSION_5_0

Quoted 35 lines · Markus Niebel

From: Markus Niebel <[email protected]>

---
 drivers/mmc/mmc.c | 3 +++
 include/mmc.h     | 1 +
 2 files changed, 4 insertions(+)
drivers/mmc/mmc.c +3 -0
index 24b0989..144c7f7 100644
@@ -1001,6 +1001,9 @@ static int mmc_startup(struct mmc *mmc)
 		case 6:
 			mmc->version = MMC_VERSION_4_5;
 			break;
+		case 7:
+			mmc->version = MMC_VERSION_5_0;
+			break;
 		}
 
 		/*
include/mmc.h +1 -0
index cb91565..51ee24b 100644
@@ -31,6 +31,7 @@
 #define MMC_VERSION_4_3		(MMC_VERSION_MMC | 0x403)
 #define MMC_VERSION_4_41	(MMC_VERSION_MMC | 0x429)
 #define MMC_VERSION_4_5		(MMC_VERSION_MMC | 0x405)
+#define MMC_VERSION_5_0		(MMC_VERSION_MMC | 0x500)
 
 #define MMC_MODE_HS		(1 << 0)
 #define MMC_MODE_HS_52MHz	(1 << 1)
#2 lore raw

PATCH 1/1 MMC: add MMC_VERSION_5_0

In reply to Markus Niebel

Am 18.11.2014 um 15:13 schrieb Markus Niebel:

Ping - any comments?

Quoted 35 lines

From: Markus Niebel <[email protected]>

---
 drivers/mmc/mmc.c | 3 +++
 include/mmc.h     | 1 +
 2 files changed, 4 insertions(+)
drivers/mmc/mmc.c +3 -0
index 24b0989..144c7f7 100644
@@ -1001,6 +1001,9 @@ static int mmc_startup(struct mmc *mmc)
 		case 6:
 			mmc->version = MMC_VERSION_4_5;
 			break;
+		case 7:
+			mmc->version = MMC_VERSION_5_0;
+			break;
 		}
 
 		/*
include/mmc.h +1 -0
index cb91565..51ee24b 100644
@@ -31,6 +31,7 @@
 #define MMC_VERSION_4_3		(MMC_VERSION_MMC | 0x403)
 #define MMC_VERSION_4_41	(MMC_VERSION_MMC | 0x429)
 #define MMC_VERSION_4_5		(MMC_VERSION_MMC | 0x405)
+#define MMC_VERSION_5_0		(MMC_VERSION_MMC | 0x500)
 
 #define MMC_MODE_HS		(1 << 0)
 #define MMC_MODE_HS_52MHz	(1 << 1)
#3 lore raw

PATCH 1/1 MMC: add MMC_VERSION_5_0

In reply to Markus Niebel

Hi Markus,

Quoted 39 lines · Markus Niebel

From: Markus Niebel <[email protected]>

---
drivers/mmc/mmc.c | 3 +++
include/mmc.h | 1 +

2 files changed, 4 insertions(+)
drivers/mmc/mmc.c +3 -0
index 24b0989..144c7f7 100644
@@ -1001,6 +1001,9 @@ static int mmc_startup(struct mmc *mmc)
 		case 6:
 			mmc->version = MMC_VERSION_4_5;
 			break;
+		case 7:
+			mmc->version = MMC_VERSION_5_0;
+			break;
 		}
 
 		/*
include/mmc.h +1 -0
index cb91565..51ee24b 100644
@@ -31,6 +31,7 @@
 #define MMC_VERSION_4_3		(MMC_VERSION_MMC | 0x403)
 #define MMC_VERSION_4_41	(MMC_VERSION_MMC | 0x429)
 #define MMC_VERSION_4_5		(MMC_VERSION_MMC | 0x405)
+#define MMC_VERSION_5_0		(MMC_VERSION_MMC | 0x500)
 
 #define MMC_MODE_HS		(1 << 0)
 #define MMC_MODE_HS_52MHz	(1 << 1)
Signature · 1 line
2.1.1

Applied, thanks.

? Pantelis