[PATCH 4/4] omap4: hsmmc: enable ADMA for MMC1 & MMC2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Kishore Kadiyala <kishore.kadiyala@xxxxxx>
Signed-off-by: Venkatraman S <svenkatr@xxxxxx>
Reviewed-by: Sukumar Ghorai <s-ghorai@xxxxxx>
---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux