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:
Yann Gautier 2019-08-14 16:44:48 +02:00
parent 3deebd4ccf
commit 53d5b8ff50

View file

@ -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(&params) != 0) { if (stm32_sdmmc2_mmc_init(&params) != 0) {
ERROR("SDMMC%u init failed\n", boot_interface_instance); ERROR("SDMMC%u init failed\n", boot_interface_instance);