2ab59ff066a06d907aa2cd57350b54c045da5daf
[openwrt/staging/wigyori.git] / target / linux / ixp4xx / patches-2.6.25 / 151-lanready_ap1000_mac_plat_info.patch
1 diff -Nur linux-2.6.23.1/arch/arm/mach-ixp4xx/ap1000-setup.c linux-2.6.23.1-owrt/arch/arm/mach-ixp4xx/ap1000-setup.c
2 --- linux-2.6.23.1/arch/arm/mach-ixp4xx/ap1000-setup.c 2007-11-14 14:11:10.000000000 +0100
3 +++ linux-2.6.23.1-owrt/arch/arm/mach-ixp4xx/ap1000-setup.c 2007-11-14 14:09:30.000000000 +0100
4 @@ -90,9 +90,37 @@
5 .resource = ap1000_uart_resources
6 };
7
8 +/* Built-in 10/100 Ethernet MAC interfaces */
9 +static struct eth_plat_info ap1000_plat_eth[] = {
10 + {
11 + .phy = IXP4XX_ETH_PHY_MAX_ADDR,
12 + .phy_mask = 0x1e,
13 + .rxq = 3,
14 + .txreadyq = 20,
15 + }, {
16 + .phy = 5,
17 + .rxq = 4,
18 + .txreadyq = 21,
19 + }
20 +};
21 +
22 +static struct platform_device ap1000_eth[] = {
23 + {
24 + .name = "ixp4xx_eth",
25 + .id = IXP4XX_ETH_NPEB,
26 + .dev.platform_data = ap1000_plat_eth,
27 + }, {
28 + .name = "ixp4xx_eth",
29 + .id = IXP4XX_ETH_NPEC,
30 + .dev.platform_data = ap1000_plat_eth + 1,
31 + }
32 +};
33 +
34 static struct platform_device *ap1000_devices[] __initdata = {
35 &ap1000_flash,
36 - &ap1000_uart
37 + &ap1000_uart,
38 + &ap1000_eth[0],
39 + &ap1000_eth[1],
40 };
41
42 static char ap1000_mem_fixup[] __initdata = "mem=64M ";