make grub compilable under fedora core 8 and other newer distros
[openwrt.git] / target / linux / ixp4xx / patches-2.6.25 / 121-compex_mac_plat_info.patch
1 --- a/arch/arm/mach-ixp4xx/compex-setup.c
2 +++ b/arch/arm/mach-ixp4xx/compex-setup.c
3 @@ -90,9 +90,36 @@
4 .resource = compex_uart_resources,
5 };
6
7 +/* Built-in 10/100 Ethernet MAC interfaces */
8 +static struct eth_plat_info compex_plat_eth[] = {
9 + {
10 + .phy = -1,
11 + .rxq = 3,
12 + .txreadyq = 20,
13 + }, {
14 + .phy = 3,
15 + .rxq = 4,
16 + .txreadyq = 21,
17 + }
18 +};
19 +
20 +static struct platform_device compex_eth[] = {
21 + {
22 + .name = "ixp4xx_eth",
23 + .id = IXP4XX_ETH_NPEB,
24 + .dev.platform_data = compex_plat_eth,
25 + }, {
26 + .name = "ixp4xx_eth",
27 + .id = IXP4XX_ETH_NPEC,
28 + .dev.platform_data = compex_plat_eth + 1,
29 + }
30 +};
31 +
32 static struct platform_device *compex_devices[] __initdata = {
33 &compex_flash,
34 - &compex_uart
35 + &compex_uart,
36 + &compex_eth[0],
37 + &compex_eth[1],
38 };
39
40 static void __init compex_init(void)
This page took 0.050912 seconds and 5 git commands to generate.