mmc: don't read the size of eMMC enhanced user data area in SPL
[oweals/u-boot.git] / drivers / mmc / mmc.c
index 3930aad13ba90912e65f7f0498f616a59d579c2b..c1ba57f86dd4a8b8be87f7a374c6579581ee69be 100644 (file)
@@ -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