register eth1 device on the AP83 board
authorGabor Juhos <juhosg@openwrt.org>
Fri, 28 Nov 2008 09:07:01 +0000 (09:07 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 28 Nov 2008 09:07:01 +0000 (09:07 +0000)
SVN-Revision: 13389

target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c

index 6c0b4d4ab30b778e700a8f0d8ef94a697264a5b1..82cd3eea4d8d32aca3801973c7c323018ddca094 100644 (file)
@@ -46,8 +46,15 @@ static void __init ap83_setup(void)
 
        ar71xx_add_device_eth(0);
 
-       ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(ap83_leds_gpio),
-                                       ap83_leds_gpio);
+       ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
+       ar71xx_eth1_data.phy_mask = 0x0;
+       ar71xx_eth1_data.speed = SPEED_1000;
+       ar71xx_eth1_data.duplex = DUPLEX_FULL;
+
+       ar71xx_add_device_eth(1);
+
+       ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(rb4xx_leds_gpio),
+                                       rb4xx_leds_gpio);
 
 }