76066fb9a21c41023309184cd567ef64dd89714f
[openwrt/staging/florian.git] / target / linux / ixp4xx / patches-2.6.25 / 161-wg302v1_mac_plat_info.patch
1 --- a/arch/arm/mach-ixp4xx/wg302v1-setup.c
2 +++ b/arch/arm/mach-ixp4xx/wg302v1-setup.c
3 @@ -77,9 +77,27 @@
4 .resource = &wg302v1_uart_resource,
5 };
6
7 +/* Built-in 10/100 Ethernet MAC interfaces */
8 +static struct eth_plat_info wg302_plat_eth[] = {
9 + {
10 + .phy = 30,
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 *wg302v1_devices[] __initdata = {
25 &wg302v1_flash,
26 &wg302v1_uart,
27 + &wg302_eth[0],
28 };
29
30 static void __init wg302v1_init(void)