fix typo
[openwrt.git] / target / linux / ixp4xx / patches-2.6.23 / 296-avila_mac_plat_info.patch
1 diff --git a/arch/arm/mach-ixp4xx/avila-setup.c b/arch/arm/mach-ixp4xx/avila-setup.c
2 index e38f45f..10ed5d6 100644
3 --- a/arch/arm/mach-ixp4xx/avila-setup.c
4 +++ b/arch/arm/mach-ixp4xx/avila-setup.c
5 @@ -132,10 +132,37 @@ static struct platform_device avila_pata = {
6 .resource = avila_pata_resources,
7 };
8
9 +/* Built-in 10/100 Ethernet MAC interfaces */
10 +static struct eth_plat_info avila_plat_eth[] = {
11 + {
12 + .phy = 0,
13 + .rxq = 3,
14 + .txreadyq = 20,
15 + }, {
16 + .phy = 1,
17 + .rxq = 4,
18 + .txreadyq = 21,
19 + }
20 +};
21 +
22 +static struct platform_device avila_eth[] = {
23 + {
24 + .name = "ixp4xx_eth",
25 + .id = IXP4XX_ETH_NPEB,
26 + .dev.platform_data = avila_plat_eth,
27 + }, {
28 + .name = "ixp4xx_eth",
29 + .id = IXP4XX_ETH_NPEC,
30 + .dev.platform_data = avila_plat_eth + 1,
31 + }
32 +};
33 +
34 static struct platform_device *avila_devices[] __initdata = {
35 &avila_i2c_gpio,
36 &avila_flash,
37 - &avila_uart
38 + &avila_uart,
39 + &avila_eth[0],
40 + &avila_eth[1],
41 };
42
43 static void __init avila_init(void)
This page took 0.045774 seconds and 5 git commands to generate.