lantiq: remove linux 3.10 support
[openwrt/openwrt.git] / target / linux / ixp4xx / patches-3.10 / 131-wrt300nv2_mac_plat_info.patch
1 --- a/arch/arm/mach-ixp4xx/wrt300nv2-setup.c
2 +++ b/arch/arm/mach-ixp4xx/wrt300nv2-setup.c
3 @@ -76,9 +76,38 @@ static struct platform_device wrt300nv2_
4 .resource = &wrt300nv2_uart_resource,
5 };
6
7 +/* Built-in 10/100 Ethernet MAC interfaces */
8 +static struct eth_plat_info wrt300nv2_plat_eth[] = {
9 + {
10 + .phy = -1,
11 + .rxq = 3,
12 + .txreadyq = 20,
13 + }, {
14 + .phy = 1,
15 + .rxq = 4,
16 + .txreadyq = 21,
17 + }
18 +};
19 +
20 +static struct platform_device wrt300nv2_eth[] = {
21 + {
22 + .name = "ixp4xx_eth",
23 + .id = IXP4XX_ETH_NPEB,
24 + .dev.platform_data = wrt300nv2_plat_eth,
25 + .dev.coherent_dma_mask = DMA_BIT_MASK(32),
26 + }, {
27 + .name = "ixp4xx_eth",
28 + .id = IXP4XX_ETH_NPEC,
29 + .dev.platform_data = wrt300nv2_plat_eth + 1,
30 + .dev.coherent_dma_mask = DMA_BIT_MASK(32),
31 + }
32 +};
33 +
34 static struct platform_device *wrt300nv2_devices[] __initdata = {
35 &wrt300nv2_flash,
36 - &wrt300nv2_uart
37 + &wrt300nv2_uart,
38 + &wrt300nv2_eth[0],
39 + &wrt300nv2_eth[1],
40 };
41
42 static void __init wrt300nv2_init(void)