aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-11-12 12:50:19 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-11-12 12:50:19 +0000
commit4555be2becad0f73385fc1e0bd2c9a39b65e179d (patch)
tree8e2a0d1b4701088ad1cffff98db2a19951f802c6 /target
parent368c6605a03b74b749017c73885ca9e7339adad6 (diff)
downloadupstream-4555be2becad0f73385fc1e0bd2c9a39b65e179d.tar.gz
upstream-4555be2becad0f73385fc1e0bd2c9a39b65e179d.tar.bz2
upstream-4555be2becad0f73385fc1e0bd2c9a39b65e179d.zip
ar71xx: register the second ethernet interface on the DB120 board
SVN-Revision: 28989
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-db120.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-db120.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-db120.c
index b176fc027e..d1860689d0 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-db120.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-db120.c
@@ -138,6 +138,14 @@ static void __init db120_setup(void)
ar71xx_add_device_eth(0);
+ /* GMAC1 is connected to the internal switch */
+ ar71xx_init_mac(ar71xx_eth1_data.mac_addr, art + DB120_MAC1_OFFSET, 0);
+ ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_GMII;
+ ar71xx_eth1_data.speed = SPEED_100;
+ ar71xx_eth1_data.duplex = DUPLEX_FULL;
+
+ ar71xx_add_device_eth(1);
+
ar9xxx_add_device_wmac(art + DB120_CALDATA_OFFSET,
art + DB120_WMAC_MAC_OFFSET);