From 7790289f3e47f73861913e1ce72e26a853456dd5 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Mon, 11 Dec 2006 21:46:31 +0000 Subject: Add Trendware TEW-411BRplus (#1038) SVN-Revision: 5764 --- package/switch/src/switch-adm.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'package/switch/src') diff --git a/package/switch/src/switch-adm.c b/package/switch/src/switch-adm.c index 083b6ebc47..beaf9ca787 100644 --- a/package/switch/src/switch-adm.c +++ b/package/switch/src/switch-adm.c @@ -498,8 +498,17 @@ static int detect_adm(void) #if defined(BCMGPIO2) || defined(BCMGPIO) int boardflags = atoi(nvram_get("boardflags")); + int boardnum = atoi(nvram_get("boardnum")); - if ((boardflags & 0x80) || force) { + if (boardnum == 44) { /* Trendware TEW-411BRP+ */ + ret = 1; + + eecs = getgpiopin("adm_eecs", 2); + eesk = getgpiopin("adm_eesk", 3); + eedi = getgpiopin("adm_eedi", 4); + eerc = getgpiopin("adm_rc", 5); + + } else if ((boardflags & 0x80) || force) { ret = 1; eecs = getgpiopin("adm_eecs", 2); -- cgit v1.2.3