projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add wget2nand from David Goodenough, useful for RouterOS to OpenWrt migration
[openwrt.git]
/
package
/
broadcom-diag
/
src
/
diag.c
diff --git
a/package/broadcom-diag/src/diag.c
b/package/broadcom-diag/src/diag.c
index
5b9ff02
..
2441ce9
100644
(file)
--- a/
package/broadcom-diag/src/diag.c
+++ b/
package/broadcom-diag/src/diag.c
@@
-503,7
+503,7
@@
static struct platform_t __initdata platforms[] = {
{ .name = "reset", .gpio = 1 << 2 },
},
.leds = {
{ .name = "reset", .gpio = 1 << 2 },
},
.leds = {
- { .name = "power", .gpio = 1 << 3, .polarity =
REVERSE
},
+ { .name = "power", .gpio = 1 << 3, .polarity =
NORMAL
},
},
},
/* Trendware */
},
},
/* Trendware */
@@
-539,8
+539,11
@@
static struct platform_t __init *platform_detect(void)
boardnum = getvar("boardnum");
boardtype = getvar("boardtype");
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 */
if (strncmp(getvar("pmon_ver"), "CFE", 3) == 0) {
/* CFE based - newer hardware */
This page took
0.025535 seconds
and
4
git commands to generate.