diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-07-31 07:01:26 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-07-31 07:01:26 +0000 |
commit | 7ea3d1520a4c7d4e46d4cbbb7b25010fcbad15b3 (patch) | |
tree | 98a5d862c6986e15c5f760f641a34879fa5192a7 /target/linux | |
parent | 453d7df4c0363ed5225c020e821e5daf42354245 (diff) | |
download | upstream-7ea3d1520a4c7d4e46d4cbbb7b25010fcbad15b3.tar.gz upstream-7ea3d1520a4c7d4e46d4cbbb7b25010fcbad15b3.tar.bz2 upstream-7ea3d1520a4c7d4e46d4cbbb7b25010fcbad15b3.zip |
[ar71xx] add ethernet suppor for the WRT160NL (thanks to Christian Daniel)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17057 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c index 06cd05aa2f..8ee46c60bf 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c @@ -71,13 +71,26 @@ static struct spi_board_info wrt160nl_spi_info[] = { static void __init wrt160nl_setup(void) { - /* TODO: ethernet, LEDs, buttons */ + ar71xx_add_device_mdio(0x0); + + ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; + ar71xx_eth0_data.phy_mask = 0xf; + ar71xx_eth0_data.speed = SPEED_100; + ar71xx_eth0_data.duplex = DUPLEX_FULL; + + ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; + ar71xx_eth1_data.phy_mask = 0x10; + + ar71xx_add_device_eth(0); + ar71xx_add_device_eth(1); ar71xx_add_device_spi(NULL, wrt160nl_spi_info, ARRAY_SIZE(wrt160nl_spi_info)); ar71xx_add_device_usb(); ar91xx_add_device_wmac(); + + /* TODO: LEDs, buttons */ } MIPS_MACHINE(AR71XX_MACH_WRT160NL, "Linksys WRT160NL", wrt160nl_setup); |