summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Santa Cruz <[email protected]>2014-12-23 10:50:23 +0100
committerPantelis Antoniou <[email protected]>2015-01-19 17:02:29 +0200
commitbeb98a1496c1606f443d274c23cb97e831bf3a2e (patch)
tree292675fd9e9b8860584e19e5f953d9523bc9b4b7
parenta7f852b6885dc7b89741b1e76921e160b9c9877b (diff)
mmc: display size and start of eMMC enhanced user data area in mmcinfo
This adds output to show the eMMC enhanced user data area size and offset along with the partition sizes in mmcinfo's output. Signed-off-by: Diego Santa Cruz <[email protected]>
-rw-r--r--common/cmd_mmc.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c
index 8c03e583e5c..bcb03eaa90a 100644
--- a/common/cmd_mmc.c
+++ b/common/cmd_mmc.c
@@ -97,10 +97,15 @@ static void print_mmcinfo(struct mmc *mmc)
if (!IS_SD(mmc) && mmc->version >= MMC_VERSION_4_41) {
bool has_enh = (mmc->part_support & ENHNCD_SUPPORT) != 0;
+ bool usr_enh = has_enh && (mmc->part_attr & EXT_CSD_ENH_USR);
puts("User Capacity: ");
- print_size(mmc->capacity_user,
- has_enh && (mmc->part_attr & EXT_CSD_ENH_USR) ?
- " ENH\n" : "\n");
+ print_size(mmc->capacity_user, usr_enh ? " ENH\n" : "\n");
+ if (usr_enh) {
+ puts("User Enhanced Start: ");
+ print_size(mmc->enh_user_start, "\n");
+ puts("User Enhanced Size: ");
+ print_size(mmc->enh_user_size, "\n");
+ }
puts("Boot Capacity: ");
print_size(mmc->capacity_boot, has_enh ? " ENH\n" : "\n");
puts("RPMB Capacity: ");