aboutsummaryrefslogtreecommitdiff
path: root/include/mmc.h
diff options
context:
space:
mode:
authorSimon Glass2016-05-01 13:52:27 -0600
committerSimon Glass2016-05-17 09:54:43 -0600
commitcb5ec33d9096f1f57c5ccc97d44ca0fb771729f5 (patch)
tree0f18f7524b2d36e0d719c6a875ae225f81123f31 /include/mmc.h
parente17d1143c1a3f6f9bb1b21acb50e5e6a79855023 (diff)
dm: mmc: Add a function to obtain the block device
The MMC block device is contained within struct mmc. But with driver model this will not be the case. Add a function to obtain the block device. We can later implement this for CONFIG_BLK. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/mmc.h')
-rw-r--r--include/mmc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h
index cdb56e7ac14..36449c34ea1 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -498,4 +498,12 @@ int pci_mmc_init(const char *name, struct pci_device_id *mmc_supported);
#define CONFIG_SYS_MMC_MAX_BLK_COUNT 65535
#endif
+/**
+ * mmc_get_blk_desc() - Get the block descriptor for an MMC device
+ *
+ * @mmc: MMC device
+ * @return block device if found, else NULL
+ */
+struct blk_desc *mmc_get_blk_desc(struct mmc *mmc);
+
#endif /* _MMC_H_ */