[openfirmware] [commit] r2070 - dev/usb2/hcd

repository service svn at openfirmware.info
Wed Dec 8 22:27:30 CET 2010


Author: wmb
Date: Wed Dec  8 22:27:30 2010
New Revision: 2070
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2070

Log:
USB hub driver - added a configurable delay between port power-up and probing.

Modified:
   dev/usb2/hcd/probehub.fth

Modified: dev/usb2/hcd/probehub.fth
==============================================================================
--- dev/usb2/hcd/probehub.fth	Wed Dec  8 22:26:17 2010	(r2069)
+++ dev/usb2/hcd/probehub.fth	Wed Dec  8 22:27:30 2010	(r2070)
@@ -49,7 +49,10 @@
 
    tuck  1  ?do  i power-hub-port  loop  2* ms
 					( hub-dev #ports )
-   d# 100 ms
+   " usb-delay" ['] evaluate catch  if  ( hub-dev #ports x x )
+      2drop  d# 100                     ( hub-dev #ports ms )
+   then                                 ( hub-dev #ports ms )
+   ms
 
    ( hub-dev #ports ) 1  ?do
       dup i ['] probe-hub-port  catch  if



More information about the openfirmware mailing list