Figured out the magic for the second Ethernet interface. Tested on a tew-652brp hardware but expecting it should work on the similar tew-632brp and d-link dir-615 c1.
Signed-off-by: Stephen Gutknecht <[email protected]> --- Index: target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c =================================================================== --- target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c (revision 14158) +++ target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c (working copy) @@ -3,6 +3,7 @@ * * Copyright (C) 2008 Gabor Juhos <[email protected]> * Copyright (C) 2008 Imre Kaloz <[email protected]> + * Copyright (C) 2009 Stephen Gutknecht <[email protected]> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published @@ -112,7 +113,13 @@ ar71xx_eth0_data.speed = SPEED_100; ar71xx_eth0_data.duplex = DUPLEX_FULL; + ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; + ar71xx_eth1_data.phy_mask = 0x2; + ar71xx_eth1_data.speed = SPEED_100; + ar71xx_eth1_data.duplex = DUPLEX_FULL; + ar71xx_add_device_eth(0); + ar71xx_add_device_eth(1); ar71xx_add_device_spi(NULL, tew_632brp_spi_info, ARRAY_SIZE(tew_632brp_spi_info)); _______________________________________________ openwrt-devel mailing list [email protected] http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
