aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-02-27 16:34:09 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-02-27 16:34:09 +0000
commita94c151a9288f9b1878f36af8483055a383a859f (patch)
treef97c05f7eb96c881ddbdbb8fd45a3a9aebf986ca
parent4d657107fa6199c2df25aa9e077deac801868b5a (diff)
downloadupstream-a94c151a9288f9b1878f36af8483055a383a859f.tar.gz
upstream-a94c151a9288f9b1878f36af8483055a383a859f.tar.bz2
upstream-a94c151a9288f9b1878f36af8483055a383a859f.zip
[ar71xx] aw-nr580: add support for the LAN ports
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14685 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-aw-nr580.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-aw-nr580.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-aw-nr580.c
index 3ebba07716..1ab5584e72 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-aw-nr580.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-aw-nr580.c
@@ -56,6 +56,15 @@ static struct gpio_button aw_nr580_gpio_buttons[] __initdata = {
static void __init aw_nr580_setup(void)
{
+ ar71xx_add_device_mdio(0x0);
+
+ ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII;
+ ar71xx_eth0_data.phy_mask = 0xf;
+ ar71xx_eth0_data.speed = SPEED_100;
+ ar71xx_eth0_data.duplex = DUPLEX_FULL;
+
+ ar71xx_add_device_eth(0);
+
ar71xx_add_device_spi(NULL, aw_nr580_spi_info,
ARRAY_SIZE(aw_nr580_spi_info));