kernel/4.1: update to version 4.1.15
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-4.1 / 573-board_R5010UNv2.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -641,6 +641,51 @@ static struct board_info __initdata boar
4 },
5 },
6 };
7 +
8 +static struct board_info __initdata board_R5010UNV2 = {
9 + .name = "96328ang",
10 + .expected_cpu_id = 0x6328,
11 +
12 + .has_uart0 = 1,
13 + .has_pci = 1,
14 + .use_fallback_sprom = 1,
15 + .has_ohci0 = 1,
16 + .has_ehci0 = 1,
17 + .num_usbh_ports = 1,
18 + .has_enetsw = 1,
19 +
20 + .enetsw = {
21 + .used_ports = {
22 + [0] = {
23 + .used = 1,
24 + .phy_id = 1,
25 + .name = "Port 1",
26 + },
27 + [1] = {
28 + .used = 1,
29 + .phy_id = 2,
30 + .name = "Port 2",
31 + },
32 + [2] = {
33 + .used = 1,
34 + .phy_id = 3,
35 + .name = "Port 3",
36 + },
37 + [3] = {
38 + .used = 1,
39 + .phy_id = 4,
40 + .name = "Port 4",
41 + },
42 + },
43 + },
44 +
45 + .fallback_sprom = {
46 + .type = SPROM_BCM43217,
47 + .pci_bus = 1,
48 + .pci_dev = 0,
49 + },
50 +};
51 +
52 #endif /* CONFIG_BCM63XX_CPU_6328 */
53
54 /*
55 @@ -2452,6 +2497,7 @@ static const struct board_info __initcon
56 &board_A4001N1,
57 &board_dsl_274xb_f1,
58 &board_FAST2704V2,
59 + &board_R5010UNV2,
60 #endif
61 #ifdef CONFIG_BCM63XX_CPU_6338
62 &board_96338gw,
63 @@ -2550,6 +2596,7 @@ static struct of_device_id const bcm963x
64 { .compatible = "comtrend,ar-5381u", .data = &board_AR5381u, },
65 { .compatible = "comtrend,ar-5387un", .data = &board_AR5387un, },
66 { .compatible = "d-link,dsl-274xb-f", .data = &board_dsl_274xb_f1, },
67 + { .compatible = "nucom,r5010unv2", .data = &board_R5010UNV2, },
68 { .compatible = "sagem,f@st2704v2", .data = &board_FAST2704V2, },
69 #endif
70 #ifdef CONFIG_BCM63XX_CPU_6338