aboutsummaryrefslogtreecommitdiff
path: root/include/dwmmc.h
diff options
context:
space:
mode:
authorSimon Glass2016-05-14 14:03:07 -0600
committerSimon Glass2016-05-27 10:23:09 -0600
commit5e6ff810c3bfeec2e81cc1117a2c1514416d947d (patch)
tree176526153b7382f7270848e542ab8039a2b0076e /include/dwmmc.h
parentef5609c33fc6a8323613a296f08c8efa3161d77f (diff)
dm: mmc: dwmmc: Support CONFIG_BLK
Add support for using driver model for block devices in this driver. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dwmmc.h')
-rw-r--r--include/dwmmc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/dwmmc.h b/include/dwmmc.h
index 05b0817fe1e..335af51fdf4 100644
--- a/include/dwmmc.h
+++ b/include/dwmmc.h
@@ -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 */