aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-02-23 07:58:44 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-02-23 07:58:44 +0000
commit4a38b41b88e366901799958fc75376c49139ef3e (patch)
tree7879c7b2f0abadf81d39b9517f4d1855ebdba8a1 /target/linux/ar71xx
parent9fcd4ac70286058e744bd2cd90317b320491facc (diff)
downloadmaster-187ad058-4a38b41b88e366901799958fc75376c49139ef3e.tar.gz
master-187ad058-4a38b41b88e366901799958fc75376c49139ef3e.tar.bz2
master-187ad058-4a38b41b88e366901799958fc75376c49139ef3e.zip
[ar71xx] tl-wr941nd: register ethernet device, and fix machine id
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14632 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr941nd.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr941nd.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr941nd.c
index 12afad3ffd..e5ccd925d7 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr941nd.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr941nd.c
@@ -109,6 +109,19 @@ static struct gpio_button tl_wr941nd_gpio_buttons[] __initdata = {
static void __init tl_wr941nd_setup(void)
{
+ u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00);
+
+ ar71xx_set_mac_base(mac);
+
+ ar71xx_add_device_mdio(0x0);
+
+ 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);
+
ar71xx_add_device_spi(NULL, tl_wr941nd_spi_info,
ARRAY_SIZE(tl_wr941nd_spi_info));
@@ -121,4 +134,4 @@ static void __init tl_wr941nd_setup(void)
ar91xx_add_device_wmac();
}
-MIPS_MACHINE(AR71XX_MACH_MZK_W04NU, "TP-LINK TL-WR941ND", tl_wr941nd_setup);
+MIPS_MACHINE(AR71XX_MACH_TL_WR941ND, "TP-LINK TL-WR941ND", tl_wr941nd_setup);