diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2012-09-20 20:31:55 +0000 |
---|---|---|
committer | Andy Fleming <afleming@freescale.com> | 2012-10-22 02:53:36 -0500 |
commit | 804c7f422169212e92530e1ddaf74bf1ca9ebfa1 (patch) | |
tree | 384a0cb41a2e699c05935073d714c5333a80c7d3 | |
parent | 5d48e4224791611498456908fc23a845cc5b4ed7 (diff) | |
download | u-boot-imx-804c7f422169212e92530e1ddaf74bf1ca9ebfa1.zip u-boot-imx-804c7f422169212e92530e1ddaf74bf1ca9ebfa1.tar.gz u-boot-imx-804c7f422169212e92530e1ddaf74bf1ca9ebfa1.tar.bz2 |
mmc: sdhci: add the DMA select for SDMA
In host-control register, DMA select bit field is present.
BUt in sdhci.c, didn't select for DMA.
if set CONFIG_MMC_SDMA, we need to set SDMA-select bit.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
-rw-r--r-- | drivers/mmc/sdhci.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 9329874..15b4686 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -82,6 +82,13 @@ static int sdhci_transfer_data(struct sdhci_host *host, struct mmc_data *data, unsigned int start_addr) { unsigned int stat, rdy, mask, timeout, block = 0; +#ifdef CONFIG_MMC_SDMA + unsigned char ctrl; + ctrl = sdhci_readl(host, SDHCI_HOST_CONTROL); + ctrl &= ~SDHCI_CTRL_DMA_MASK; + ctrl |= SDHCI_CTRL_SDMA; + sdhci_writel(host, ctrl, SDHCI_HOST_CONTROL); +#endif timeout = 1000000; rdy = SDHCI_INT_SPACE_AVAIL | SDHCI_INT_DATA_AVAIL; |