1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

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>
This commit is contained in:
huang lin
2015-11-17 14:20:22 +08:00
committed by Simon Glass
parent f382eb833a
commit a65f51b978
2 changed files with 71 additions and 17 deletions

View File

@@ -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 {