mmc: provide a select_hwpart implementation for get_device()
This enables specifying which eMMC HW partition to target for any U-Boot command that uses the generic get_partition() function to parse its command-line arguments. Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
committed by
Pantelis Antoniou
parent
336b6f9048
commit
d235628434
@@ -39,7 +39,11 @@ static const struct block_drvr block_drvr[] = {
|
||||
{ .name = "usb", .get_dev = usb_stor_get_dev, },
|
||||
#endif
|
||||
#if defined(CONFIG_MMC)
|
||||
{ .name = "mmc", .get_dev = mmc_get_dev, },
|
||||
{
|
||||
.name = "mmc",
|
||||
.get_dev = mmc_get_dev,
|
||||
.select_hwpart = mmc_select_hwpart,
|
||||
},
|
||||
#endif
|
||||
#if defined(CONFIG_SYSTEMACE)
|
||||
{ .name = "ace", .get_dev = systemace_get_dev, },
|
||||
|
||||
Reference in New Issue
Block a user