blob: dbae347d4dc785daab60535367eecb8f654470b5 [file] [log] [blame]
Markos Chandras4890e2e2014-02-19 10:17:18 +00001#include <linux/errno.h>
Hauke Mehrtens786c4972013-09-18 13:29:57 +02002#include <linux/export.h>
3#include <linux/string.h>
4#include <bcm47xx_board.h>
5#include <bcm47xx_nvram.h>
6
7struct bcm47xx_board_type {
8 const enum bcm47xx_board board;
9 const char *name;
10};
11
12struct bcm47xx_board_type_list1 {
13 struct bcm47xx_board_type board;
14 const char *value1;
15};
16
17struct bcm47xx_board_type_list2 {
18 struct bcm47xx_board_type board;
19 const char *value1;
20 const char *value2;
21};
22
23struct bcm47xx_board_type_list3 {
24 struct bcm47xx_board_type board;
25 const char *value1;
26 const char *value2;
27 const char *value3;
28};
29
30struct bcm47xx_board_store {
31 enum bcm47xx_board board;
32 char name[BCM47XX_BOARD_MAX_NAME];
33};
34
35/* model_name */
36static const
37struct bcm47xx_board_type_list1 bcm47xx_board_list_model_name[] __initconst = {
38 {{BCM47XX_BOARD_DLINK_DIR130, "D-Link DIR-130"}, "DIR-130"},
39 {{BCM47XX_BOARD_DLINK_DIR330, "D-Link DIR-330"}, "DIR-330"},
Hauke Mehrtens89fb3ac2014-01-03 20:42:00 +010040 { {0}, NULL},
Hauke Mehrtens786c4972013-09-18 13:29:57 +020041};
42
43/* model_no */
44static const
45struct bcm47xx_board_type_list1 bcm47xx_board_list_model_no[] __initconst = {
46 {{BCM47XX_BOARD_ASUS_WL700GE, "Asus WL700"}, "WL700"},
Hauke Mehrtens89fb3ac2014-01-03 20:42:00 +010047 { {0}, NULL},
Hauke Mehrtens786c4972013-09-18 13:29:57 +020048};
49
50/* machine_name */
51static const
52struct bcm47xx_board_type_list1 bcm47xx_board_list_machine_name[] __initconst = {
53 {{BCM47XX_BOARD_LINKSYS_WRTSL54GS, "Linksys WRTSL54GS"}, "WRTSL54GS"},
Hauke Mehrtens89fb3ac2014-01-03 20:42:00 +010054 { {0}, NULL},
Hauke Mehrtens786c4972013-09-18 13:29:57 +020055};
56
57/* hardware_version */
58static const
59struct bcm47xx_board_type_list1 bcm47xx_board_list_hardware_version[] __initconst = {
Hauke Mehrtensa2ffb562014-01-03 20:41:58 +010060 {{BCM47XX_BOARD_ASUS_RTN10U, "Asus RT-N10U"}, "RTN10U"},
61 {{BCM47XX_BOARD_ASUS_RTN12, "Asus RT-N12"}, "RT-N12"},
62 {{BCM47XX_BOARD_ASUS_RTN12B1, "Asus RT-N12B1"}, "RTN12B1"},
63 {{BCM47XX_BOARD_ASUS_RTN12C1, "Asus RT-N12C1"}, "RTN12C1"},
64 {{BCM47XX_BOARD_ASUS_RTN12D1, "Asus RT-N12D1"}, "RTN12D1"},
65 {{BCM47XX_BOARD_ASUS_RTN12HP, "Asus RT-N12HP"}, "RTN12HP"},
Hauke Mehrtens786c4972013-09-18 13:29:57 +020066 {{BCM47XX_BOARD_ASUS_RTN16, "Asus RT-N16"}, "RT-N16-"},
67 {{BCM47XX_BOARD_ASUS_WL320GE, "Asus WL320GE"}, "WL320G-"},
68 {{BCM47XX_BOARD_ASUS_WL330GE, "Asus WL330GE"}, "WL330GE-"},
69 {{BCM47XX_BOARD_ASUS_WL500GD, "Asus WL500GD"}, "WL500gd-"},
70 {{BCM47XX_BOARD_ASUS_WL500GPV1, "Asus WL500GP V1"}, "WL500gp-"},
71 {{BCM47XX_BOARD_ASUS_WL500GPV2, "Asus WL500GP V2"}, "WL500GPV2-"},
72 {{BCM47XX_BOARD_ASUS_WL500W, "Asus WL500W"}, "WL500gW-"},
73 {{BCM47XX_BOARD_ASUS_WL520GC, "Asus WL520GC"}, "WL520GC-"},
74 {{BCM47XX_BOARD_ASUS_WL520GU, "Asus WL520GU"}, "WL520GU-"},
Cody P Schafer0dae62e2014-03-02 17:49:29 +010075 {{BCM47XX_BOARD_BELKIN_F7D3301, "Belkin F7D3301"}, "F7D3301"},
76 {{BCM47XX_BOARD_BELKIN_F7D3302, "Belkin F7D3302"}, "F7D3302"},
Hauke Mehrtens786c4972013-09-18 13:29:57 +020077 {{BCM47XX_BOARD_BELKIN_F7D4301, "Belkin F7D4301"}, "F7D4301"},
Cody P Schafer0dae62e2014-03-02 17:49:29 +010078 {{BCM47XX_BOARD_BELKIN_F7D4302, "Belkin F7D4302"}, "F7D4302"},
79 {{BCM47XX_BOARD_BELKIN_F7D4401, "Belkin F7D4401"}, "F7D4401"},
Hauke Mehrtens89fb3ac2014-01-03 20:42:00 +010080 { {0}, NULL},
Hauke Mehrtens786c4972013-09-18 13:29:57 +020081};
82
Hauke Mehrtens250dc032014-07-29 00:12:09 +020083/* hardware_version, boardnum */
84static const
85struct bcm47xx_board_type_list2 bcm47xx_board_list_hw_version_num[] __initconst = {
86 {{BCM47XX_BOARD_MICROSOFT_MN700, "Microsoft MN-700"}, "WL500-", "mn700"},
87 {{BCM47XX_BOARD_ASUS_WL500G, "Asus WL500G"}, "WL500-", "asusX"},
88 { {0}, NULL},
89};
90
Hauke Mehrtens786c4972013-09-18 13:29:57 +020091/* productid */
92static const
93struct bcm47xx_board_type_list1 bcm47xx_board_list_productid[] __initconst = {
94 {{BCM47XX_BOARD_ASUS_RTAC66U, "Asus RT-AC66U"}, "RT-AC66U"},
95 {{BCM47XX_BOARD_ASUS_RTN10, "Asus RT-N10"}, "RT-N10"},
96 {{BCM47XX_BOARD_ASUS_RTN10D, "Asus RT-N10D"}, "RT-N10D"},
Hauke Mehrtens786c4972013-09-18 13:29:57 +020097 {{BCM47XX_BOARD_ASUS_RTN15U, "Asus RT-N15U"}, "RT-N15U"},
98 {{BCM47XX_BOARD_ASUS_RTN16, "Asus RT-N16"}, "RT-N16"},
99 {{BCM47XX_BOARD_ASUS_RTN53, "Asus RT-N53"}, "RT-N53"},
100 {{BCM47XX_BOARD_ASUS_RTN66U, "Asus RT-N66U"}, "RT-N66U"},
101 {{BCM47XX_BOARD_ASUS_WL300G, "Asus WL300G"}, "WL300g"},
102 {{BCM47XX_BOARD_ASUS_WLHDD, "Asus WLHDD"}, "WLHDD"},
Hauke Mehrtens89fb3ac2014-01-03 20:42:00 +0100103 { {0}, NULL},
Hauke Mehrtens786c4972013-09-18 13:29:57 +0200104};
105
106/* ModelId */
107static const
108struct bcm47xx_board_type_list1 bcm47xx_board_list_ModelId[] __initconst = {
109 {{BCM47XX_BOARD_DELL_TM2300, "Dell WX-5565"}, "WX-5565"},
110 {{BCM47XX_BOARD_MOTOROLA_WE800G, "Motorola WE800G"}, "WE800G"},
111 {{BCM47XX_BOARD_MOTOROLA_WR850GP, "Motorola WR850GP"}, "WR850GP"},
112 {{BCM47XX_BOARD_MOTOROLA_WR850GV2V3, "Motorola WR850G"}, "WR850G"},
Hauke Mehrtens89fb3ac2014-01-03 20:42:00 +0100113 { {0}, NULL},
Hauke Mehrtens786c4972013-09-18 13:29:57 +0200114};
115
116/* melco_id or buf1falo_id */
117static const
118struct bcm47xx_board_type_list1 bcm47xx_board_list_melco_id[] __initconst = {
119 {{BCM47XX_BOARD_BUFFALO_WBR2_G54, "Buffalo WBR2-G54"}, "29bb0332"},
120 {{BCM47XX_BOARD_BUFFALO_WHR2_A54G54, "Buffalo WHR2-A54G54"}, "290441dd"},
121 {{BCM47XX_BOARD_BUFFALO_WHR_G125, "Buffalo WHR-G125"}, "32093"},
122 {{BCM47XX_BOARD_BUFFALO_WHR_G54S, "Buffalo WHR-G54S"}, "30182"},
123 {{BCM47XX_BOARD_BUFFALO_WHR_HP_G54, "Buffalo WHR-HP-G54"}, "30189"},
124 {{BCM47XX_BOARD_BUFFALO_WLA2_G54L, "Buffalo WLA2-G54L"}, "29129"},
125 {{BCM47XX_BOARD_BUFFALO_WZR_G300N, "Buffalo WZR-G300N"}, "31120"},
126 {{BCM47XX_BOARD_BUFFALO_WZR_RS_G54, "Buffalo WZR-RS-G54"}, "30083"},
127 {{BCM47XX_BOARD_BUFFALO_WZR_RS_G54HP, "Buffalo WZR-RS-G54HP"}, "30103"},
Hauke Mehrtens89fb3ac2014-01-03 20:42:00 +0100128 { {0}, NULL},
Hauke Mehrtens786c4972013-09-18 13:29:57 +0200129};
130
131/* boot_hw_model, boot_hw_ver */
132static const
133struct bcm47xx_board_type_list2 bcm47xx_board_list_boot_hw[] __initconst = {
134 /* like WRT160N v3.0 */
135 {{BCM47XX_BOARD_CISCO_M10V1, "Cisco M10"}, "M10", "1.0"},
136 /* like WRT310N v2.0 */
137 {{BCM47XX_BOARD_CISCO_M20V1, "Cisco M20"}, "M20", "1.0"},
138 {{BCM47XX_BOARD_LINKSYS_E900V1, "Linksys E900 V1"}, "E900", "1.0"},
139 /* like WRT160N v3.0 */
140 {{BCM47XX_BOARD_LINKSYS_E1000V1, "Linksys E1000 V1"}, "E100", "1.0"},
141 {{BCM47XX_BOARD_LINKSYS_E1000V2, "Linksys E1000 V2"}, "E1000", "2.0"},
142 {{BCM47XX_BOARD_LINKSYS_E1000V21, "Linksys E1000 V2.1"}, "E1000", "2.1"},
143 {{BCM47XX_BOARD_LINKSYS_E1200V2, "Linksys E1200 V2"}, "E1200", "2.0"},
144 {{BCM47XX_BOARD_LINKSYS_E2000V1, "Linksys E2000 V1"}, "Linksys E2000", "1.0"},
145 /* like WRT610N v2.0 */
146 {{BCM47XX_BOARD_LINKSYS_E3000V1, "Linksys E3000 V1"}, "E300", "1.0"},
147 {{BCM47XX_BOARD_LINKSYS_E3200V1, "Linksys E3200 V1"}, "E3200", "1.0"},
148 {{BCM47XX_BOARD_LINKSYS_E4200V1, "Linksys E4200 V1"}, "E4200", "1.0"},
149 {{BCM47XX_BOARD_LINKSYS_WRT150NV11, "Linksys WRT150N V1.1"}, "WRT150N", "1.1"},
150 {{BCM47XX_BOARD_LINKSYS_WRT150NV1, "Linksys WRT150N V1"}, "WRT150N", "1"},
151 {{BCM47XX_BOARD_LINKSYS_WRT160NV1, "Linksys WRT160N V1"}, "WRT160N", "1.0"},
152 {{BCM47XX_BOARD_LINKSYS_WRT160NV3, "Linksys WRT160N V3"}, "WRT160N", "3.0"},
153 {{BCM47XX_BOARD_LINKSYS_WRT300NV11, "Linksys WRT300N V1.1"}, "WRT300N", "1.1"},
154 {{BCM47XX_BOARD_LINKSYS_WRT310NV1, "Linksys WRT310N V1"}, "WRT310N", "1.0"},
155 {{BCM47XX_BOARD_LINKSYS_WRT310NV2, "Linksys WRT310N V2"}, "WRT310N", "2.0"},
156 {{BCM47XX_BOARD_LINKSYS_WRT54G3GV2, "Linksys WRT54G3GV2-VF"}, "WRT54G3GV2-VF", "1.0"},
157 {{BCM47XX_BOARD_LINKSYS_WRT610NV1, "Linksys WRT610N V1"}, "WRT610N", "1.0"},
158 {{BCM47XX_BOARD_LINKSYS_WRT610NV2, "Linksys WRT610N V2"}, "WRT610N", "2.0"},
Hauke Mehrtens89fb3ac2014-01-03 20:42:00 +0100159 { {0}, NULL},
Hauke Mehrtens786c4972013-09-18 13:29:57 +0200160};
161
162/* board_id */
163static const
164struct bcm47xx_board_type_list1 bcm47xx_board_list_board_id[] __initconst = {
165 {{BCM47XX_BOARD_NETGEAR_WGR614V8, "Netgear WGR614 V8"}, "U12H072T00_NETGEAR"},
166 {{BCM47XX_BOARD_NETGEAR_WGR614V9, "Netgear WGR614 V9"}, "U12H094T00_NETGEAR"},
167 {{BCM47XX_BOARD_NETGEAR_WNDR3300, "Netgear WNDR3300"}, "U12H093T00_NETGEAR"},
168 {{BCM47XX_BOARD_NETGEAR_WNDR3400V1, "Netgear WNDR3400 V1"}, "U12H155T00_NETGEAR"},
169 {{BCM47XX_BOARD_NETGEAR_WNDR3400V2, "Netgear WNDR3400 V2"}, "U12H187T00_NETGEAR"},
170 {{BCM47XX_BOARD_NETGEAR_WNDR3400VCNA, "Netgear WNDR3400 Vcna"}, "U12H155T01_NETGEAR"},
171 {{BCM47XX_BOARD_NETGEAR_WNDR3700V3, "Netgear WNDR3700 V3"}, "U12H194T00_NETGEAR"},
172 {{BCM47XX_BOARD_NETGEAR_WNDR4000, "Netgear WNDR4000"}, "U12H181T00_NETGEAR"},
173 {{BCM47XX_BOARD_NETGEAR_WNDR4500V1, "Netgear WNDR4500 V1"}, "U12H189T00_NETGEAR"},
174 {{BCM47XX_BOARD_NETGEAR_WNDR4500V2, "Netgear WNDR4500 V2"}, "U12H224T00_NETGEAR"},
175 {{BCM47XX_BOARD_NETGEAR_WNR2000, "Netgear WNR2000"}, "U12H114T00_NETGEAR"},
176 {{BCM47XX_BOARD_NETGEAR_WNR3500L, "Netgear WNR3500L"}, "U12H136T99_NETGEAR"},
177 {{BCM47XX_BOARD_NETGEAR_WNR3500U, "Netgear WNR3500U"}, "U12H136T00_NETGEAR"},
178 {{BCM47XX_BOARD_NETGEAR_WNR3500V2, "Netgear WNR3500 V2"}, "U12H127T00_NETGEAR"},
179 {{BCM47XX_BOARD_NETGEAR_WNR3500V2VC, "Netgear WNR3500 V2vc"}, "U12H127T70_NETGEAR"},
180 {{BCM47XX_BOARD_NETGEAR_WNR834BV2, "Netgear WNR834B V2"}, "U12H081T00_NETGEAR"},
Hauke Mehrtens89fb3ac2014-01-03 20:42:00 +0100181 { {0}, NULL},
Hauke Mehrtens786c4972013-09-18 13:29:57 +0200182};
183
184/* boardtype, boardnum, boardrev */
185static const
186struct bcm47xx_board_type_list3 bcm47xx_board_list_board[] __initconst = {
187 {{BCM47XX_BOARD_HUAWEI_E970, "Huawei E970"}, "0x048e", "0x5347", "0x11"},
188 {{BCM47XX_BOARD_PHICOMM_M1, "Phicomm M1"}, "0x0590", "80", "0x1104"},
189 {{BCM47XX_BOARD_ZTE_H218N, "ZTE H218N"}, "0x053d", "1234", "0x1305"},
Hauke Mehrtensa2ffb562014-01-03 20:41:58 +0100190 {{BCM47XX_BOARD_NETGEAR_WNR3500L, "Netgear WNR3500L"}, "0x04CF", "3500", "02"},
Rafał Miłecki41a867c2014-06-20 07:56:39 +0200191 {{BCM47XX_BOARD_LINKSYS_WRT54G_TYPE_0101, "Linksys WRT54G/GS/GL"}, "0x0101", "42", "0x10"},
192 {{BCM47XX_BOARD_LINKSYS_WRT54G_TYPE_0467, "Linksys WRT54G/GS/GL"}, "0x0467", "42", "0x10"},
193 {{BCM47XX_BOARD_LINKSYS_WRT54G_TYPE_0708, "Linksys WRT54G/GS/GL"}, "0x0708", "42", "0x10"},
Hauke Mehrtens89fb3ac2014-01-03 20:42:00 +0100194 { {0}, NULL},
Hauke Mehrtens786c4972013-09-18 13:29:57 +0200195};
196
Hauke Mehrtensd508eb72014-03-02 17:49:28 +0100197/* boardtype, boardrev */
198static const
199struct bcm47xx_board_type_list2 bcm47xx_board_list_board_type_rev[] __initconst = {
200 {{BCM47XX_BOARD_SIEMENS_SE505V2, "Siemens SE505 V2"}, "0x0101", "0x10"},
201 { {0}, NULL},
202};
203
Hauke Mehrtens786c4972013-09-18 13:29:57 +0200204static const
205struct bcm47xx_board_type bcm47xx_board_unknown[] __initconst = {
206 {BCM47XX_BOARD_UNKNOWN, "Unknown Board"},
207};
208
209static struct bcm47xx_board_store bcm47xx_board = {BCM47XX_BOARD_NO, "Unknown Board"};
210
211static __init const struct bcm47xx_board_type *bcm47xx_board_get_nvram(void)
212{
213 char buf1[30];
214 char buf2[30];
215 char buf3[30];
216 const struct bcm47xx_board_type_list1 *e1;
217 const struct bcm47xx_board_type_list2 *e2;
218 const struct bcm47xx_board_type_list3 *e3;
219
220 if (bcm47xx_nvram_getenv("model_name", buf1, sizeof(buf1)) >= 0) {
221 for (e1 = bcm47xx_board_list_model_name; e1->value1; e1++) {
222 if (!strcmp(buf1, e1->value1))
223 return &e1->board;
224 }
225 }
226
227 if (bcm47xx_nvram_getenv("model_no", buf1, sizeof(buf1)) >= 0) {
228 for (e1 = bcm47xx_board_list_model_no; e1->value1; e1++) {
229 if (strstarts(buf1, e1->value1))
230 return &e1->board;
231 }
232 }
233
234 if (bcm47xx_nvram_getenv("machine_name", buf1, sizeof(buf1)) >= 0) {
235 for (e1 = bcm47xx_board_list_machine_name; e1->value1; e1++) {
236 if (strstarts(buf1, e1->value1))
237 return &e1->board;
238 }
239 }
240
241 if (bcm47xx_nvram_getenv("hardware_version", buf1, sizeof(buf1)) >= 0) {
242 for (e1 = bcm47xx_board_list_hardware_version; e1->value1; e1++) {
243 if (strstarts(buf1, e1->value1))
244 return &e1->board;
245 }
246 }
247
Hauke Mehrtens250dc032014-07-29 00:12:09 +0200248 if (bcm47xx_nvram_getenv("hardware_version", buf1, sizeof(buf1)) >= 0 &&
249 bcm47xx_nvram_getenv("boardtype", buf2, sizeof(buf2)) >= 0) {
250 for (e2 = bcm47xx_board_list_boot_hw; e2->value1; e2++) {
251 if (!strstarts(buf1, e2->value1) &&
252 !strcmp(buf2, e2->value2))
253 return &e2->board;
254 }
255 }
256
Hauke Mehrtens786c4972013-09-18 13:29:57 +0200257 if (bcm47xx_nvram_getenv("productid", buf1, sizeof(buf1)) >= 0) {
258 for (e1 = bcm47xx_board_list_productid; e1->value1; e1++) {
259 if (!strcmp(buf1, e1->value1))
260 return &e1->board;
261 }
262 }
263
264 if (bcm47xx_nvram_getenv("ModelId", buf1, sizeof(buf1)) >= 0) {
265 for (e1 = bcm47xx_board_list_ModelId; e1->value1; e1++) {
266 if (!strcmp(buf1, e1->value1))
267 return &e1->board;
268 }
269 }
270
271 if (bcm47xx_nvram_getenv("melco_id", buf1, sizeof(buf1)) >= 0 ||
272 bcm47xx_nvram_getenv("buf1falo_id", buf1, sizeof(buf1)) >= 0) {
273 /* buffalo hardware, check id for specific hardware matches */
274 for (e1 = bcm47xx_board_list_melco_id; e1->value1; e1++) {
275 if (!strcmp(buf1, e1->value1))
276 return &e1->board;
277 }
278 }
279
280 if (bcm47xx_nvram_getenv("boot_hw_model", buf1, sizeof(buf1)) >= 0 &&
281 bcm47xx_nvram_getenv("boot_hw_ver", buf2, sizeof(buf2)) >= 0) {
282 for (e2 = bcm47xx_board_list_boot_hw; e2->value1; e2++) {
283 if (!strcmp(buf1, e2->value1) &&
284 !strcmp(buf2, e2->value2))
285 return &e2->board;
286 }
287 }
288
289 if (bcm47xx_nvram_getenv("board_id", buf1, sizeof(buf1)) >= 0) {
290 for (e1 = bcm47xx_board_list_board_id; e1->value1; e1++) {
291 if (!strcmp(buf1, e1->value1))
292 return &e1->board;
293 }
294 }
295
296 if (bcm47xx_nvram_getenv("boardtype", buf1, sizeof(buf1)) >= 0 &&
297 bcm47xx_nvram_getenv("boardnum", buf2, sizeof(buf2)) >= 0 &&
298 bcm47xx_nvram_getenv("boardrev", buf3, sizeof(buf3)) >= 0) {
299 for (e3 = bcm47xx_board_list_board; e3->value1; e3++) {
300 if (!strcmp(buf1, e3->value1) &&
301 !strcmp(buf2, e3->value2) &&
302 !strcmp(buf3, e3->value3))
303 return &e3->board;
304 }
305 }
Hauke Mehrtensd508eb72014-03-02 17:49:28 +0100306
307 if (bcm47xx_nvram_getenv("boardtype", buf1, sizeof(buf1)) >= 0 &&
308 bcm47xx_nvram_getenv("boardrev", buf2, sizeof(buf2)) >= 0 &&
309 bcm47xx_nvram_getenv("boardnum", buf3, sizeof(buf3)) == -ENOENT) {
310 for (e2 = bcm47xx_board_list_board_type_rev; e2->value1; e2++) {
311 if (!strcmp(buf1, e2->value1) &&
312 !strcmp(buf2, e2->value2))
313 return &e2->board;
314 }
315 }
Hauke Mehrtens786c4972013-09-18 13:29:57 +0200316 return bcm47xx_board_unknown;
317}
318
319void __init bcm47xx_board_detect(void)
320{
321 int err;
322 char buf[10];
323 const struct bcm47xx_board_type *board_detected;
324
325 if (bcm47xx_board.board != BCM47XX_BOARD_NO)
326 return;
327
328 /* check if the nvram is available */
329 err = bcm47xx_nvram_getenv("boardtype", buf, sizeof(buf));
330
331 /* init of nvram failed, probably too early now */
332 if (err == -ENXIO) {
333 return;
334 }
335
336 board_detected = bcm47xx_board_get_nvram();
337 bcm47xx_board.board = board_detected->board;
338 strlcpy(bcm47xx_board.name, board_detected->name,
339 BCM47XX_BOARD_MAX_NAME);
340}
341
342enum bcm47xx_board bcm47xx_board_get(void)
343{
344 return bcm47xx_board.board;
345}
346EXPORT_SYMBOL(bcm47xx_board_get);
347
348const char *bcm47xx_board_get_name(void)
349{
350 return bcm47xx_board.name;
351}
352EXPORT_SYMBOL(bcm47xx_board_get_name);