From: Kevin O'Connor Date: Mon, 3 Sep 2018 21:32:44 +0000 (-0400) Subject: sdcard: Increase SDHCI_POWER_ON_TIME to 5ms X-Git-Tag: rel-1.12.0~8 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e4db8c6db9356358d6a34caa19166ae72337e0cc;p=people%2Fandrewcoop%2Fseabios.git sdcard: Increase SDHCI_POWER_ON_TIME to 5ms It appears some sd cards need additional time to initialize after power on. Reported-by: Chris . Signed-off-by: Kevin O'Connor --- diff --git a/src/hw/sdcard.c b/src/hw/sdcard.c index 6410340..ab7007b 100644 --- a/src/hw/sdcard.c +++ b/src/hw/sdcard.c @@ -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