Skip to content

Commit f9996ae

Browse files
author
Pierre Ossman
committed
mmc: increase power up delay
Increase delay for power up in order to support some slower boards. Also add some comments about why the delays are there. Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
1 parent f75979b commit f9996ae

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

drivers/mmc/core/core.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,12 +460,20 @@ static void mmc_power_up(struct mmc_host *host)
460460
host->ios.timing = MMC_TIMING_LEGACY;
461461
mmc_set_ios(host);
462462

463-
mmc_delay(1);
463+
/*
464+
* This delay should be sufficient to allow the power supply
465+
* to reach the minimum voltage.
466+
*/
467+
mmc_delay(2);
464468

465469
host->ios.clock = host->f_min;
466470
host->ios.power_mode = MMC_POWER_ON;
467471
mmc_set_ios(host);
468472

473+
/*
474+
* This delay must be at least 74 clock sizes, or 1 ms, or the
475+
* time required to reach a stable voltage.
476+
*/
469477
mmc_delay(2);
470478
}
471479

0 commit comments

Comments
 (0)