[openfirmware] [commit] r3750 - dev/usb2/device/net

repository service svn at openfirmware.info
Mon Dec 8 01:10:53 CET 2014


Author: quozl
Date: Mon Dec  8 01:10:53 2014
New Revision: 3750
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3750

Log:
OLPC - add another ASIX AX88772B based USB ethernet adaptor 0b95.772b to be used in factory, the device uses previously reserved bits in receive buffer, fix is to reconfigure the device for the default format.  Tested also with 0b95.7720 ZoWii Zoltan Tech ZU-80.  #12844.

Modified:
   dev/usb2/device/net/ax8817x.fth
   dev/usb2/device/net/vendor.fth

Modified: dev/usb2/device/net/ax8817x.fth
==============================================================================
--- dev/usb2/device/net/ax8817x.fth	Mon Nov 24 23:53:00 2014	(r3749)
+++ dev/usb2/device/net/ax8817x.fth	Mon Dec  8 01:10:53 2014	(r3750)
@@ -10,13 +10,15 @@
 
 h# 0013.0103 value ax-gpio		\ GPIO toggle values
 
-\ This may need to optimized at some point
-: ax88772?  ( -- flag )
+0 value ax88772?                        \ is an AX88772 based device
+
+: is-ax88772?  ( -- flag )
    pid vid wljoin   case                          ( vid.pid )
+      h# 0b95.772b  of  true exit  endof  \ ZHN ASIX AX88772BLF
       h# 13b1.0018  of  true exit  endof  \ ID for Linksys USB200M rev 2
       h# 2001.3c05  of  true exit  endof  \ ID for D-Link DUB-E100 rev B
       h# 07d1.3c05  of  true exit  endof  \ Alternate ID for D-Link DUB-E100 rev B
-      h# 0b95.7720  of  true exit  endof  \ Another 88772 device, possibly ST Labs
+      h# 0b95.7720  of  true exit  endof  \ ST Labs, ZoWii Zoltan Tech ZU-80
       h# 0b95.772a  of  true exit  endof  \ Chip on VIA demo board
       h# 05ac.1402  of  true exit  endof  \ Apple
    endcase
@@ -231,6 +233,7 @@
    else
       use-multicast?  if  2 or  then
    then
+   ax88772?  if  h# 100 or  then  \ RH1M: rx header format type 1
    to def-rx-ctl
    def-rx-ctl rx-ctl!
 ;
@@ -312,6 +315,7 @@
 ;
 
 : init-ax  ( -- )
+   is-ax88772? to ax88772?
    ['] ax-init-nic  to init-nic
    ['] ax-link-up?  to link-up?
    ['] ax-start-mac to start-mac

Modified: dev/usb2/device/net/vendor.fth
==============================================================================
--- dev/usb2/device/net/vendor.fth	Mon Nov 24 23:53:00 2014	(r3749)
+++ dev/usb2/device/net/vendor.fth	Mon Dec  8 01:10:53 2014	(r3750)
@@ -4,10 +4,11 @@
 hex
 
 create net-ax8817x-list  here
+        0b95 w, 772b w,         \ ZHN ASIX AX88772BLF
         2001 w, 3c05 w,		\ D-Link DUBE100 Rev B1 ax88772
         07d1 w, 3c05 w,		\ D-Link DUBE100 Rev B1 ax88772
         2001 w, 1a00 w,		\ D-Link DUBE100 Rev A  ax88772
-	0b95 w,	7720 w,		\ ST Lab
+	0b95 w,	7720 w,		\ ST Lab, ZoWii Zoltan Tech ZU-80
 	0b95 w,	772a w,		\ Chip on VIA demo board
         13b1 w, 0018 w,		\ Linksys USB200M  ax88772
 	077b w,	2226 w,		\ Linksys USB200M



More information about the openfirmware mailing list