mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
@@ -956,10 +956,20 @@ 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
|
||||
*
|
||||
|
Reference in New Issue
Block a user