aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-10-21 18:42:22 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-10-21 18:42:22 +0000
commit9e2d1a194d21a35d48648b8f88d47c5560b27e6a (patch)
tree925f436b679eb38151f7abb976d8fbdc0bdf4a79 /target/linux
parent6656450c6dbf2108497a69bb0e02db2b8176c7e4 (diff)
downloadupstream-9e2d1a194d21a35d48648b8f88d47c5560b27e6a.tar.gz
upstream-9e2d1a194d21a35d48648b8f88d47c5560b27e6a.tar.bz2
upstream-9e2d1a194d21a35d48648b8f88d47c5560b27e6a.zip
ar71xx: use the new ar7240 switch driver for tl-wa901nd as well
SVN-Revision: 23576
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig1
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c14
2 files changed, 1 insertions, 14 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig b/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig
index a0e1410206..87c59046cc 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig
@@ -196,7 +196,6 @@ config AR71XX_MACH_TL_WA901ND
bool "TP-LINK TL-WA901ND support"
select AR71XX_DEV_M25P80
select AR71XX_DEV_AP91_PCI if PCI
- select AR71XX_DEV_DSA
select AR71XX_DEV_GPIO_BUTTONS
select AR71XX_DEV_LEDS_GPIO
default n
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c
index ea4135a3d0..da69468394 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c
@@ -16,7 +16,6 @@
#include "machtype.h"
#include "devices.h"
-#include "dev-dsa.h"
#include "dev-m25p80.h"
#include "dev-ap91-pci.h"
#include "dev-gpio-buttons.h"
@@ -95,16 +94,6 @@ static struct gpio_button tl_wa901nd_gpio_buttons[] __initdata = {
}
};
-static struct dsa_chip_data tl_wa901nd_v1_dsa_chip = {
- .port_names[0] = "cpu",
- .port_names[1] = "lan",
-};
-
-static struct dsa_platform_data tl_wa901nd_v1_dsa_data = {
- .nr_chips = 1,
- .chip = &tl_wa901nd_v1_dsa_chip,
-};
-
static void __init tl_wa901nd_setup(void)
{
u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00);
@@ -119,12 +108,11 @@ static void __init tl_wa901nd_setup(void)
ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
ar71xx_eth1_data.speed = SPEED_1000;
ar71xx_eth1_data.duplex = DUPLEX_FULL;
+ ar71xx_eth1_data.has_ar7240_switch = 1;
ar71xx_add_device_mdio(0x0);
ar71xx_add_device_eth(1);
- ar71xx_add_device_dsa(1, &tl_wa901nd_v1_dsa_data);
-
ar71xx_add_device_m25p80(&tl_wa901nd_flash_data);
ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(tl_wa901nd_leds_gpio),