Enable ADMA support for MMC1 & MMC2 controller on omap4 by updating
"features" of struct omap_mmc_platform_data.

Signed-off-by: Kishore Kadiyala <kishore.kadiy...@ti.com>
Signed-off-by: Venkatraman S <svenk...@ti.com>
Reviewed-by: Sukumar Ghorai <s-gho...@ti.com>
---
 arch/arm/mach-omap2/hsmmc.c |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/hsmmc.c b/arch/arm/mach-omap2/hsmmc.c
index 34272e4..2ac7271 100644
--- a/arch/arm/mach-omap2/hsmmc.c
+++ b/arch/arm/mach-omap2/hsmmc.c
@@ -307,8 +307,17 @@ void __init omap2_hsmmc_init(struct omap2_hsmmc_info 
*controllers)
                else
                        mmc->slots[0].features |= HSMMC_HAS_PBIAS;
 
-               if (cpu_is_omap44xx() && (omap_rev() > OMAP4430_REV_ES1_0))
-                       mmc->slots[0].features |= HSMMC_HAS_UPDATED_RESET;
+               /*
+                * OMAP4: MMC1 & MMC2 controllers support ADMA.
+                * Default works with SDMA.
+                * For ADMA support, update respective BIT in features.
+                */
+               if (cpu_is_omap44xx()) {
+                       mmc->slots[0].features |= HSMMC_HAS_ADMA_SUPPORT;
+                       if (omap_rev() > OMAP4430_REV_ES1_0)
+                               mmc->slots[0].features |=
+                                               HSMMC_HAS_UPDATED_RESET;
+               }
 
                switch (c->mmc) {
                case 1:
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to