aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-03-09 18:05:48 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-03-09 18:05:48 +0000
commitb21308313eeebf5cb429a3a2a19db9aaebc94de4 (patch)
tree7189df9dc4bf4dd7e1e901ac19d816aa30f04bfc /target
parent45ff7289fe88bb81109dc0c002b16d96e7adbf5c (diff)
downloadupstream-b21308313eeebf5cb429a3a2a19db9aaebc94de4.tar.gz
upstream-b21308313eeebf5cb429a3a2a19db9aaebc94de4.tar.bz2
upstream-b21308313eeebf5cb429a3a2a19db9aaebc94de4.zip
ar71xx: override lan port names on the RB750
SVN-Revision: 20096
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/base-files/etc/defconfig/rb-750/network2
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c9
2 files changed, 9 insertions, 2 deletions
diff --git a/target/linux/ar71xx/base-files/etc/defconfig/rb-750/network b/target/linux/ar71xx/base-files/etc/defconfig/rb-750/network
index 2108d3ae8e..113d9f3eea 100644
--- a/target/linux/ar71xx/base-files/etc/defconfig/rb-750/network
+++ b/target/linux/ar71xx/base-files/etc/defconfig/rb-750/network
@@ -9,7 +9,7 @@ config interface eth
option proto none
config interface lan
- option ifname 'lan1 lan2 lan3 lan4'
+ option ifname 'port2 port3 port4 port5'
option type bridge
option proto static
option ipaddr 192.168.1.1
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c
index a39101d631..3972f57ac7 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c
@@ -55,6 +55,13 @@ static struct platform_device rb750_leds_device = {
}
};
+static const char *rb750_port_names[AP91_ETH_NUM_PORT_NAMES] __initdata = {
+ "port5",
+ "port4",
+ "port3",
+ "port2",
+};
+
static struct platform_device rb750_nand_device = {
.name = "rb750-nand",
.id = -1,
@@ -117,7 +124,7 @@ static void __init rb750_setup(void)
AR724X_GPIO_FUNC_ETH_SWITCH_LED3_EN |
AR724X_GPIO_FUNC_ETH_SWITCH_LED4_EN);
- ap91_eth_init(NULL, NULL);
+ ap91_eth_init(NULL, rb750_port_names);
platform_device_register(&rb750_leds_device);
platform_device_register(&rb750_nand_device);
}