Commit 173c06dfcc5419e38160d7eaf596256df0b4bdd5

Authored by Jean-Jacques Hiblot
Committed by Jaehoon Chung
1 parent e6fa5a5461

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

... ... @@ -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
... ... @@ -598,8 +598,10 @@
598 598 u64 capacity_boot;
599 599 u64 capacity_rpmb;
600 600 u64 capacity_gp[4];
  601 +#ifndef CONFIG_SPL_BUILD
601 602 u64 enh_user_start;
602 603 u64 enh_user_size;
  604 +#endif
603 605 #if !CONFIG_IS_ENABLED(BLK)
604 606 struct blk_desc block_dev;
605 607 #endif