sysdrv/source/uboot/u-boot/drivers/mmc/mmc.c : Fix the issue where some Micro SD cards fail to boot

Signed-off-by: eng29 <eng29@luckfox.com>
This commit is contained in:
eng29 2025-03-03 21:22:09 +08:00
parent 9ba3f24487
commit 09581decf2
1 changed files with 5 additions and 0 deletions

View File

@ -2288,6 +2288,11 @@ int mmc_start_init(struct mmc *mmc)
/* Test for SD version 2 */
err = mmc_send_if_cond(mmc);
if (err) {
mmc_go_idle(mmc);
mmc_get_blk_desc(mmc)->hwpart = 0;
mmc_send_if_cond(mmc);
}
/* Now try to get the SD card's operating condition */
err = sd_send_op_cond(mmc);