summaryrefslogtreecommitdiffstats
path: root/include/dwmmc.h
diff options
context:
space:
mode:
authorhuang lin <hl@rock-chips.com>2015-11-17 14:20:22 +0800
committerSimon Glass <sjg@chromium.org>2015-12-01 08:07:22 -0700
commita65f51b97886f0b1d911eb1ea951fce9efd1700f (patch)
tree8643901d9ba712fb8eb6a5ea67d9a5fe02158472 /include/dwmmc.h
parentf382eb833a06cf3d7cbf17603876a1fabca49144 (diff)
downloadblackbird-obmc-uboot-a65f51b97886f0b1d911eb1ea951fce9efd1700f.tar.gz
blackbird-obmc-uboot-a65f51b97886f0b1d911eb1ea951fce9efd1700f.zip
mmc: dw_mmc: support fifo mode in dwc mmc driver
some soc(rk3036 etc) use dw_mmc but do not have internal dma, so we implement fifo mode to read and write data. Signed-off-by: Lin Huang <hl@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dwmmc.h')
-rw-r--r--include/dwmmc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/dwmmc.h b/include/dwmmc.h
index 25cf42c606..05b0817fe1 100644
--- a/include/dwmmc.h
+++ b/include/dwmmc.h
@@ -105,6 +105,8 @@
/* Status Register */
#define DWMCI_BUSY (1 << 9)
+#define DWMCI_FIFO_MASK 0x1ff
+#define DWMCI_FIFO_SHIFT 17
/* FIFOTH Register */
#define MSIZE(x) ((x) << 28)
@@ -180,6 +182,9 @@ struct dwmci_host {
unsigned int (*get_mmc_clk)(struct dwmci_host *host, uint freq);
struct mmc_config cfg;
+
+ /* use fifo mode to read and write data */
+ bool fifo_mode;
};
struct dwmci_idmac {
OpenPOWER on IntegriCloud