diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-03-17 18:07:16 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-03-17 18:07:16 +0000 |
commit | d360a52adc08b17c6ce2a7efb174b9c474a3cd43 (patch) | |
tree | 7821e0fc0327319f2e72dd959d9bd21c1ab6109d /target/linux/ar71xx/files/arch/mips | |
parent | 9d1b6e32d9a976108d6a4f725a9f3cba117b6091 (diff) |
[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
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 01504a7d9..659c9599a 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(); } |