]> git.sur5r.net Git - u-boot/blobdiff - include/dwmmc.h
MIPS: provide a default u-boot-spl.lds
[u-boot] / include / dwmmc.h
index 05b0817fe1e1834b10bef69f892bd3fdc3d083c6..335af51fdf42e72f4e19058cfdff4a1f29dfe520 100644 (file)
@@ -180,8 +180,9 @@ 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;
@@ -223,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 */