brcm63xx: Add DT support for 96338W
[openwrt.git] / target / linux / brcm63xx / patches-3.14 / 370-bcm63xx-add-of_board_ids-for-all-supported-boards.patch
1 From 020faee6d3cef9b3cdda257a255c4007a4b38720 Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jogo@openwrt.org>
3 Date: Tue, 8 Jul 2014 16:17:32 +0200
4 Subject: [PATCH 48/48] MIPS: BCM63XX: add of_board_ids for all supported boards
5
6 ---
7  arch/mips/bcm63xx/boards/board_bcm963xx.c | 18 ++++++++++++++++++
8  1 file changed, 18 insertions(+)
9
10 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
11 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
12 @@ -37,6 +37,7 @@
13  #ifdef CONFIG_BCM63XX_CPU_3368
14  static struct board_info __initdata board_cvg834g = {
15         .name                           = "CVG834G_E15R3921",
16 +       .of_board_id                    = "netgear,cvg834g",
17         .expected_cpu_id                = 0x3368,
18  
19         .has_uart0                      = 1,
20 @@ -69,6 +70,7 @@ static struct board_info __initdata boar
21  #ifdef CONFIG_BCM63XX_CPU_6328
22  static struct board_info __initdata board_96328avng = {
23         .name                           = "96328avng",
24 +       .of_board_id                    = "brcm,bcm96328avng",
25         .expected_cpu_id                = 0x6328,
26  
27         .has_uart0                      = 1,
28 @@ -118,6 +120,7 @@ static struct board_info __initdata boar
29  #ifdef CONFIG_BCM63XX_CPU_6338
30  static struct board_info __initdata board_96338gw = {
31         .name                           = "96338GW",
32 +       .of_board_id                    = "brcm,bcm96338gw",
33         .expected_cpu_id                = 0x6338,
34  
35         .has_uart0                      = 1,
36 @@ -161,6 +164,7 @@ static struct board_info __initdata boar
37  
38  static struct board_info __initdata board_96338w = {
39         .name                           = "96338W",
40 +       .of_board_id                    = "brcm,bcm96338w",
41         .expected_cpu_id                = 0x6338,
42  
43         .has_uart0                      = 1,
44 @@ -207,6 +211,7 @@ static struct board_info __initdata boar
45  #ifdef CONFIG_BCM63XX_CPU_6345
46  static struct board_info __initdata board_96345gw2 = {
47         .name                           = "96345GW2",
48 +       .of_board_id                    = "brcm,bcm96345gw2",
49         .expected_cpu_id                = 0x6345,
50  
51         .has_uart0                      = 1,
52 @@ -219,6 +224,7 @@ static struct board_info __initdata boar
53  #ifdef CONFIG_BCM63XX_CPU_6348
54  static struct board_info __initdata board_96348r = {
55         .name                           = "96348R",
56 +       .of_board_id                    = "brcm,bcm96348r",
57         .expected_cpu_id                = 0x6348,
58  
59         .has_uart0                      = 1,
60 @@ -264,6 +270,7 @@ static struct board_info __initdata boar
61  
62  static struct board_info __initdata board_96348gw_10 = {
63         .name                           = "96348GW-10",
64 +       .of_board_id                    = "brcm,bcm96348gw-10",
65         .expected_cpu_id                = 0x6348,
66  
67         .has_uart0                      = 1,
68 @@ -325,6 +332,7 @@ static struct board_info __initdata boar
69  
70  static struct board_info __initdata board_96348gw_11 = {
71         .name                           = "96348GW-11",
72 +       .of_board_id                    = "brcm,bcm96348gw-11",
73         .expected_cpu_id                = 0x6348,
74  
75         .has_uart0                      = 1,
76 @@ -390,6 +398,7 @@ static struct board_info __initdata boar
77  
78  static struct board_info __initdata board_96348gw = {
79         .name                           = "96348GW",
80 +       .of_board_id                    = "brcm,bcm96348gw",
81         .expected_cpu_id                = 0x6348,
82  
83         .has_uart0                      = 1,
84 @@ -459,6 +468,7 @@ static struct board_info __initdata boar
85  
86  static struct board_info __initdata board_FAST2404 = {
87         .name                           = "F@ST2404",
88 +       .of_board_id                    = "sagem,f@st2404",
89         .expected_cpu_id                = 0x6348,
90  
91         .has_uart0                      = 1,
92 @@ -484,6 +494,7 @@ static struct board_info __initdata boar
93  
94  static struct board_info __initdata board_rta1025w_16 = {
95         .name                           = "RTA1025W_16",
96 +       .of_board_id                    = "dynalink,rta1025w",
97         .expected_cpu_id                = 0x6348,
98  
99         .has_enet0                      = 1,
100 @@ -504,6 +515,7 @@ static struct board_info __initdata boar
101  
102  static struct board_info __initdata board_DV201AMR = {
103         .name                           = "DV201AMR",
104 +       .of_board_id                    = "davolink,dv-201amr",
105         .expected_cpu_id                = 0x6348,
106  
107         .has_uart0                      = 1,
108 @@ -525,6 +537,7 @@ static struct board_info __initdata boar
109  
110  static struct board_info __initdata board_96348gw_a = {
111         .name                           = "96348GW-A",
112 +       .of_board_id                    = "brcm,bcm96348gw-a",
113         .expected_cpu_id                = 0x6348,
114  
115         .has_uart0                      = 1,
116 @@ -552,6 +565,7 @@ static struct board_info __initdata boar
117  #ifdef CONFIG_BCM63XX_CPU_6358
118  static struct board_info __initdata board_96358vw = {
119         .name                           = "96358VW",
120 +       .of_board_id                    = "brcm,bcm96358vw",
121         .expected_cpu_id                = 0x6358,
122  
123         .has_uart0                      = 1,
124 @@ -605,6 +619,7 @@ static struct board_info __initdata boar
125  
126  static struct board_info __initdata board_96358vw2 = {
127         .name                           = "96358VW2",
128 +       .of_board_id                    = "brcm,bcm96358vw2",
129         .expected_cpu_id                = 0x6358,
130  
131         .has_uart0                      = 1,
132 @@ -655,6 +670,7 @@ static struct board_info __initdata boar
133  
134  static struct board_info __initdata board_AGPFS0 = {
135         .name                           = "AGPF-S0",
136 +       .of_board_id                    = "pirelli,agpf-s0",
137         .expected_cpu_id                = 0x6358,
138  
139         .has_uart0                      = 1,
140 @@ -678,6 +694,7 @@ static struct board_info __initdata boar
141  
142  static struct board_info __initdata board_DWVS0 = {
143         .name                           = "DWV-S0",
144 +       .of_board_id                    = "pirelli,a226g",
145         .expected_cpu_id                = 0x6358,
146  
147         .has_enet0                      = 1,