aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-04-24 23:31:14 -0600
committerTom Rini <trini@konsulko.com>2022-04-25 10:00:04 -0400
commitb8aa463e9ba96e66fc24e0d7cd0e07e9bc7bc839 (patch)
tree0519efa9d1848cf08c896534997757dc44c9c9dc /include
parent31aefaf89a5b5b259244a2ca83862e8d172a03a9 (diff)
downloadu-boot-b8aa463e9ba96e66fc24e0d7cd0e07e9bc7bc839.zip
u-boot-b8aa463e9ba96e66fc24e0d7cd0e07e9bc7bc839.tar.gz
u-boot-b8aa463e9ba96e66fc24e0d7cd0e07e9bc7bc839.tar.bz2
bootstd: mmc: Add a bootdev driver
Add a bootdev driver for MMC. It mostly just calls the bootdev helper function. Add a function to obtain the block device for an MMC controller. Fix up the comment for mmc_get_blk_desc() while we are here. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/mmc.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/mmc.h b/include/mmc.h
index 6bdcce8..9b4dc68 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -956,11 +956,21 @@ int mmc_get_env_dev(void);
* mmc_get_blk_desc() - Get the block descriptor for an MMC device
*
* @mmc: MMC device
- * Return: block device if found, else NULL
+ * Return: block descriptor if found, else NULL
*/
struct blk_desc *mmc_get_blk_desc(struct mmc *mmc);
/**
+ * mmc_get_blk() - Get the block device for an MMC device
+ *
+ * @dev: MMC device
+ * @blkp: Returns pointer to probed block device on sucesss
+ *
+ * Return: 0 on success, -ve on error
+ */
+int mmc_get_blk(struct udevice *dev, struct udevice **blkp);
+
+/**
* mmc_send_ext_csd() - read the extended CSD register
*
* @mmc: MMC device