diff options
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | 2018-01-04 15:23:34 +0100 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2018-01-12 18:11:24 +0900 |
commit | e6fa5a546154a42c4f6662cd8890c238207ce21a (patch) | |
tree | 5c534436ac1743a658189ffdb5f92e26521dcba8 /include/mmc.h | |
parent | 5b2e72f32721484d2dea3d0dcf8c020bf3cbe574 (diff) | |
download | u-boot-midas-e6fa5a546154a42c4f6662cd8890c238207ce21a.tar.gz u-boot-midas-e6fa5a546154a42c4f6662cd8890c238207ce21a.tar.bz2 u-boot-midas-e6fa5a546154a42c4f6662cd8890c238207ce21a.zip |
mmc: compile out erase and write mmc commands if write operations are not enabled
Also remove erase_grp_size and write_bl_len from struct mmc as they are
not used anymore. On ARM, removing them saves about 100 bytes of code
space in SPL.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Diffstat (limited to 'include/mmc.h')
-rw-r--r-- | include/mmc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h index f50c714428..3abeb581ae 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -585,8 +585,10 @@ struct mmc { uint tran_speed; uint legacy_speed; /* speed for the legacy mode provided by the card */ uint read_bl_len; +#if CONFIG_IS_ENABLED(MMC_WRITE) uint write_bl_len; uint erase_grp_size; /* in 512-byte sectors */ +#endif uint hc_wp_grp_size; /* in 512-byte sectors */ #if CONFIG_IS_ENABLED(MMC_WRITE) struct sd_ssr ssr; /* SD status register */ |