[openfirmware] [commit] r2076 - dev/mmc/sdhci
repository service
svn at openfirmware.info
Thu Dec 9 06:30:03 CET 2010
Author: quozl
Date: Thu Dec 9 06:30:02 2010
New Revision: 2076
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2076
Log:
SDHCI - restore previous delay for internal slot, adopt 250ms delay following tests with external slot. May be revisited with XO-1.75 A2 where only 1ms may be required.
Modified:
dev/mmc/sdhci/sdhci.fth
Modified: dev/mmc/sdhci/sdhci.fth
==============================================================================
--- dev/mmc/sdhci/sdhci.fth Wed Dec 8 23:17:20 2010 (r2075)
+++ dev/mmc/sdhci/sdhci.fth Thu Dec 9 06:30:02 2010 (r2076)
@@ -384,7 +384,7 @@
: response ( -- l ) h# 10 cl@ ;
-: buf+! ( buf value -- buf' ) over l! la1+ ;
+\ : buf+! ( buf value -- buf' ) over l! la1+ ;
\ Store in the buffer in little-endian form
: get-response136 ( buf -- ) \ 128 bits (16 bytes) of data.
@@ -801,16 +801,19 @@
false to writing?
;
-\ time to hold card power off to allow VCC_SD to discharge
+\ time to hold external card power off to allow VCC_SD to discharge
+\ 250ms required for XO-1.5 to achieve 0.5V
\ 25ms required for XO-1.5 with external SanDisk 32 G class 10 SD card
\ 29ms required for XO-1.5 with external SanDisk 8 G class 4 SD card
\ 1ms should be required for XO-1.75 A2 (due to discharge clamps)
-d# 40 value power-off-time
+d# 250 value power-off-time
\ -1 means error, 1 means retry
: power-up-card ( -- false | retry? true )
intstat-on
- card-power-off power-off-time ms
+ card-power-off
+ slot 1 = if power-off-time else d# 20 then
+ ms
card-power-on d# 40 ms \ This delay is just a guess (20 was barely too slow for a Via board)
card-inserted? 0= if card-power-off intstat-off false true exit then
card-clock-slow d# 10 ms \ This delay is just a guess
More information about the openfirmware
mailing list