summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-03-09 18:05:48 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-03-09 18:05:48 +0000
commit1842195b3e3df7233a1bf35908297809ac41b938 (patch)
tree00add1b5d78dcd1f2dcb2bb59ea465cc76f160c9 /target/linux/ar71xx/files/arch
parent94a2468fdda58ca35b4edd4ebf7279855f1cee43 (diff)
ar71xx: override lan port names on the RB750
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20096 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c9
1 files changed, 8 insertions, 1 deletions
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 a39101d63..3972f57ac 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);
}