ar71xx: override lan port names on the RB750
SVN-Revision: 20096
This commit is contained in:
parent
45ff7289fe
commit
b21308313e
2 changed files with 9 additions and 2 deletions
|
@ -9,7 +9,7 @@ config interface eth
|
||||||
option proto none
|
option proto none
|
||||||
|
|
||||||
config interface lan
|
config interface lan
|
||||||
option ifname 'lan1 lan2 lan3 lan4'
|
option ifname 'port2 port3 port4 port5'
|
||||||
option type bridge
|
option type bridge
|
||||||
option proto static
|
option proto static
|
||||||
option ipaddr 192.168.1.1
|
option ipaddr 192.168.1.1
|
||||||
|
|
|
@ -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 = {
|
static struct platform_device rb750_nand_device = {
|
||||||
.name = "rb750-nand",
|
.name = "rb750-nand",
|
||||||
.id = -1,
|
.id = -1,
|
||||||
|
@ -117,7 +124,7 @@ static void __init rb750_setup(void)
|
||||||
AR724X_GPIO_FUNC_ETH_SWITCH_LED3_EN |
|
AR724X_GPIO_FUNC_ETH_SWITCH_LED3_EN |
|
||||||
AR724X_GPIO_FUNC_ETH_SWITCH_LED4_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_leds_device);
|
||||||
platform_device_register(&rb750_nand_device);
|
platform_device_register(&rb750_nand_device);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue