From 9f04a7283dd6f342a7a05fe52c20a5457bf8fce6 Mon Sep 17 00:00:00 2001 From: mbm Date: Thu, 16 Sep 2004 09:48:08 +0000 Subject: [PATCH] reset button fix for dell truemobile git-svn-id: svn://svn.openwrt.org/openwrt/trunk@157 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../sources/openwrt/kernel/diag.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/obsolete-buildroot/sources/openwrt/kernel/diag.c b/obsolete-buildroot/sources/openwrt/kernel/diag.c index 7b4162988..1fe2baf5d 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; -- 2.20.1