aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-09-03 17:32:44 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-09-03 17:32:44 -0400
commite4db8c6db9356358d6a34caa19166ae72337e0cc (patch)
treeed486c25cef83ace6b4e5608e5a047165a8f8f0b
parent7961917493baedb0aafd41d88029ed610d0c433f (diff)
downloadseabios-e4db8c6db9356358d6a34caa19166ae72337e0cc.zip
seabios-e4db8c6db9356358d6a34caa19166ae72337e0cc.tar.gz
seabios-e4db8c6db9356358d6a34caa19166ae72337e0cc.tar.bz2
sdcard: Increase SDHCI_POWER_ON_TIME to 5ms
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>
-rw-r--r--src/hw/sdcard.c2
1 files changed, 1 insertions, 1 deletions
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