Combined the nslu2 net driver patches, based on new nslu2-linux patch
[openwrt/svn-archive/archive.git] / target / linux / ixp4xx / patches-2.6.23 / 052-nas100d_mac_plat_info.patch
1 diff --git a/arch/arm/mach-ixp4xx/nas100d-setup.c b/arch/arm/mach-ixp4xx/nas100d-setup.c
2 index 54d884f..d4d8540 100644
3 --- a/arch/arm/mach-ixp4xx/nas100d-setup.c
4 +++ b/arch/arm/mach-ixp4xx/nas100d-setup.c
5 @@ -125,12 +125,30 @@ static struct platform_device nas100d_uart = {
6 .resource = nas100d_uart_resources,
7 };
8
9 +/* Built-in 10/100 Ethernet MAC interfaces */
10 +static struct eth_plat_info nas100d_plat_eth[] = {
11 + {
12 + .phy = 0,
13 + .rxq = 3,
14 + .txreadyq = 20,
15 + }
16 +};
17 +
18 +static struct platform_device nas100d_eth[] = {
19 + {
20 + .name = "ixp4xx_eth",
21 + .id = IXP4XX_ETH_NPEB,
22 + .dev.platform_data = nas100d_plat_eth,
23 + }
24 +};
25 +
26 static struct platform_device *nas100d_devices[] __initdata = {
27 &nas100d_i2c_gpio,
28 &nas100d_flash,
29 #ifdef CONFIG_LEDS_IXP4XX
30 &nas100d_leds,
31 #endif
32 + &nas100d_eth[0],
33 };
34
35 static void nas100d_power_off(void)