From: Gabor Juhos Date: Tue, 9 Dec 2008 18:49:01 +0000 (+0000) Subject: register eth0 device on the TEW-632BRP board X-Git-Tag: reboot~25034 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d31fe48ea00ef3679b705f84bf86f0642a4bc01e;p=openwrt%2Fstaging%2Fjogo.git register eth0 device on the TEW-632BRP board SVN-Revision: 13566 --- diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c index 96f856b29c..1a104e2231 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c @@ -10,10 +10,20 @@ */ #include + #include +#include static void __init tew_632brp_setup(void) { + ar71xx_add_device_mdio(0xfffffffe); + + ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; + ar71xx_eth0_data.phy_mask = 0x0; + ar71xx_eth0_data.speed = SPEED_100; + ar71xx_eth0_data.duplex = DUPLEX_FULL; + + ar71xx_add_device_eth(0); } MIPS_MACHINE(AR71XX_MACH_TEW_632BRP, "TRENDnet TEW-632BRP", tew_632brp_setup);