diff options
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | 2018-01-04 15:23:33 +0100 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2018-01-12 18:11:24 +0900 |
commit | 5b2e72f32721484d2dea3d0dcf8c020bf3cbe574 (patch) | |
tree | 3ef275f860354dcbb115081ee0dbe02c436eb68c /include/mmc.h | |
parent | d6400c3f8520bb9a203fe397039279c80f093c27 (diff) | |
download | u-boot-5b2e72f32721484d2dea3d0dcf8c020bf3cbe574.tar.gz u-boot-5b2e72f32721484d2dea3d0dcf8c020bf3cbe574.tar.bz2 u-boot-5b2e72f32721484d2dea3d0dcf8c020bf3cbe574.zip |
mmc: read ssr only if MMC write support is enabled
The content of ssr is useful only for erase operations.
on ARM, removing sd_read_ssr() saves around 300 bytes.
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 e89ba95e5d..f50c714428 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -588,7 +588,9 @@ struct mmc { uint write_bl_len; uint erase_grp_size; /* in 512-byte sectors */ uint hc_wp_grp_size; /* in 512-byte sectors */ +#if CONFIG_IS_ENABLED(MMC_WRITE) struct sd_ssr ssr; /* SD status register */ +#endif u64 capacity; u64 capacity_user; u64 capacity_boot; |