[U-Boot] [PATCH 3/5] Davinci Multiblock MMC

Alagu Sankar alagusankar at embwise.com
Wed May 12 11:48:19 CEST 2010


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

Signed-off-by: Alagu Sankar <alagusankar at embwise.com>
---
 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(-)

diff --git a/drivers/mmc/davinci_mmc.c b/drivers/mmc/davinci_mmc.c
index 7ec841c..01a84d6 100644
--- a/drivers/mmc/davinci_mmc.c
+++ b/drivers/mmc/davinci_mmc.c
@@ -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;
diff --git a/include/configs/davinci_dm355evm.h b/include/configs/davinci_dm355evm.h
index 2b7019b..c11f59e 100644
--- a/include/configs/davinci_dm355evm.h
+++ b/include/configs/davinci_dm355evm.h
@@ -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 */
diff --git a/include/configs/davinci_dm365evm.h b/include/configs/davinci_dm365evm.h
index bcc2f06..f426b4f 100644
--- a/include/configs/davinci_dm365evm.h
+++ b/include/configs/davinci_dm365evm.h
@@ -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
-- 
1.6.0.6



More information about the U-Boot mailing list