aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-11-27 08:39:08 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-11-27 08:39:08 +0000
commit0614f7249450976f77300cc6d57e4444a27e6412 (patch)
treec6de91cf14f107031c497c3360d3e001eed7fa3e /target/linux
parent31ecd080e3ab771813abc400fbb429be7758b416 (diff)
downloadupstream-0614f7249450976f77300cc6d57e4444a27e6412.tar.gz
upstream-0614f7249450976f77300cc6d57e4444a27e6412.tar.bz2
upstream-0614f7249450976f77300cc6d57e4444a27e6412.zip
[ar71xx] register eth0 device on the AP83 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13371 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c
index 02e420ade2..dd16285d74 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c
@@ -19,6 +19,12 @@
static void __init ap83_setup(void)
{
+ ar71xx_add_device_mdio(0xfffffffe);
+
+ ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
+ ar71xx_eth0_data.phy_mask = 0x1;
+
+ ar71xx_add_device_eth(0);
}
MIPS_MACHINE(MACH_AR71XX_AP83, "Atheros AP83", ap83_setup);