root/trunk/patches/2.6.22/54-fsg3-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

  • a/arch/arm/mach-ixp4xx/fsg-setup.c

    old new  
    142142        .resource               = fsg_uart_resources, 
    143143}; 
    144144 
     145/* Built-in 10/100 Ethernet MAC interfaces */ 
     146static struct eth_plat_info fsg_plat_eth[] = { 
     147        { 
     148                .phy            = 5, 
     149                .rxq            = 3, 
     150                .txreadyq       = 20, 
     151        }, { 
     152                .phy            = 4, 
     153                .rxq            = 4, 
     154                .txreadyq       = 21, 
     155        } 
     156}; 
     157 
     158static struct platform_device fsg_eth[] = { 
     159        { 
     160                .name                   = "ixp4xx_eth", 
     161                .id                     = IXP4XX_ETH_NPEB, 
     162                .dev.platform_data      = fsg_plat_eth, 
     163        }, { 
     164                .name                   = "ixp4xx_eth", 
     165                .id                     = IXP4XX_ETH_NPEC, 
     166                .dev.platform_data      = fsg_plat_eth + 1, 
     167        } 
     168}; 
     169 
    145170static struct platform_device *fsg_devices[] __initdata = { 
    146171        &fsg_i2c_gpio, 
    147172        &fsg_flash, 
    148173#ifdef CONFIG_LEDS_IXP4XX 
    149174        &fsg_leds, 
    150175#endif 
     176        &fsg_eth[0], 
     177        &fsg_eth[1], 
    151178}; 
    152179 
    153180static void __init fsg_init(void) 
Note: See TracBrowser for help on using the browser.