swap uart numbering on Pronghorn
[openwrt.git] / target / linux / ixp4xx / patches / 310-wg302v2_setup_mac.patch
1 Index: linux-2.6.21.7/arch/arm/mach-ixp4xx/wg302v2-setup.c
2 ===================================================================
3 --- linux-2.6.21.7.orig/arch/arm/mach-ixp4xx/wg302v2-setup.c
4 +++ linux-2.6.21.7/arch/arm/mach-ixp4xx/wg302v2-setup.c
5 @@ -75,9 +75,33 @@ static struct platform_device wg302v2_ua
6 .resource = &wg302v2_uart_resource,
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 = 8,
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 *wg302v2_devices[] __initdata = {
33 &wg302v2_flash,
34 &wg302v2_uart,
35 + &mac0,
36 };
37
38 static void __init wg302v2_init(void)
This page took 0.044664 seconds and 5 git commands to generate.