[adm5120] add support for LEDs on the NP28G board, thanks to kenny (closes: #2825)
[openwrt.git] / target / linux / ixp4xx / patches / 310-wg302v2_setup_mac.patch
1 diff -Nur linux-2.6.19.2/arch/arm/mach-ixp4xx/wg302v2-setup.c linux-2.6.19.2-owrt/arch/arm/mach-ixp4xx/wg302v2-setup.c
2 --- linux-2.6.19.2/arch/arm/mach-ixp4xx/wg302v2-setup.c 2007-04-02 16:06:02.000000000 +0200
3 +++ linux-2.6.19.2-owrt/arch/arm/mach-ixp4xx/wg302v2-setup.c 2007-03-05 11:57:24.000000000 +0100
4 @@ -75,9 +75,33 @@
5 .resource = &wg302v2_uart_resource,
6 };
7
8 +static struct resource res_mac0 = {
9 + .start = IXP4XX_EthB_BASE_PHYS,
10 + .end = IXP4XX_EthB_BASE_PHYS + 0x1ff,
11 + .flags = IORESOURCE_MEM,
12 +};
13 +
14 +static struct mac_plat_info plat_mac0 = {
15 + .npe_id = 1,
16 + .phy_id = 8,
17 + .eth_id = 0,
18 + .rxq_id = 27,
19 + .txq_id = 24,
20 + .rxdoneq_id = 4,
21 +};
22 +
23 +static struct platform_device mac0 = {
24 + .name = "ixp4xx_mac",
25 + .id = 0,
26 + .dev.platform_data = &plat_mac0,
27 + .num_resources = 1,
28 + .resource = &res_mac0,
29 +};
30 +
31 static struct platform_device *wg302v2_devices[] __initdata = {
32 &wg302v2_flash,
33 &wg302v2_uart,
34 + &mac0,
35 };
36
37 static void __init wg302v2_init(void)
This page took 0.048832 seconds and 5 git commands to generate.