ixp4xx 2.6.26 support
[openwrt.git] / target / linux / ixp4xx / patches-2.6.26 / 111-pronghorn_metro_mac_plat_info.patch
1 --- a/arch/arm/mach-ixp4xx/pronghornmetro-setup.c
2 +++ b/arch/arm/mach-ixp4xx/pronghornmetro-setup.c
3 @@ -104,9 +104,36 @@
4         .resource               = pronghornmetro_pata_resources,
5  };
6  
7 +/* Built-in 10/100 Ethernet MAC interfaces */
8 +static struct eth_plat_info pronghornmetro_plat_eth[] = {
9 +        {
10 +                .phy            = 0,
11 +                .rxq            = 3,
12 +               .txreadyq       = 20,
13 +        }, {
14 +                .phy            = 1,
15 +                .rxq            = 4,
16 +               .txreadyq       = 21,
17 +       }
18 +};
19 +
20 +static struct platform_device pronghornmetro_eth[] = {
21 +        {
22 +                .name                   = "ixp4xx_eth",
23 +                .id                     = IXP4XX_ETH_NPEB,
24 +                .dev.platform_data      = pronghornmetro_plat_eth,
25 +        }, {
26 +                .name                   = "ixp4xx_eth",
27 +                .id                     = IXP4XX_ETH_NPEC,
28 +                .dev.platform_data      = pronghornmetro_plat_eth + 1,
29 +       }
30 +};
31 +
32  static struct platform_device *pronghornmetro_devices[] __initdata = {
33         &pronghornmetro_flash,
34         &pronghornmetro_uart,
35 +       &pronghornmetro_eth[0],
36 +       &pronghornmetro_eth[1],
37  };
38  
39  static void __init pronghornmetro_init(void)