uboot-lantiq: fix boot of images larger than 8MB
[openwrt/openwrt.git] / target / linux / ixp4xx / patches-3.18 / 311-gtwx5717_mac_plat_info.patch
1 --- a/arch/arm/mach-ixp4xx/gtwx5715-setup.c
2 +++ b/arch/arm/mach-ixp4xx/gtwx5715-setup.c
3 @@ -28,6 +28,7 @@
4 #include <linux/tty.h>
5 #include <linux/serial_8250.h>
6 #include <linux/spi/spi_gpio_old.h>
7 +#include <linux/dma-mapping.h>
8 #include <asm/types.h>
9 #include <asm/setup.h>
10 #include <asm/memory.h>
11 @@ -178,10 +179,39 @@ static struct platform_device gtwx5715_s
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 = &gtwx5715_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 = &gtwx5715_npec_data,
39 + .dev.coherent_dma_mask = DMA_BIT_MASK(32),
40 +};
41 +
42 static struct platform_device *gtwx5715_devices[] __initdata = {
43 &gtwx5715_uart_device,
44 &gtwx5715_flash,
45 &gtwx5715_spi_bus,
46 + &gtwx5715_npeb_device,
47 + &gtwx5715_npec_device,
48 };
49
50 static void __init gtwx5715_init(void)