add support for the CF slot on the Pronghorn Metro - needs testing
[openwrt.git] / target / linux / ixp4xx-2.6 / patches / 141-nslu2_setup_mac.patch
1 Index: linux-2.6.19/arch/arm/mach-ixp4xx/nslu2-setup.c
2 ===================================================================
3 --- linux-2.6.19.orig/arch/arm/mach-ixp4xx/nslu2-setup.c
4 +++ linux-2.6.19/arch/arm/mach-ixp4xx/nslu2-setup.c
5 @@ -137,6 +137,29 @@ static struct platform_device nslu2_uart
6 .resource = nslu2_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 = 1,
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 *nslu2_devices[] __initdata = {
33 &nslu2_i2c_controller,
34 &nslu2_flash,
35 @@ -144,6 +166,7 @@ static struct platform_device *nslu2_dev
36 #ifdef CONFIG_LEDS_IXP4XX
37 &nslu2_leds,
38 #endif
39 + &mac0
40 };
41
42 static void nslu2_power_off(void)
This page took 0.048492 seconds and 5 git commands to generate.