1 --- a/arch/arm/mach-ixp4xx/gateway7001-setup.c
2 +++ b/arch/arm/mach-ixp4xx/gateway7001-setup.c
4 #include <linux/serial.h>
6 #include <linux/serial_8250.h>
7 +#include <linux/dma-mapping.h>
10 #include <asm/setup.h>
11 @@ -75,9 +76,37 @@ static struct platform_device gateway700
12 .resource = &gateway7001_uart_resource,
15 +static struct eth_plat_info gateway7001_plat_eth[] = {
27 +static struct platform_device gateway7001_eth[] = {
29 + .name = "ixp4xx_eth",
30 + .id = IXP4XX_ETH_NPEB,
31 + .dev.platform_data = gateway7001_plat_eth,
32 + .dev.coherent_dma_mask = DMA_BIT_MASK(32),
34 + .name = "ixp4xx_eth",
35 + .id = IXP4XX_ETH_NPEC,
36 + .dev.platform_data = gateway7001_plat_eth + 1,
37 + .dev.coherent_dma_mask = DMA_BIT_MASK(32),
41 static struct platform_device *gateway7001_devices[] __initdata = {
45 + &gateway7001_eth[0],
46 + &gateway7001_eth[1],
49 static void __init gateway7001_init(void)
50 --- a/arch/arm/mach-ixp4xx/wg302v2-setup.c
51 +++ b/arch/arm/mach-ixp4xx/wg302v2-setup.c
52 @@ -76,9 +76,26 @@ static struct platform_device wg302v2_ua
53 .resource = &wg302v2_uart_resource,
56 +static struct eth_plat_info wg302v2_plat_eth[] = {
64 +static struct platform_device wg302v2_eth[] = {
66 + .name = "ixp4xx_eth",
67 + .id = IXP4XX_ETH_NPEB,
68 + .dev.platform_data = wg302v2_plat_eth,
72 static struct platform_device *wg302v2_devices[] __initdata = {
78 static void __init wg302v2_init(void)