Add support for SMSC95XX USB 2.0 10/100MBit Ethernet Adapter
authorSimon Glass <sjg@chromium.org>
Thu, 5 May 2011 16:52:06 +0000 (09:52 -0700)
committerRicardo Salveti de Araujo <ricardo.salveti@canonical.com>
Fri, 20 May 2011 03:53:47 +0000 (00:53 -0300)
commitbafd244893a95ad43476bd2e24d0ee0b4f7cb296
tree34fcb8cd9e8df3b655531ab38bf889e4a3dd9dac
parent7a82c208143bbc774ffcb4e53239410f867a0794
Add support for SMSC95XX USB 2.0 10/100MBit Ethernet Adapter

The SMSC95XX is a USB hub with a built-in Ethernet adapter. This adds support
for this, using the USB host network framework.

TEST=usb start; bootp; tftp ...

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

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/usb/eth/Makefile
drivers/usb/eth/smsc95xx.c [new file with mode: 0644]
drivers/usb/eth/usb_ether.c
include/usb_ether.h