Author: wmb Date: 2008-06-27 23:28:06 +0200 (Fri, 27 Jun 2008) New Revision: 840
Modified: dev/mmc/sdhci/sdhci.fth Log: OLPC SD driver - Increased data timeout to the max value, since some cards timeout with lesser values.
Modified: dev/mmc/sdhci/sdhci.fth =================================================================== --- dev/mmc/sdhci/sdhci.fth 2008-06-24 23:17:18 UTC (rev 839) +++ dev/mmc/sdhci/sdhci.fth 2008-06-27 21:28:06 UTC (rev 840) @@ -460,10 +460,11 @@ ;
: set-timeout ( -- ) - \ The h# c below is supposed to be h# b, but there is a CaFe bug - \ in which the timeout code is off by one, which makes the timeout - \ be half the requested length. - h# c data-timeout! \ 2^24 / 48 MHz = 0.35 sec + \ There is a CaFe bug in which the timeout code is off by one, + \ which makes the timeout be half the requested length. + \ But experience dictates that the timeout should be maxed out, + \ so we use h# e, the max value that the hardware supports. + h# e data-timeout! \ 2^26 / 48 MHz = 1.4 sec ;
: configure-transfer ( -- )