[ixp4xx] refresh kernel patches
[openwrt.git] / target / linux / ixp4xx / patches-2.6.25 / 170-ixdpg425_mac_plat_info.patch
1 Index: linux-2.6.25.4/arch/arm/mach-ixp4xx/coyote-setup.c
2 ===================================================================
3 --- linux-2.6.25.4.orig/arch/arm/mach-ixp4xx/coyote-setup.c
4 +++ linux-2.6.25.4/arch/arm/mach-ixp4xx/coyote-setup.c
5 @@ -73,9 +73,37 @@ static struct platform_device coyote_uar
6 .resource = &coyote_uart_resource,
7 };
8
9 +/* Built-in 10/100 Ethernet MAC interfaces */
10 +static struct eth_plat_info ixdpg425_plat_eth[] = {
11 + {
12 + .phy = 5,
13 + .rxq = 3,
14 + .txreadyq = 20,
15 + }, {
16 + .phy = 4,
17 + .rxq = 4,
18 + .txreadyq = 21,
19 + }
20 +};
21 +
22 +static struct platform_device ixdpg425_eth[] = {
23 + {
24 + .name = "ixp4xx_eth",
25 + .id = IXP4XX_ETH_NPEB,
26 + .dev.platform_data = ixdpg425_plat_eth,
27 + }, {
28 + .name = "ixp4xx_eth",
29 + .id = IXP4XX_ETH_NPEC,
30 + .dev.platform_data = ixdpg425_plat_eth + 1,
31 + }
32 +};
33 +
34 +
35 static struct platform_device *coyote_devices[] __initdata = {
36 &coyote_flash,
37 - &coyote_uart
38 + &coyote_uart,
39 + &ixdpg425_eth[0],
40 + &ixdpg425_eth[1],
41 };
42
43 static void __init coyote_init(void)
This page took 0.051529 seconds and 5 git commands to generate.