bump to 2.6.23.12
[openwrt.git] / target / linux / ixp4xx / patches-2.6.23 / 051-nslu2_mac_plat_info.patch
1 diff --git a/arch/arm/mach-ixp4xx/nslu2-setup.c b/arch/arm/mach-ixp4xx/nslu2-setup.c
2 index 77277d2..e0d0dde 100644
3 --- a/arch/arm/mach-ixp4xx/nslu2-setup.c
4 +++ b/arch/arm/mach-ixp4xx/nslu2-setup.c
5 @@ -140,6 +140,23 @@ static struct platform_device nslu2_uart = {
6 .resource = nslu2_uart_resources,
7 };
8
9 +/* Built-in 10/100 Ethernet MAC interfaces */
10 +static struct eth_plat_info nslu2_plat_eth[] = {
11 + {
12 + .phy = 1,
13 + .rxq = 3,
14 + .txreadyq = 20,
15 + }
16 +};
17 +
18 +static struct platform_device nslu2_eth[] = {
19 + {
20 + .name = "ixp4xx_eth",
21 + .id = IXP4XX_ETH_NPEB,
22 + .dev.platform_data = nslu2_plat_eth,
23 + }
24 +};
25 +
26 static struct platform_device *nslu2_devices[] __initdata = {
27 &nslu2_i2c_gpio,
28 &nslu2_flash,
29 @@ -147,6 +164,7 @@ static struct platform_device *nslu2_devices[] __initdata = {
30 #ifdef CONFIG_LEDS_IXP4XX
31 &nslu2_leds,
32 #endif
33 + &nslu2_eth[0],
34 };
35
36 static void nslu2_power_off(void)
This page took 0.041216 seconds and 5 git commands to generate.