OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | --- a/arch/arm/mach-ixp4xx/ap1000-setup.c |
2 | +++ b/arch/arm/mach-ixp4xx/ap1000-setup.c |
||
3 | @@ -91,9 +91,39 @@ static struct platform_device ap1000_uar |
||
4 | .resource = ap1000_uart_resources |
||
5 | }; |
||
6 | |||
7 | +/* Built-in 10/100 Ethernet MAC interfaces */ |
||
8 | +static struct eth_plat_info ap1000_plat_eth[] = { |
||
9 | + { |
||
10 | + .phy = IXP4XX_ETH_PHY_MAX_ADDR, |
||
11 | + .phy_mask = 0x1e, |
||
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 | + .dev.coherent_dma_mask = DMA_BIT_MASK(32), |
||
27 | + }, { |
||
28 | + .name = "ixp4xx_eth", |
||
29 | + .id = IXP4XX_ETH_NPEC, |
||
30 | + .dev.platform_data = ap1000_plat_eth + 1, |
||
31 | + .dev.coherent_dma_mask = DMA_BIT_MASK(32), |
||
32 | + } |
||
33 | +}; |
||
34 | + |
||
35 | static struct platform_device *ap1000_devices[] __initdata = { |
||
36 | - &ap1000_flash, |
||
37 | - &ap1000_uart |
||
38 | + &ap1000_flash, |
||
39 | + &ap1000_uart, |
||
40 | + &ap1000_eth[0], |
||
41 | + &ap1000_eth[1], |
||
42 | }; |
||
43 | |||
44 | static char ap1000_mem_fixup[] __initdata = "mem=64M "; |