]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commitdiff
sdcard: Increase SDHCI_POWER_ON_TIME to 5ms
authorKevin O'Connor <kevin@koconnor.net>
Mon, 3 Sep 2018 21:32:44 +0000 (17:32 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 3 Sep 2018 21:32:44 +0000 (17:32 -0400)
It appears some sd cards need additional time to initialize after
power on.

Reported-by: Chris <coderight@gmail.com>.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/hw/sdcard.c

index 6410340e39e911a64fc6595fac7a250e8f8b8133..ab7007bcfad1525278693ff10d14677f6805dcff 100644 (file)
@@ -128,7 +128,7 @@ struct sdhci_s {
 
 // SDHCI timeouts
 #define SDHCI_POWER_OFF_TIME   1
-#define SDHCI_POWER_ON_TIME    1
+#define SDHCI_POWER_ON_TIME    5
 #define SDHCI_CLOCK_ON_TIME    1 // 74 clock cycles
 #define SDHCI_POWERUP_TIMEOUT  1000
 #define SDHCI_PIO_TIMEOUT      1000  // XXX - this is just made up