summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/files/arch/mips
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
commit54844a199f5ebaff0e7ec6c3af79b8cd5fb28623 (patch)
tree3d90d59c188ab40a934440322bcbfbb7b8ee29b0 /target/linux/ar71xx/files/arch/mips
parentc9ae01d3c868020747b32424188f12542a69efc2 (diff)
downloadmtk-20170518-54844a199f5ebaff0e7ec6c3af79b8cd5fb28623.zip
mtk-20170518-54844a199f5ebaff0e7ec6c3af79b8cd5fb28623.tar.gz
mtk-20170518-54844a199f5ebaff0e7ec6c3af79b8cd5fb28623.tar.bz2
register eth0 device on the AP83 board
SVN-Revision: 13371
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips')
-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 02e420a..dd16285 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);