]> git.sur5r.net Git - u-boot/blobdiff - include/dwmmc.h
MIPS: provide a default u-boot-spl.lds
[u-boot] / include / dwmmc.h
index 25cf42c606c993331ee82cfc314df27524b108d3..335af51fdf42e72f4e19058cfdff4a1f29dfe520 100644 (file)
 
 /* Status Register */
 #define DWMCI_BUSY             (1 << 9)
+#define DWMCI_FIFO_MASK                0x1ff
+#define DWMCI_FIFO_SHIFT       17
 
 /* FIFOTH Register */
 #define MSIZE(x)               ((x) << 28)
@@ -178,8 +180,12 @@ struct dwmci_host {
         * @freq:       Frequency the host is trying to achieve
         */
        unsigned int (*get_mmc_clk)(struct dwmci_host *host, uint freq);
-
+#ifndef CONFIG_BLK
        struct mmc_config cfg;
+#endif
+
+       /* use fifo mode to read and write data */
+       bool fifo_mode;
 };
 
 struct dwmci_idmac {
@@ -218,5 +224,9 @@ static inline u8 dwmci_readb(struct dwmci_host *host, int reg)
        return readb(host->ioaddr + reg);
 }
 
+void dwmci_setup_cfg(struct mmc_config *cfg, const char *name, int buswidth,
+                    uint caps, u32 max_clk, u32 min_clk);
+int dwmci_bind(struct udevice *dev, struct mmc *mmc, struct mmc_config *cfg);
+
 int add_dwmci(struct dwmci_host *host, u32 max_clk, u32 min_clk);
 #endif /* __DWMMC_HW_H */