kernel: add a default for CONFIG_NEW_GPIO
[openwrt.git] / target / linux / ixp4xx / patches-2.6.23 / 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,36 @@
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 = 4,
12 + .rxq = 3,
13 + .txreadyq = 20,
14 + }, {
15 + .phy = 5,
16 + .rxq = 4,
17 + .txreadyq = 21,
18 + }
19 +};
20 +
21 +static struct platform_device ap1000_eth[] = {
22 + {
23 + .name = "ixp4xx_eth",
24 + .id = IXP4XX_ETH_NPEB,
25 + .dev.platform_data = ap1000_plat_eth,
26 + }, {
27 + .name = "ixp4xx_eth",
28 + .id = IXP4XX_ETH_NPEC,
29 + .dev.platform_data = ap1000_plat_eth + 1,
30 + }
31 +};
32 +
33 static struct platform_device *ap1000_devices[] __initdata = {
34 &ap1000_flash,
35 - &ap1000_uart
36 + &ap1000_uart,
37 + &ap1000_eth[0],
38 + &ap1000_eth[1],
39 };
40
41 static char ap1000_mem_fixup[] __initdata = "mem=64M ";
This page took 0.047874 seconds and 5 git commands to generate.