| 1 | --- a/arch/arm/mach-ixp4xx/gtwx5715-setup.c |
| 2 | +++ b/arch/arm/mach-ixp4xx/gtwx5715-setup.c |
| 3 | @@ -178,10 +178,37 @@ static struct platform_device gtwx5715_s |
| 4 | }, |
| 5 | }; |
| 6 | |
| 7 | +static struct eth_plat_info gtwx5715_npeb_data = { |
| 8 | + .phy = IXP4XX_ETH_PHY_MAX_ADDR, |
| 9 | + .phy_mask = 0x1e, /* ports 1-4 of the KS8995 switch */ |
| 10 | + .rxq = 3, |
| 11 | + .txreadyq = 20, |
| 12 | +}; |
| 13 | + |
| 14 | +static struct eth_plat_info gtwx5715_npec_data = { |
| 15 | + .phy = 5, /* port 5 of the KS8995 switch */ |
| 16 | + .rxq = 4, |
| 17 | + .txreadyq = 21, |
| 18 | +}; |
| 19 | + |
| 20 | +static struct platform_device gtwx5715_npeb_device = { |
| 21 | + .name = "ixp4xx_eth", |
| 22 | + .id = IXP4XX_ETH_NPEB, |
| 23 | + .dev.platform_data = >wx5715_npeb_data, |
| 24 | +}; |
| 25 | + |
| 26 | +static struct platform_device gtwx5715_npec_device = { |
| 27 | + .name = "ixp4xx_eth", |
| 28 | + .id = IXP4XX_ETH_NPEC, |
| 29 | + .dev.platform_data = >wx5715_npec_data, |
| 30 | +}; |
| 31 | + |
| 32 | static struct platform_device *gtwx5715_devices[] __initdata = { |
| 33 | >wx5715_uart_device, |
| 34 | >wx5715_flash, |
| 35 | >wx5715_spi_bus, |
| 36 | + >wx5715_npeb_device, |
| 37 | + >wx5715_npec_device, |
| 38 | }; |
| 39 | |
| 40 | static void __init gtwx5715_init(void) |
| 41 | |