diff options
author | Kishore Kadiyala <kishore.kadiyala@ti.com> | 2009-12-02 19:34:55 +0530 |
---|---|---|
committer | Santosh Shilimkar <santosh.shilimkar@ti.com> | 2009-12-02 19:59:37 +0530 |
commit | d901e13f5bda858ce1b5badb8947c02000687b70 (patch) | |
tree | 950b64c3b8b091cd93eced818bef79aa04835f56 | |
parent | ee7fd78d38b9e6084748e43825daecc6f0da8838 (diff) |
MMC: Use SDMA as default
This patch makes SDMA support for MMC1 & MMC2 controllers as a default
since ADMA support has some software BUG.
Signed-off-by: Kishore Kadiyala <kishore.kadiyala@ti.com>
-rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 748612a1827c..96f595954604 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -1087,7 +1087,7 @@ static int __init omap_mmc_probe(struct platform_device *pdev) struct mmc_omap_host *host = NULL; struct resource *res; int ret = 0, irq; - int ctrlr_caps; + /* int ctrlr_caps;*/ if (pdata == NULL) { dev_err(&pdev->dev, "Platform Data is missing\n"); @@ -1126,7 +1126,8 @@ static int __init omap_mmc_probe(struct platform_device *pdev) host->slot_id = 0; host->mapbase = res->start; host->base = ioremap(host->mapbase, SZ_4K); - + host->dma_type = DMA_TYPE_SDMA; +#if FIXME_ADMA ctrlr_caps = OMAP_HSMMC_READ(host->base, CAPA); if (ctrlr_caps & CAPA_ADMA_SUPPORT) { host->dma_type = DMA_TYPE_ADMA; @@ -1139,6 +1140,7 @@ static int __init omap_mmc_probe(struct platform_device *pdev) host->dma_type = DMA_TYPE_SDMA; dev_dbg(mmc_dev(host->mmc), "Enabling SDMA\n"); } +#endif platform_set_drvdata(pdev, host); INIT_WORK(&host->mmc_carddetect_work, mmc_omap_detect); |