1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

mmc: sdhci: Move DMA handling to prepare_dma() function

In preparation for addition of ADMA2 support, cleanup SDMA handling by
moving it to a new sdhci_prepare_dma() function. Also add a flags field
in sdhci_host to indicate if DMA is enabled.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
This commit is contained in:
Faiz Abbas
2019-04-16 23:06:57 +05:30
committed by Peng Fan
parent da8e1f3cd4
commit 6d6af20571
2 changed files with 53 additions and 42 deletions

View File

@@ -272,6 +272,9 @@ struct sdhci_host {
uint voltages;
struct mmc_config cfg;
dma_addr_t start_addr;
int flags;
#define USE_SDMA (0x1 << 0)
};
#ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS