mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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 <Diego.SantaCruz@spinetix.com>
This commit is contained in:
parent
a7f852b688
commit
beb98a1496
1 changed files with 8 additions and 3 deletions
|
@ -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: ");
|
||||
|
|
Loading…
Reference in a new issue