Root/target/linux/ixp4xx/patches-2.6.32/311-gtwx5717_mac_plat_info.patch

1--- a/arch/arm/mach-ixp4xx/gtwx5715-setup.c
2+++ b/arch/arm/mach-ixp4xx/gtwx5715-setup.c
3@@ -154,10 +154,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 = &gtwx5715_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 = &gtwx5715_npec_data,
30+};
31+
32 static struct platform_device *gtwx5715_devices[] __initdata = {
33     &gtwx5715_uart_device,
34     &gtwx5715_flash,
35     &gtwx5715_spi_bus,
36+ &gtwx5715_npeb_device,
37+ &gtwx5715_npec_device,
38 };
39 
40 static void __init gtwx5715_init(void)
41

Archive Download this file



interactive