aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-12-09 18:49:01 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-12-09 18:49:01 +0000
commitb3fecbcda9ce64c6cd310ba523f33f579a186112 (patch)
tree680b2beec6579eb9b48e678fc38dfef81ee085fa
parent56b046eb87c240b8d3572f07865e06e7961cc746 (diff)
downloadupstream-b3fecbcda9ce64c6cd310ba523f33f579a186112.tar.gz
upstream-b3fecbcda9ce64c6cd310ba523f33f579a186112.tar.bz2
upstream-b3fecbcda9ce64c6cd310ba523f33f579a186112.zip
[ar71xx] register eth0 device on the TEW-632BRP board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13566 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c10
1 files changed, 10 insertions, 0 deletions
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 <asm/mips_machine.h>
+
#include <asm/mach-ar71xx/ar71xx.h>
+#include <asm/mach-ar71xx/platform.h>
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);