Commit 173c06dfcc5419e38160d7eaf596256df0b4bdd5
Committed by
Jaehoon Chung
1 parent
e6fa5a5461
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
mmc: don't read the size of eMMC enhanced user data area in SPL
This information is only used by the "mmc info" command. On ARM removing this information from SPL saves about 140 of code space. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Showing 2 changed files with 4 additions and 0 deletions Side-by-side Diff
drivers/mmc/mmc.c
... | ... | @@ -2028,6 +2028,7 @@ |
2028 | 2028 | mmc->capacity_gp[i] <<= 19; |
2029 | 2029 | } |
2030 | 2030 | |
2031 | +#ifndef CONFIG_SPL_BUILD | |
2031 | 2032 | if (part_completed) { |
2032 | 2033 | mmc->enh_user_size = |
2033 | 2034 | (ext_csd[EXT_CSD_ENH_SIZE_MULT + 2] << 16) + |
... | ... | @@ -2044,6 +2045,7 @@ |
2044 | 2045 | if (mmc->high_capacity) |
2045 | 2046 | mmc->enh_user_start <<= 9; |
2046 | 2047 | } |
2048 | +#endif | |
2047 | 2049 | |
2048 | 2050 | /* |
2049 | 2051 | * Host needs to enable ERASE_GRP_DEF bit if device is |
include/mmc.h