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