rpcd: iwinfo plugin fixes
[openwrt/svn-archive/archive.git] / target / linux / ixp4xx / patches-4.1 / 170-ixdpg425_mac_plat_info.patch
1 --- a/arch/arm/mach-ixp4xx/coyote-setup.c
2 +++ b/arch/arm/mach-ixp4xx/coyote-setup.c
3 @@ -14,6 +14,7 @@
4 #include <linux/serial.h>
5 #include <linux/tty.h>
6 #include <linux/serial_8250.h>
7 +#include <linux/dma-mapping.h>
8
9 #include <asm/types.h>
10 #include <asm/setup.h>
11 @@ -81,9 +82,39 @@ static struct platform_device coyote_uar
12 .resource = &coyote_uart_resource,
13 };
14
15 +/* Built-in 10/100 Ethernet MAC interfaces */
16 +static struct eth_plat_info ixdpg425_plat_eth[] = {
17 + {
18 + .phy = 5,
19 + .rxq = 3,
20 + .txreadyq = 20,
21 + }, {
22 + .phy = 4,
23 + .rxq = 4,
24 + .txreadyq = 21,
25 + }
26 +};
27 +
28 +static struct platform_device ixdpg425_eth[] = {
29 + {
30 + .name = "ixp4xx_eth",
31 + .id = IXP4XX_ETH_NPEB,
32 + .dev.platform_data = ixdpg425_plat_eth,
33 + .dev.coherent_dma_mask = DMA_BIT_MASK(32),
34 + }, {
35 + .name = "ixp4xx_eth",
36 + .id = IXP4XX_ETH_NPEC,
37 + .dev.platform_data = ixdpg425_plat_eth + 1,
38 + .dev.coherent_dma_mask = DMA_BIT_MASK(32),
39 + }
40 +};
41 +
42 +
43 static struct platform_device *coyote_devices[] __initdata = {
44 &coyote_flash,
45 - &coyote_uart
46 + &coyote_uart,
47 + &ixdpg425_eth[0],
48 + &ixdpg425_eth[1],
49 };
50
51 static void __init coyote_init(void)