Skip to contentSkip to conversation

Davinci Multiblock MMC

PATCH New Alagu Sankar 2 participants 2 messages May 12, 2010 – May 14, 2010 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 3/5 Davinci Multiblock MMC

Multi-block Read/Write support for Davinci. Uses the new CONFIG_MMC_MBLOCK feature under Generic MMC framework.

---
 drivers/mmc/davinci_mmc.c          |    3 +++
 include/configs/davinci_dm355evm.h |    1 +
 include/configs/davinci_dm365evm.h |    1 +
 3 files changed, 5 insertions(+), 0 deletions(-)
drivers/mmc/davinci_mmc.c +3 -0
index 7ec841c..01a84d6 100644
@@ -392,6 +392,9 @@ int davinci_mmc_init(bd_t *bis, struct davinci_mmc *host)
 	mmc->voltages = host->voltages;
 	mmc->host_caps = host->host_caps;
 
+#ifdef CONFIG_MMC_MBLOCK
+	mmc->b_max = DAVINCI_MAX_BLOCKS;
+#endif
 	mmc_register(mmc);
 
 	return 0;
include/configs/davinci_dm355evm.h +1 -0
index 2b7019b..c11f59e 100644
@@ -83,6 +83,7 @@
 #define CONFIG_GENERIC_MMC
 #define CONFIG_DAVINCI_MMC
 #define CONFIG_DAVINCI_MMC_SD1
+#define CONFIG_MMC_MBLOCK
 
 /* USB: OTG connector */
 /* NYET -- #define CONFIG_USB_DAVINCI */
include/configs/davinci_dm365evm.h +1 -0
index bcc2f06..f426b4f 100644
@@ -90,6 +90,7 @@
 #define CONFIG_GENERIC_MMC
 #define CONFIG_DAVINCI_MMC
 #define CONFIG_DAVINCI_MMC_SD1
+#define CONFIG_MMC_MBLOCK
 
 #define PINMUX4_USBDRVBUS_BITCLEAR       0x3000
 #define PINMUX4_USBDRVBUS_BITSET         0x2000
Signature · 1 line
1.6.0.6
#1 lore raw

PATCH 3/5 Davinci Multiblock MMC

Quoted 4 lines · Alagu Sankar

Multi-block Read/Write support for Davinci. ?Uses the new CONFIG_MMC_MBLOCK feature under Generic MMC framework.

You'll have to modify this, as I've gone and eliminated the MBLOCK config option, so now you just have to set b_max

Andy