[U-Boot] [PATCH v8 0/4] Add SMSC95XX support including MAC address control

Simon Glass sjg at chromium.org
Tue Jun 14 01:13:08 CEST 2011


The SMSC95XX is a USB hub with a built-in Ethernet adapter. This adds support
for this, using the USB host network framework. The framework is extended to
support setting the hardware MAC address via an environment variable, since
SMSC95XX chips often have no EEPROM attached, and thus no MAC address.
Documentation is added on USB networking, the auto load code is refactored to
remove duplication, and the ASIX USB ethernet driver is optimized to reduce
the time between successive network operations.

Changes for v2:
 - Coding style cleanup
 - Changed some comments as suggested
 - eth_set_hwaddr -> eth_write_hwaddr
 - tided up other users of eth_getenv_enetaddr_by_index()

Changes for v3:
 - Drop tfpserverip patch
 - Change turbo_mode to #define
 - Fix tfpserverip patch bleed

Changes for v4:
 - Dropped Tegra2 specific bit
 - Added patch in place of tftpserverip patch, to speed up successive network commands on asix
 - Fixed a few broken bits in SMSC from my testing

Changes for v5:
 - Code style clean-ups in SMSC
 - Cleaned up debugging of errors in SMSC driver
 - Changed NULL to "eth" in eth_getenv_enetaddr_by_index() API

Changes for v6:
 - Adjust documentation file according to Wolfgang's comments
 - Set NET_IP_ALIGN to 0 always

Changes for v7:
 - Added change logs to each patch as requested by Wolfgang

Changes for v8:
 - Fix typo in auto_load
 - Add setup of SMSC write_hwaddr function
 - Drop ASIX init/halt patch


Simon Glass (4):
  Add support for SMSC95XX USB 2.0 10/100MBit Ethernet Adapter
  Add Ethernet hardware MAC address framework to usbnet
  Add documentation for USB Host Networking
  Put common autoload code into auto_load() function

 board/davinci/common/misc.c |    2 +-
 doc/README.usb              |  157 ++++++++-
 drivers/net/designware.c    |    2 +-
 drivers/usb/eth/Makefile    |    1 +
 drivers/usb/eth/smsc95xx.c  |  879 +++++++++++++++++++++++++++++++++++++++++++
 drivers/usb/eth/usb_ether.c |   16 +-
 include/net.h               |   25 ++-
 include/usb_ether.h         |   13 +
 net/bootp.c                 |   76 ++---
 net/eth.c                   |   64 ++--
 10 files changed, 1161 insertions(+), 74 deletions(-)
 create mode 100644 drivers/usb/eth/smsc95xx.c

-- 
1.7.3.1



More information about the U-Boot mailing list