mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-23 13:36:05 +00:00
feat(st): enable MMC_FLAG_SD_CMD6 for SD-cards
This flag allows switching to High-Speed mode on SD-cards. The gain is ~44ms when using SP_min, and ~55ms with OP-TEE. Change-Id: Ic396c6a14201580b5e5627e6174b85b437b87cae Signed-off-by: Yann Gautier <yann.gautier@st.com>
This commit is contained in:
parent
3deebd4ccf
commit
53d5b8ff50
1 changed files with 4 additions and 0 deletions
|
@ -221,6 +221,10 @@ static void boot_mmc(enum mmc_device_type mmc_dev_type,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mmc_dev_type != MMC_IS_EMMC) {
|
||||||
|
params.flags = MMC_FLAG_SD_CMD6;
|
||||||
|
}
|
||||||
|
|
||||||
params.device_info = &mmc_info;
|
params.device_info = &mmc_info;
|
||||||
if (stm32_sdmmc2_mmc_init(¶ms) != 0) {
|
if (stm32_sdmmc2_mmc_init(¶ms) != 0) {
|
||||||
ERROR("SDMMC%u init failed\n", boot_interface_instance);
|
ERROR("SDMMC%u init failed\n", boot_interface_instance);
|
||||||
|
|
Loading…
Add table
Reference in a new issue