uboot-lantiq: fix boot of images larger than 8MB
[openwrt/openwrt.git] / target / linux / ixp4xx / patches-3.18 / 100-wg302v2_gateway7001_mac_plat_info.patch
1 --- a/arch/arm/mach-ixp4xx/gateway7001-setup.c
2 +++ b/arch/arm/mach-ixp4xx/gateway7001-setup.c
3 @@ -17,6 +17,7 @@
4 #include <linux/serial.h>
5 #include <linux/tty.h>
6 #include <linux/serial_8250.h>
7 +#include <linux/dma-mapping.h>
8
9 #include <asm/types.h>
10 #include <asm/setup.h>
11 @@ -75,9 +76,37 @@ static struct platform_device gateway700
12 .resource = &gateway7001_uart_resource,
13 };
14
15 +static struct eth_plat_info gateway7001_plat_eth[] = {
16 + {
17 + .phy = 1,
18 + .rxq = 3,
19 + .txreadyq = 20,
20 + }, {
21 + .phy = 2,
22 + .rxq = 4,
23 + .txreadyq = 21,
24 + }
25 +};
26 +
27 +static struct platform_device gateway7001_eth[] = {
28 + {
29 + .name = "ixp4xx_eth",
30 + .id = IXP4XX_ETH_NPEB,
31 + .dev.platform_data = gateway7001_plat_eth,
32 + .dev.coherent_dma_mask = DMA_BIT_MASK(32),
33 + }, {
34 + .name = "ixp4xx_eth",
35 + .id = IXP4XX_ETH_NPEC,
36 + .dev.platform_data = gateway7001_plat_eth + 1,
37 + .dev.coherent_dma_mask = DMA_BIT_MASK(32),
38 + }
39 +};
40 +
41 static struct platform_device *gateway7001_devices[] __initdata = {
42 &gateway7001_flash,
43 - &gateway7001_uart
44 + &gateway7001_uart,
45 + &gateway7001_eth[0],
46 + &gateway7001_eth[1],
47 };
48
49 static void __init gateway7001_init(void)
50 --- a/arch/arm/mach-ixp4xx/wg302v2-setup.c
51 +++ b/arch/arm/mach-ixp4xx/wg302v2-setup.c
52 @@ -76,9 +76,26 @@ static struct platform_device wg302v2_ua
53 .resource = &wg302v2_uart_resource,
54 };
55
56 +static struct eth_plat_info wg302v2_plat_eth[] = {
57 + {
58 + .phy = 8,
59 + .rxq = 3,
60 + .txreadyq = 20,
61 + }
62 +};
63 +
64 +static struct platform_device wg302v2_eth[] = {
65 + {
66 + .name = "ixp4xx_eth",
67 + .id = IXP4XX_ETH_NPEB,
68 + .dev.platform_data = wg302v2_plat_eth,
69 + }
70 +};
71 +
72 static struct platform_device *wg302v2_devices[] __initdata = {
73 &wg302v2_flash,
74 &wg302v2_uart,
75 + &wg302v2_eth[0],
76 };
77
78 static void __init wg302v2_init(void)