[openfirmware] [commit] r1850 - dev/mmc/sdhci

repository service svn at openfirmware.info
Thu Jul 1 19:23:54 CEST 2010


Author: wmb
Date: Thu Jul  1 19:23:54 2010
New Revision: 1850
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/1850

Log:
SDHCI - Added ugly workaround for AData class 6 cards that hang
if you issue write-multiple commands too soon after a preceding read.

Modified:
   dev/mmc/sdhci/sdhci.fth

Modified: dev/mmc/sdhci/sdhci.fth
==============================================================================
--- dev/mmc/sdhci/sdhci.fth	Thu Jul  1 19:23:04 2010	(r1849)
+++ dev/mmc/sdhci/sdhci.fth	Thu Jul  1 19:23:54 2010	(r1850)
@@ -897,6 +897,9 @@
       r> r> 2drop                       ( block# )
       read-multiple                     ( )
    else                                 ( block# r: #blocks fresh? )
+      \ Ugly ugly workaround for a problem with AData Class 6 SD cards
+      \ They hang (data timeout) if you start a write too soon after a read.
+      " d# 20 us" evaluate
       r>  if  r> pre-write-erase  else  r> drop  then  ( block# )
       write-multiple  true to writing?  ( )
    then                                 ( )



More information about the openfirmware mailing list