diff options
Diffstat (limited to 'target/linux/ixp4xx/patches-2.6.23/052-nas100d_mac_plat_info.patch')
-rw-r--r-- | target/linux/ixp4xx/patches-2.6.23/052-nas100d_mac_plat_info.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/target/linux/ixp4xx/patches-2.6.23/052-nas100d_mac_plat_info.patch b/target/linux/ixp4xx/patches-2.6.23/052-nas100d_mac_plat_info.patch new file mode 100644 index 0000000..3196e03 --- /dev/null +++ b/target/linux/ixp4xx/patches-2.6.23/052-nas100d_mac_plat_info.patch @@ -0,0 +1,35 @@ +diff --git a/arch/arm/mach-ixp4xx/nas100d-setup.c b/arch/arm/mach-ixp4xx/nas100d-setup.c +index 54d884f..d4d8540 100644 +--- a/arch/arm/mach-ixp4xx/nas100d-setup.c ++++ b/arch/arm/mach-ixp4xx/nas100d-setup.c +@@ -125,12 +125,30 @@ static struct platform_device nas100d_uart = { + .resource = nas100d_uart_resources, + }; + ++/* Built-in 10/100 Ethernet MAC interfaces */ ++static struct eth_plat_info nas100d_plat_eth[] = { ++ { ++ .phy = 0, ++ .rxq = 3, ++ .txreadyq = 20, ++ } ++}; ++ ++static struct platform_device nas100d_eth[] = { ++ { ++ .name = "ixp4xx_eth", ++ .id = IXP4XX_ETH_NPEB, ++ .dev.platform_data = nas100d_plat_eth, ++ } ++}; ++ + static struct platform_device *nas100d_devices[] __initdata = { + &nas100d_i2c_gpio, + &nas100d_flash, + #ifdef CONFIG_LEDS_IXP4XX + &nas100d_leds, + #endif ++ &nas100d_eth[0], + }; + + static void nas100d_power_off(void) |