diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-05-31 12:32:05 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2008-05-31 12:32:05 +0000 |
commit | c772f96e27534f0978682345bf74117a7550b68f (patch) | |
tree | 78872b62ce0e36d99f666c84f163632116586468 /package/broadcom-diag/src | |
parent | 7e7b7dc9e00dc42959174430514dfb74cf2e9b31 (diff) | |
download | upstream-c772f96e27534f0978682345bf74117a7550b68f.tar.gz upstream-c772f96e27534f0978682345bf74117a7550b68f.tar.bz2 upstream-c772f96e27534f0978682345bf74117a7550b68f.zip |
Add Siemens SE505v2 detection to diag (#3416)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11308 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-diag/src')
-rw-r--r-- | package/broadcom-diag/src/diag.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c index a1ee842f4f..a4bad4d00c 100644 --- a/package/broadcom-diag/src/diag.c +++ b/package/broadcom-diag/src/diag.c @@ -491,7 +491,8 @@ static struct platform_t __initdata platforms[] = { /* No usable buttons */ }, .leds = { - { .name = "dmz", .gpio = 1 << 4, .polarity = REVERSE }, +// { .name = "power", .gpio = 1 << 0 .polarity = REVERSE }, // Usable when retrofitting D26 (?) + { .name = "dmz", .gpio = 1 << 4, .polarity = REVERSE }, // actual name WWW { .name = "wlan", .gpio = 1 << 3, .polarity = REVERSE }, }, }, @@ -502,7 +503,7 @@ static struct platform_t __initdata platforms[] = { }, .leds = { { .name = "power", .gpio = 1 << 5, .polarity = REVERSE }, - { .name = "dmz", .gpio = 1 << 0, .polarity = REVERSE }, + { .name = "dmz", .gpio = 1 << 0, .polarity = REVERSE }, // actual name WWW { .name = "wlan", .gpio = 1 << 3, .polarity = REVERSE }, }, }, @@ -770,6 +771,9 @@ static struct platform_t __init *platform_detect(void) if (!strcmp(boardnum, "10496")) return &platforms[USR5461]; + if (!strcmp(getvar("boardtype"), "0x0101") && !strcmp(getvar("boardrev"), "0x10")) /* SE505V2 With Modified CFE */ + return &platforms[SE505V2]; + } else { /* PMON based - old stuff */ if ((simple_strtoul(getvar("GemtekPmonVer"), NULL, 0) == 9) && (simple_strtoul(getvar("et0phyaddr"), NULL, 0) == 30)) { |