[kernel] 2.6.26: fix gpio_dev compile error
[openwrt.git] / target / linux / ixp4xx / patches-2.6.24 / 151-lanready_ap1000_mac_plat_info.patch
1 Index: linux-2.6.24.7/arch/arm/mach-ixp4xx/ap1000-setup.c
2 ===================================================================
3 --- linux-2.6.24.7.orig/arch/arm/mach-ixp4xx/ap1000-setup.c
4 +++ linux-2.6.24.7/arch/arm/mach-ixp4xx/ap1000-setup.c
5 @@ -90,9 +90,37 @@ static struct platform_device ap1000_uar
6 .resource = ap1000_uart_resources
7 };
8
9 +/* Built-in 10/100 Ethernet MAC interfaces */
10 +static struct eth_plat_info ap1000_plat_eth[] = {
11 + {
12 + .phy = IXP4XX_ETH_PHY_MAX_ADDR,
13 + .phy_mask = 0x1e,
14 + .rxq = 3,
15 + .txreadyq = 20,
16 + }, {
17 + .phy = 5,
18 + .rxq = 4,
19 + .txreadyq = 21,
20 + }
21 +};
22 +
23 +static struct platform_device ap1000_eth[] = {
24 + {
25 + .name = "ixp4xx_eth",
26 + .id = IXP4XX_ETH_NPEB,
27 + .dev.platform_data = ap1000_plat_eth,
28 + }, {
29 + .name = "ixp4xx_eth",
30 + .id = IXP4XX_ETH_NPEC,
31 + .dev.platform_data = ap1000_plat_eth + 1,
32 + }
33 +};
34 +
35 static struct platform_device *ap1000_devices[] __initdata = {
36 &ap1000_flash,
37 - &ap1000_uart
38 + &ap1000_uart,
39 + &ap1000_eth[0],
40 + &ap1000_eth[1],
41 };
42
43 static char ap1000_mem_fixup[] __initdata = "mem=64M ";
This page took 0.046594 seconds and 5 git commands to generate.