OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | --- a/arch/arm/mach-ixp4xx/gtwx5715-setup.c |
2 | +++ b/arch/arm/mach-ixp4xx/gtwx5715-setup.c |
||
3 | @@ -29,6 +29,7 @@ |
||
4 | #include <linux/serial_8250.h> |
||
5 | #include <linux/spi/spi.h> |
||
6 | #include <linux/spi/spi_gpio.h> |
||
7 | +#include <linux/dma-mapping.h> |
||
8 | #include <asm/types.h> |
||
9 | #include <asm/setup.h> |
||
10 | #include <asm/memory.h> |
||
11 | @@ -174,11 +175,39 @@ static struct spi_board_info gtwx5715_sp |
||
12 | } |
||
13 | }; |
||
14 | |||
15 | +static struct eth_plat_info gtwx5715_npeb_data = { |
||
16 | + .phy = IXP4XX_ETH_PHY_MAX_ADDR, |
||
17 | + .phy_mask = 0x1e, /* ports 1-4 of the KS8995 switch */ |
||
18 | + .rxq = 3, |
||
19 | + .txreadyq = 20, |
||
20 | +}; |
||
21 | + |
||
22 | +static struct eth_plat_info gtwx5715_npec_data = { |
||
23 | + .phy = 5, /* port 5 of the KS8995 switch */ |
||
24 | + .rxq = 4, |
||
25 | + .txreadyq = 21, |
||
26 | +}; |
||
27 | + |
||
28 | +static struct platform_device gtwx5715_npeb_device = { |
||
29 | + .name = "ixp4xx_eth", |
||
30 | + .id = IXP4XX_ETH_NPEB, |
||
31 | + .dev.platform_data = >wx5715_npeb_data, |
||
32 | + .dev.coherent_dma_mask = DMA_BIT_MASK(32), |
||
33 | +}; |
||
34 | + |
||
35 | +static struct platform_device gtwx5715_npec_device = { |
||
36 | + .name = "ixp4xx_eth", |
||
37 | + .id = IXP4XX_ETH_NPEC, |
||
38 | + .dev.platform_data = >wx5715_npec_data, |
||
39 | + .dev.coherent_dma_mask = DMA_BIT_MASK(32), |
||
40 | +}; |
||
41 | |||
42 | static struct platform_device *gtwx5715_devices[] __initdata = { |
||
43 | >wx5715_uart_device, |
||
44 | >wx5715_flash, |
||
45 | >wx5715_spi_device, |
||
46 | + >wx5715_npeb_device, |
||
47 | + >wx5715_npec_device, |
||
48 | }; |
||
49 | |||
50 | static void __init gtwx5715_init(void) |