summaryrefslogtreecommitdiff
path: root/cmd/mmc.c
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2018-01-04 15:23:36 +0100
committerJaehoon Chung <jh80.chung@samsung.com>2018-01-12 18:11:24 +0900
commitb7a6e2c9c396c35596f467f5187da937306ddeb8 (patch)
treec93b663ab415a0b97e5622451cb965c6625f1f42 /cmd/mmc.c
parent173c06dfcc5419e38160d7eaf596256df0b4bdd5 (diff)
downloadu-boot-b7a6e2c9c396c35596f467f5187da937306ddeb8.tar.gz
mmc: remove hc_wp_grp_size from struct mmc if not needed
hc_wp_grp_size is needed only if hardware partitionning is used. On ARM removing it saves about 30 bytes of code space. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Diffstat (limited to 'cmd/mmc.c')
-rw-r--r--cmd/mmc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/mmc.c b/cmd/mmc.c
index 65601d82c3..58fdc36f08 100644
--- a/cmd/mmc.c
+++ b/cmd/mmc.c
@@ -54,8 +54,10 @@ static void print_mmcinfo(struct mmc *mmc)
bool has_enh = (mmc->part_support & ENHNCD_SUPPORT) != 0;
bool usr_enh = has_enh && (mmc->part_attr & EXT_CSD_ENH_USR);
+#if CONFIG_IS_ENABLED(MMC_HW_PARTITIONING)
puts("HC WP Group Size: ");
print_size(((u64)mmc->hc_wp_grp_size) << 9, "\n");
+#endif
puts("User Capacity: ");
print_size(mmc->capacity_user, usr_enh ? " ENH" : "");