aboutsummaryrefslogtreecommitdiff
path: root/include/sdhci.h
diff options
context:
space:
mode:
authorFaiz Abbas2019-04-16 23:06:57 +0530
committerPeng Fan2019-05-03 20:43:50 +0800
commit6d6af20571d1f64b823ca0116654f326c3ac495f (patch)
treecd4f7f88b22a429e1d4f5100de6552a224653f6f /include/sdhci.h
parentda8e1f3cd413423563ee37f915944b76f9b862db (diff)
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>
Diffstat (limited to 'include/sdhci.h')
-rw-r--r--include/sdhci.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sdhci.h b/include/sdhci.h
index bef37df982e..c66ec6ca254 100644
--- a/include/sdhci.h
+++ b/include/sdhci.h
@@ -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