mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -04:00
mmc: set bus width to 1 and clock to minimum early during initialization
We need to switch back to 1-bit before initialization or SD 2.0 cards will fail to send SCR if we've switched to 4-bit already. Signed-off-by: Ilya Yanok <yanok@emcraft.com>
This commit is contained in:
parent
cff80f2cd1
commit
b86b85e261
@ -859,6 +859,9 @@ int mmc_init(struct mmc *mmc)
|
|||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
mmc_set_bus_width(mmc, 1);
|
||||||
|
mmc_set_clock(mmc, 1);
|
||||||
|
|
||||||
/* Reset the Card */
|
/* Reset the Card */
|
||||||
err = mmc_go_idle(mmc);
|
err = mmc_go_idle(mmc);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user