brcm63xx: add and enable support for loading an appended dtb
[openwrt/svn-archive/archive.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 @@ -41,6 +41,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 @@ -73,6 +74,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 @@ -122,6 +124,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 @@ -165,6 +168,7 @@ static struct board_info __initdata boar
37
38 static struct board_info __initdata board_96338w = {
39 .name = "96338W",
40 + .of_board_id = "brcm,96338w",
41 .expected_cpu_id = 0x6338,
42
43 .has_uart0 = 1,
44 @@ -211,6 +215,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 @@ -223,6 +228,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 @@ -268,6 +274,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 @@ -329,6 +336,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 @@ -394,6 +402,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 @@ -463,6 +472,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 @@ -488,6 +498,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 @@ -508,6 +519,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 @@ -529,6 +541,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 @@ -556,6 +569,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 @@ -609,6 +623,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 @@ -659,6 +674,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 @@ -682,6 +698,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,