feat(sdmmc): supported UHS-I SDR50 (100Mhz) and DDR50 mode

This commit is contained in:
Armando
2024-11-06 12:09:25 +08:00
parent 31dc34a909
commit 04cd469e4a
26 changed files with 650 additions and 131 deletions

View File

@@ -58,7 +58,7 @@ void sdmmc_test_sd_begin(int slot, int width, int freq_khz, int ddr, sdmmc_card_
}
config.max_freq_khz = freq_khz;
bool slot_is_uhs1 = config.flags & SDMMC_HOST_FLAG_UHS1;
bool slot_is_uhs1 = slot_config.flags & SDMMC_SLOT_FLAG_UHS1;
if (width == 1) {
config.flags = SDMMC_HOST_FLAG_1BIT;
@@ -80,7 +80,7 @@ void sdmmc_test_sd_begin(int slot, int width, int freq_khz, int ddr, sdmmc_card_
}
if (slot_is_uhs1) {
config.flags |= SDMMC_HOST_FLAG_UHS1;
slot_config.flags |= SDMMC_SLOT_FLAG_UHS1;
}
#if SOC_SDMMC_IO_POWER_EXTERNAL