diff options
author | Stephen Warren <swarren@nvidia.com> | 2014-05-07 12:19:02 -0600 |
---|---|---|
committer | Pantelis Antoniou <panto@antoniou-consulting.com> | 2014-05-23 12:11:44 +0300 |
commit | d235628434657cf1eba58821445cb5ad88e10763 (patch) | |
tree | 19c19b00b626b01e7aa59177fd3668e08c3b5eca /disk | |
parent | 336b6f90482f23b149323b698c05c2713fe55701 (diff) | |
download | u-boot-d235628434657cf1eba58821445cb5ad88e10763.tar.gz |
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>
Diffstat (limited to 'disk')
-rw-r--r-- | disk/part.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/disk/part.c b/disk/part.c index 5e10cae015..2827089d8d 100644 --- a/disk/part.c +++ b/disk/part.c @@ -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, }, |