diff options
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | 2018-01-04 15:23:35 +0100 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2018-01-12 18:11:24 +0900 |
commit | 173c06dfcc5419e38160d7eaf596256df0b4bdd5 (patch) | |
tree | da28cfa00f4361fc1a775289a52d19beecea06d1 /drivers/mmc/mmc.c | |
parent | e6fa5a546154a42c4f6662cd8890c238207ce21a (diff) | |
download | u-boot-173c06dfcc5419e38160d7eaf596256df0b4bdd5.zip u-boot-173c06dfcc5419e38160d7eaf596256df0b4bdd5.tar.gz u-boot-173c06dfcc5419e38160d7eaf596256df0b4bdd5.tar.bz2 |
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>
Diffstat (limited to 'drivers/mmc/mmc.c')
-rw-r--r-- | drivers/mmc/mmc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 3930aad..c1ba57f 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -2028,6 +2028,7 @@ static int mmc_startup_v4(struct mmc *mmc) mmc->capacity_gp[i] <<= 19; } +#ifndef CONFIG_SPL_BUILD if (part_completed) { mmc->enh_user_size = (ext_csd[EXT_CSD_ENH_SIZE_MULT + 2] << 16) + @@ -2044,6 +2045,7 @@ static int mmc_startup_v4(struct mmc *mmc) if (mmc->high_capacity) mmc->enh_user_start <<= 9; } +#endif /* * Host needs to enable ERASE_GRP_DEF bit if device is |