[kernel] more linux kernel cygwin build fixes
[openwrt.git] / target / linux / ixp4xx / patches-2.6.28 / 100-wg302v2_gateway7001_mac_plat_info.patch
1 --- a/arch/arm/mach-ixp4xx/gateway7001-setup.c
2 +++ b/arch/arm/mach-ixp4xx/gateway7001-setup.c
3 @@ -76,9 +76,35 @@ static struct platform_device gateway700
4 .resource = &gateway7001_uart_resource,
5 };
6
7 +static struct eth_plat_info gateway7001_plat_eth[] = {
8 + {
9 + .phy = 1,
10 + .rxq = 3,
11 + .txreadyq = 20,
12 + }, {
13 + .phy = 2,
14 + .rxq = 4,
15 + .txreadyq = 21,
16 + }
17 +};
18 +
19 +static struct platform_device gateway7001_eth[] = {
20 + {
21 + .name = "ixp4xx_eth",
22 + .id = IXP4XX_ETH_NPEB,
23 + .dev.platform_data = gateway7001_plat_eth,
24 + }, {
25 + .name = "ixp4xx_eth",
26 + .id = IXP4XX_ETH_NPEC,
27 + .dev.platform_data = gateway7001_plat_eth + 1,
28 + }
29 +};
30 +
31 static struct platform_device *gateway7001_devices[] __initdata = {
32 &gateway7001_flash,
33 - &gateway7001_uart
34 + &gateway7001_uart,
35 + &gateway7001_eth[0],
36 + &gateway7001_eth[1],
37 };
38
39 static void __init gateway7001_init(void)
40 --- a/arch/arm/mach-ixp4xx/wg302v2-setup.c
41 +++ b/arch/arm/mach-ixp4xx/wg302v2-setup.c
42 @@ -77,9 +77,26 @@ static struct platform_device wg302v2_ua
43 .resource = &wg302v2_uart_resource,
44 };
45
46 +static struct eth_plat_info wg302v2_plat_eth[] = {
47 + {
48 + .phy = 8,
49 + .rxq = 3,
50 + .txreadyq = 20,
51 + }
52 +};
53 +
54 +static struct platform_device wg302v2_eth[] = {
55 + {
56 + .name = "ixp4xx_eth",
57 + .id = IXP4XX_ETH_NPEB,
58 + .dev.platform_data = wg302v2_plat_eth,
59 + }
60 +};
61 +
62 static struct platform_device *wg302v2_devices[] __initdata = {
63 &wg302v2_flash,
64 &wg302v2_uart,
65 + &wg302v2_eth[0],
66 };
67
68 static void __init wg302v2_init(void)
This page took 0.050147 seconds and 5 git commands to generate.