add diag and switch support for brcm47xx-2.6

SVN-Revision: 6562
This commit is contained in:
Felix Fietkau
2007-03-14 01:19:24 +00:00
parent 40c03084c2
commit bf622ab0ae
8 changed files with 212 additions and 71 deletions

View File

@@ -539,8 +539,11 @@ static struct platform_t __init *platform_detect(void)
boardnum = getvar("boardnum");
boardtype = getvar("boardtype");
if (strncmp(getvar("model_no"), "WL700",5) == 0) {
return &platforms[WL700GE]; }
if (strcmp(getvar("nvram_type"), "cfe") == 0)
return &platforms[WGT634U];
if (strncmp(getvar("model_no"), "WL700",5) == 0)
return &platforms[WL700GE];
if (strncmp(getvar("pmon_ver"), "CFE", 3) == 0) {
/* CFE based - newer hardware */