[openfirmware] [commit] r2325 - dev/olpc/kb3700

repository service svn at openfirmware.info
Fri Jul 1 20:48:16 CEST 2011


Author: wmb
Date: Fri Jul  1 20:48:15 2011
New Revision: 2325
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2325

Log:
OLPC XO-1.75 - EC-SPI command protocol: don't complain if the EC has queued-up a couple of upstream events and extend the command timeout to 50 ms.

Modified:
   dev/olpc/kb3700/spicmd.fth

Modified: dev/olpc/kb3700/spicmd.fth
==============================================================================
--- dev/olpc/kb3700/spicmd.fth	Fri Jul  1 20:46:54 2011	(r2324)
+++ dev/olpc/kb3700/spicmd.fth	Fri Jul  1 20:48:15 2011	(r2325)
@@ -262,7 +262,6 @@
    pulse-ack
 ;
 : (upstream)  ( -- )
-   rxavail 2 <>  if  ." ec-spi rxavail = " rxavail . cr  then
    ssp-ssdr rl@  ssp-ssdr rl@              ( channel# data )
    debug? if
       ." UP: " over . dup . cr
@@ -290,7 +289,7 @@
    lock[
    ssp-ready?  if  do-state  then
    ]unlock
-   debug?  if  key?  if  key drop debug-me  then  then
+\  debug?  if  key?  if  key drop debug-me  then  then
 ;
 : cancel-command  ( -- )  \ Called when the command child times out
    clr-cmd
@@ -371,7 +370,7 @@
    ec-cmdbuf 3 +   swap  bounds  ?do  i c!  loop  ( )
 ;
 : timed-get-results  ( -- b )
-   get-msecs  d# 20 +   begin         ( limit )
+   get-msecs  d# 50 +   begin         ( limit )
       2 deque?  if                    ( limit b )
          nip exit                     ( -- b )
       then                            ( limit )



More information about the openfirmware mailing list