summaryrefslogtreecommitdiff
path: root/include/dwmmc.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-06-13 05:30:23 (GMT)
committerSimon Glass <sjg@chromium.org>2016-07-11 20:06:44 (GMT)
commit691272fe5236b1b5ac02c7c1a1fb8fe85fd78d97 (patch)
treedbbfc07b80310febee40402d14c84bb7d3d3986b /include/dwmmc.h
parent8ca51e51c182699ebc64b10660db3e03cb43cb54 (diff)
downloadu-boot-691272fe5236b1b5ac02c7c1a1fb8fe85fd78d97.tar.xz
dm: mmc: dwmmc: Support CONFIG_DM_MMC_OPS
Add support to dwmmc for using driver model for MMC operations. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dwmmc.h')
-rw-r--r--include/dwmmc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/dwmmc.h b/include/dwmmc.h
index 0199def..6aebe96 100644
--- a/include/dwmmc.h
+++ b/include/dwmmc.h
@@ -293,4 +293,13 @@ 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 /* !CONFIG_BLK */
+#ifdef CONFIG_DM_MMC_OPS
+/* Export the operations to drivers */
+int dwmci_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,
+ struct mmc_data *data);
+int dwmci_set_ios(struct udevice *dev);
+int dwmci_probe(struct udevice *dev);
+extern const struct dm_mmc_ops dm_dwmci_ops;
+#endif
+
#endif /* __DWMMC_HW_H */