readd patch...
[openwrt.git] / target / linux / ixp4xx / patches-2.6.25 / 101-wg302_mac_plat_info.patch
1 --- a/arch/arm/mach-ixp4xx/wg302v2-setup.c
2 +++ b/arch/arm/mach-ixp4xx/wg302v2-setup.c
3 @@ -77,9 +77,27 @@
4 .resource = &wg302v2_uart_resource,
5 };
6
7 +/* Built-in 10/100 Ethernet MAC interfaces */
8 +static struct eth_plat_info wg302_plat_eth[] = {
9 + {
10 + .phy = 8,
11 + .rxq = 3,
12 + .txreadyq = 20,
13 + }
14 +};
15 +
16 +static struct platform_device wg302_eth[] = {
17 + {
18 + .name = "ixp4xx_eth",
19 + .id = IXP4XX_ETH_NPEB,
20 + .dev.platform_data = wg302_plat_eth,
21 + }
22 +};
23 +
24 static struct platform_device *wg302v2_devices[] __initdata = {
25 &wg302v2_flash,
26 &wg302v2_uart,
27 + &wg302_eth[0],
28 };
29
30 static void __init wg302v2_init(void)
This page took 0.043382 seconds and 5 git commands to generate.