sh: smsc911x support for the rsk7203 board
authorMagnus Damm <damm@igel.co.jp>
Tue, 28 Apr 2009 08:02:13 +0000 (08:02 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 15 Jun 2009 20:57:07 +0000 (05:57 +0900)
commit724cfb944007b7f8d346523a7810b53a35921bc5
treeaac8b1cc6e560a5beb81ae46a41aea83d241f0a6
parent03347e2592078a90df818670fddf97a33eec70fb
sh: smsc911x support for the rsk7203 board

This patch adds support for the LAN9118 ethernet on rsk7203.

The LAN9118 controller is hooked up using a 16-bit data bus,
but the rsk7203 board does not swap the byte lanes as needed
between the sh7203 processor and the the ethernet controller.

In the processor the CS memory window is configured in 16-bit
mode but the smsc911x driver is told to do 32-bit accesses to
improve performance. The SMSC911X_SWAP_FIFO flag is used
to tell the driver to do software byte swapping of fifo data.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Acked-by: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boards/mach-rsk/devices-rsk7203.c