SHA256
1
0
forked from pool/u-boot
u-boot/sdhc-2.patch
Ismail Dönmez f41db49412 Accepting request 146560 from Base:System
- add sdhc-1.patch, sdhc-2.patch, sdhc-3.patch:
  * backport upstream sdhc fixes

- update to 2012.10:
  - refresh patches 0006-ARMV7-hardfp-build-fix.patch, mlo-ext2.patch,
    loadaddr-defaults.patch, mx53loco-bootscr.patch

- add sdhc-1.patch, sdhc-2.patch, sdhc-3.patch:
  * backport upstream sdhc fixes

- update to 2012.10:
  - refresh patches 0006-ARMV7-hardfp-build-fix.patch, mlo-ext2.patch,
    loadaddr-defaults.patch, mx53loco-bootscr.patch

- add sdhc-1.patch, sdhc-2.patch, sdhc-3.patch:
  * backport upstream sdhc fixes

- update to 2012.10:
  - refresh patches 0006-ARMV7-hardfp-build-fix.patch, mlo-ext2.patch,
    loadaddr-defaults.patch, mx53loco-bootscr.patch

- add sdhc-1.patch, sdhc-2.patch, sdhc-3.patch:
  * backport upstream sdhc fixes

- update to 2012.10:
  - refresh patches 0006-ARMV7-hardfp-build-fix.patch, mlo-ext2.patch,
    loadaddr-defaults.patch, mx53loco-bootscr.patch

- add sdhc-1.patch, sdhc-2.patch, sdhc-3.patch:
  * backport upstream sdhc fixes

OBS-URL: https://build.opensuse.org/request/show/146560
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=8
2012-12-28 21:50:19 +00:00

35 lines
1.2 KiB
Diff

From: Jaehoon Chung <jh80.chung@samsung.com>
Date: Thu, 20 Sep 2012 20:31:55 +0000 (+0000)
Subject: mmc: sdhci: add the DMA select for SDMA
X-Git-Url: http://git.denx.de/?p=u-boot.git;a=commitdiff_plain;h=804c7f422169212e92530e1ddaf74bf1ca9ebfa1
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>
---
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;