brcm63xx: refresh patches
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-3.18 / 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 @@ -1996,6 +1996,72 @@ 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 + .leds = {
54 + {
55 + .name = "96368MVNgr:green:adsl",
56 + .gpio = 2,
57 + .active_low = 1,
58 + },
59 + {
60 + .name = "96368MVNgr:green:inet",
61 + .gpio = 5,
62 + },
63 + {
64 + .name = "96368MVNgr:green:power",
65 + .gpio = 22,
66 + .default_trigger = "default-on",
67 + },
68 + {
69 + .name = "96368MVNgr:green:wps",
70 + .gpio = 23,
71 + .active_low = 1,
72 + },
73 + {
74 + .name = "96368MVNgr:green:inet-fail",
75 + .gpio = 3,
76 + },
77 + },
78 +
79 + .has_ohci0 = 1,
80 + .has_ehci0 = 1,
81 +};
82 #endif /* CONFIG_BCM63XX_CPU_6368 */
83
84 /*
85 @@ -2053,6 +2119,7 @@ static const struct board_info __initcon
86
87 #ifdef CONFIG_BCM63XX_CPU_6368
88 &board_96368mvwg,
89 + &board_96368mvngr,
90 #endif
91 };
92
93 @@ -2108,6 +2175,7 @@ static struct of_device_id const bcm963x
94 { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
95 #endif
96 #ifdef CONFIG_BCM63XX_CPU_6368
97 + { .compatible = "brcm,bcm96368mvngr", .data = &board_96368mvngr, },
98 { .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },
99 #endif
100 #ifdef CONFIG_BCM63XX_CPU_63268