[ixp4xx] add inital support for the kendin switch on the gtwx5717 board
[openwrt.git] / target / linux / ixp4xx / patches-2.6.25 / 311-gtwx5717_mac_plat_info.patch
1 Index: linux-2.6.25.4/arch/arm/mach-ixp4xx/gtwx5715-setup.c
2 ===================================================================
3 --- linux-2.6.25.4.orig/arch/arm/mach-ixp4xx/gtwx5715-setup.c
4 +++ linux-2.6.25.4/arch/arm/mach-ixp4xx/gtwx5715-setup.c
5 @@ -154,10 +154,37 @@ static struct platform_device gtwx5715_s
6 },
7 };
8
9 +static struct eth_plat_info gtwx5715_npeb_data = {
10 + .phy = IXP4XX_ETH_PHY_MAX_ADDR,
11 + .phy_mask = 0x1e, /* ports 1-4 of the KS8995 switch */
12 + .rxq = 3,
13 + .txreadyq = 20,
14 +};
15 +
16 +static struct eth_plat_info gtwx5715_npec_data = {
17 + .phy = 5, /* port 5 of the KS8995 switch */
18 + .rxq = 4,
19 + .txreadyq = 21,
20 +};
21 +
22 +static struct platform_device gtwx5715_npeb_device = {
23 + .name = "ixp4xx_eth",
24 + .id = IXP4XX_ETH_NPEB,
25 + .dev.platform_data = &gtwx5715_npeb_data,
26 +};
27 +
28 +static struct platform_device gtwx5715_npec_device = {
29 + .name = "ixp4xx_eth",
30 + .id = IXP4XX_ETH_NPEC,
31 + .dev.platform_data = &gtwx5715_npec_data,
32 +};
33 +
34 static struct platform_device *gtwx5715_devices[] __initdata = {
35 &gtwx5715_uart_device,
36 &gtwx5715_flash,
37 &gtwx5715_spi_bus,
38 + &gtwx5715_npeb_device,
39 + &gtwx5715_npec_device,
40 };
41
42 static void __init gtwx5715_init(void)
This page took 0.043453 seconds and 5 git commands to generate.