brcm63xx: switch to linux 4.4
[openwrt/staging/dedeckeh.git] / target / linux / brcm63xx / patches-4.1 / 521-bcm63xx-add-support-for-96368MVNgr-board.patch
1 From f457fc2eb9bb915b5a4d251c7c68d4694cf07b01 Mon Sep 17 00:00:00 2001
2 From: Maxime Bizon <mbizon@freebox.fr>
3 Date: Fri, 4 Nov 2011 12:33:48 +0100
4 Subject: [PATCH 33/63] bcm63xx: add support for 96368MVNgr board.
5
6 ---
7 arch/mips/bcm63xx/boards/board_bcm963xx.c | 67 +++++++++++++++++++++++++++++
8 1 files changed, 67 insertions(+), 0 deletions(-)
9
10 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
11 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
12 @@ -1183,6 +1183,46 @@ static struct board_info __initdata boar
13 .has_ohci0 = 1,
14 .has_ehci0 = 1,
15 };
16 +
17 +static struct board_info __initdata board_96368mvngr = {
18 + .name = "96368MVNgr",
19 + .expected_cpu_id = 0x6368,
20 +
21 + .has_uart0 = 1,
22 + .has_pci = 1,
23 + .has_enetsw = 1,
24 +
25 + .enetsw = {
26 + .used_ports = {
27 + [0] = {
28 + .used = 1,
29 + .phy_id = 1,
30 + .name = "port1",
31 + },
32 +
33 + [1] = {
34 + .used = 1,
35 + .phy_id = 2,
36 + .name = "port2",
37 + },
38 +
39 + [2] = {
40 + .used = 1,
41 + .phy_id = 3,
42 + .name = "port3",
43 + },
44 +
45 + [3] = {
46 + .used = 1,
47 + .phy_id = 4,
48 + .name = "port4",
49 + },
50 + },
51 + },
52 +
53 + .has_ohci0 = 1,
54 + .has_ehci0 = 1,
55 +};
56 #endif /* CONFIG_BCM63XX_CPU_6368 */
57
58 /*
59 @@ -1240,6 +1280,7 @@ static const struct board_info __initcon
60
61 #ifdef CONFIG_BCM63XX_CPU_6368
62 &board_96368mvwg,
63 + &board_96368mvngr,
64 #endif
65 };
66
67 @@ -1301,6 +1342,7 @@ static struct of_device_id const bcm963x
68 { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
69 #endif
70 #ifdef CONFIG_BCM63XX_CPU_6368
71 + { .compatible = "brcm,bcm96368mvngr", .data = &board_96368mvngr, },
72 { .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },
73 #endif
74 #ifdef CONFIG_BCM63XX_CPU_63268