diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/commonlib/storage/mmc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commonlib/storage/mmc.c b/src/commonlib/storage/mmc.c index ad7861704f..ca067054e0 100644 --- a/src/commonlib/storage/mmc.c +++ b/src/commonlib/storage/mmc.c @@ -338,6 +338,10 @@ int mmc_change_freq(struct storage_media *media) if (err) return err; + /* Determine if the device supports enhanced strobe */ + media->caps |= ext_csd[EXT_CSD_STROBE_SUPPORT] + ? DRVR_CAP_ENHANCED_STROBE : 0; + if ((ctrlr->caps & DRVR_CAP_HS400) && (ext_csd[EXT_CSD_CARD_TYPE] & MMC_HS400)) err = mmc_select_hs400(media); @@ -419,10 +423,6 @@ int mmc_update_capacity(struct storage_media *media) if (ext_csd[EXT_CSD_REV] < 2) return 0; - /* Determine if the device supports enhanced strobe */ - media->caps |= ext_csd[EXT_CSD_STROBE_SUPPORT] - ? DRVR_CAP_ENHANCED_STROBE : 0; - /* Determine the eMMC device information */ media->partition_config = ext_csd[EXT_CSD_PART_CONF] & EXT_CSD_PART_ACCESS_MASK; |