aboutsummaryrefslogtreecommitdiff
path: root/include/mmc.h
diff options
context:
space:
mode:
authorJean-Jacques Hiblot2018-01-04 15:23:36 +0100
committerJaehoon Chung2018-01-12 18:11:24 +0900
commitb7a6e2c9c396c35596f467f5187da937306ddeb8 (patch)
treec93b663ab415a0b97e5622451cb965c6625f1f42 /include/mmc.h
parent173c06dfcc5419e38160d7eaf596256df0b4bdd5 (diff)
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 'include/mmc.h')
-rw-r--r--include/mmc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h
index cd068b9429b..a46eaed7469 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -589,7 +589,9 @@ struct mmc {
uint write_bl_len;
uint erase_grp_size; /* in 512-byte sectors */
#endif
+#if CONFIG_IS_ENABLED(MMC_HW_PARTITIONING)
uint hc_wp_grp_size; /* in 512-byte sectors */
+#endif
#if CONFIG_IS_ENABLED(MMC_WRITE)
struct sd_ssr ssr; /* SD status register */
#endif