root/trunk/patches/2.6.22/53-avila-mac_plat_info.patch

Revision 917, 1.2 KB (checked in by gordon, 3 years ago)

Update IXP4XX network drivers to Krzysztof's latest version from git

  • arch/arm/mach-ixp4xx/avila-setup.c

    diff --git a/arch/arm/mach-ixp4xx/avila-setup.c b/arch/arm/mach-ixp4xx/avila-setup.c
    index e38f45f..10ed5d6 100644
    a b  
    132132        .resource               = avila_pata_resources, 
    133133}; 
    134134 
     135/* Built-in 10/100 Ethernet MAC interfaces */ 
     136static struct eth_plat_info avila_plat_eth[] = { 
     137        { 
     138                .phy            = 0, 
     139                .rxq            = 3, 
     140                .txreadyq       = 20, 
     141        }, { 
     142                .phy            = 1, 
     143                .rxq            = 4, 
     144                .txreadyq       = 21, 
     145        } 
     146}; 
     147 
     148static struct platform_device avila_eth[] = { 
     149        { 
     150                .name                   = "ixp4xx_eth", 
     151                .id                     = IXP4XX_ETH_NPEB, 
     152                .dev.platform_data      = avila_plat_eth, 
     153        }, { 
     154                .name                   = "ixp4xx_eth", 
     155                .id                     = IXP4XX_ETH_NPEC, 
     156                .dev.platform_data      = avila_plat_eth + 1, 
     157        } 
     158}; 
     159 
    135160static struct platform_device *avila_devices[] __initdata = { 
    136161        &avila_i2c_gpio, 
    137162        &avila_flash, 
    138         &avila_uart 
     163        &avila_uart, 
     164        &avila_eth[0], 
     165        &avila_eth[1], 
    139166}; 
    140167 
    141168static void __init avila_init(void) 
Note: See TracBrowser for help on using the browser.