Updated ixp4xx ethernet driver to latest upstream patch for 2.6.23 from upstream...
[openwrt.git] / target / linux / ixp4xx / patches / 142-nas100d_setup_mac.patch
1 Index: linux-2.6.19/arch/arm/mach-ixp4xx/nas100d-setup.c
2 ===================================================================
3 --- linux-2.6.19.orig/arch/arm/mach-ixp4xx/nas100d-setup.c
4 +++ linux-2.6.19/arch/arm/mach-ixp4xx/nas100d-setup.c
5 @@ -123,12 +123,36 @@ static struct platform_device nas100d_ua
6 .resource = nas100d_uart_resources,
7 };
8
9 +static struct resource res_mac0 = {
10 + .start = IXP4XX_EthB_BASE_PHYS,
11 + .end = IXP4XX_EthB_BASE_PHYS + 0x1ff,
12 + .flags = IORESOURCE_MEM,
13 +};
14 +
15 +static struct mac_plat_info plat_mac0 = {
16 + .npe_id = 1,
17 + .phy_id = 0,
18 + .eth_id = 0,
19 + .rxq_id = 27,
20 + .txq_id = 24,
21 + .rxdoneq_id = 4,
22 +};
23 +
24 +static struct platform_device mac0 = {
25 + .name = "ixp4xx_mac",
26 + .id = 0,
27 + .dev.platform_data = &plat_mac0,
28 + .num_resources = 1,
29 + .resource = &res_mac0,
30 +};
31 +
32 static struct platform_device *nas100d_devices[] __initdata = {
33 &nas100d_i2c_controller,
34 &nas100d_flash,
35 #ifdef CONFIG_LEDS_IXP4XX
36 &nas100d_leds,
37 #endif
38 + &mac0
39 };
40
41 static void nas100d_power_off(void)
This page took 0.051299 seconds and 5 git commands to generate.