diff options
author | Mike Baker <mbm@openwrt.org> | 2004-09-16 09:48:08 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2004-09-16 09:48:08 +0000 |
commit | 9dbd2c3627c8aae65201b5dc6a3f35eed41c3b6d (patch) | |
tree | b8cfdd24d5fe470ec26ef91b4ce933ac42565b8d /obsolete-buildroot/sources | |
parent | ecbdbb661742f5abbb4673787a5e497027246b18 (diff) | |
download | upstream-9dbd2c3627c8aae65201b5dc6a3f35eed41c3b6d.tar.gz upstream-9dbd2c3627c8aae65201b5dc6a3f35eed41c3b6d.tar.bz2 upstream-9dbd2c3627c8aae65201b5dc6a3f35eed41c3b6d.zip |
reset button fix for dell truemobile
SVN-Revision: 157
Diffstat (limited to 'obsolete-buildroot/sources')
-rw-r--r-- | obsolete-buildroot/sources/openwrt/kernel/diag.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/obsolete-buildroot/sources/openwrt/kernel/diag.c b/obsolete-buildroot/sources/openwrt/kernel/diag.c index 7b4162988e..1fe2baf5d2 100644 --- a/obsolete-buildroot/sources/openwrt/kernel/diag.c +++ b/obsolete-buildroot/sources/openwrt/kernel/diag.c @@ -166,11 +166,18 @@ static int __init diag_init() reset_polarity=1; } } else if (!strcmp(buf,"bcm94710ap")) { - // buffalo - set_diag=ignore; - set_dmz=v2_set_dmz; - reset_gpio=(1<<4); - reset_polarity=1; + buf=nvram_get("boardnum")?:""; + if (!strcmp(buf,"44")) { + //dell truemobile + set_dmz=v2_set_dmz; + reset_gpio=(1<<0); + reset_polarity=0; + } else { + // buffalo + set_dmz=v2_set_dmz; + reset_gpio=(1<<4); + reset_polarity=1; + } } } else { board_type=2; |