[openfirmware] [commit] r2364 - cpu/arm/olpc/1.75

repository service svn at openfirmware.info
Thu Jul 14 09:32:37 CEST 2011


Author: wmb
Date: Thu Jul 14 09:32:36 2011
New Revision: 2364
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2364

Log:
OLPC XO-1.75 - Double-probe the USB the first time with a little delay in-between, thus giving devices behind the hub a bit of wakeup time.  In particular, this helps with USB barcode scanners.

Modified:
   cpu/arm/olpc/1.75/usb.fth

Modified: cpu/arm/olpc/1.75/usb.fth
==============================================================================
--- cpu/arm/olpc/1.75/usb.fth	Thu Jul 14 08:31:33 2011	(r2363)
+++ cpu/arm/olpc/1.75/usb.fth	Thu Jul 14 09:32:36 2011	(r2364)
@@ -53,11 +53,20 @@
    then
 ;
 
+true value first-usb-probe?
+: (silent-probe-usb)  ( -- )  " /" ['] (probe-usb2) scan-subtree  ;
 : silent-probe-usb  ( -- )
-   " /" ['] (probe-usb2) scan-subtree
+   (silent-probe-usb)
    report-disk report-net report-keyboard
 ;
 : probe-usb  ( -- )
+   first-usb-probe?  if
+      false to first-usb-probe?
+      \ Initial probe to awaken the hub
+      (silent-probe-usb)
+      \ A little delay to let slow devices like USB scanner wake up
+      d# 150 ms
+   then
    silent-probe-usb
 
    ." USB devices:" cr



More information about the openfirmware mailing list