From d360a52adc08b17c6ce2a7efb174b9c474a3cd43 Mon Sep 17 00:00:00 2001 From: juhosg Date: Tue, 17 Mar 2009 18:07:16 +0000 Subject: [ar71xx] ap81: register ethernet devices, and add default network configuration file git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14921 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'target/linux/ar71xx/files/arch') diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c index 01504a7d9b..659c9599a6 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c @@ -16,6 +16,20 @@ static void __init ap81_setup(void) { + 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_eth0_data.has_ar8216 = 1; + + 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); + ar91xx_add_device_wmac(); } -- cgit v1.2.3