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:
parent
9ba3f24487
commit
09581decf2
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue