mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
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>
This commit is contained in:
parent
5d48e42247
commit
804c7f4221
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue