[U-Boot] [PATCH v7 RESEND 0/5] Add SMSC95XX support including MAC address control

Simon Glass sjg at chromium.org
Fri Jun 10 17:04:06 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


Simon Glass (5):
  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
  usbeth: asix: Do a fast init if link already established

 board/davinci/common/misc.c |    2 +-
 doc/README.usb              |  157 ++++++++-
 drivers/net/designware.c    |    2 +-
 drivers/usb/eth/Makefile    |    1 +
 drivers/usb/eth/asix.c      |   36 ++-
 drivers/usb/eth/smsc95xx.c  |  878 +++++++++++++++++++++++++++++++++++++++++++
 drivers/usb/eth/usb_ether.c |   16 +-
 include/net.h               |   25 ++-
 include/usb_ether.h         |   18 +-
 net/bootp.c                 |   75 ++---
 net/eth.c                   |   64 ++--
 11 files changed, 1185 insertions(+), 89 deletions(-)
 create mode 100644 drivers/usb/eth/smsc95xx.c

-- 
1.7.3.1



More information about the U-Boot mailing list