diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-12-11 21:46:31 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-12-11 21:46:31 +0000 |
commit | d313d6dbc3d9b248cffb07b55d75f538457da896 (patch) | |
tree | a1145b61a4b06844569cdb3c1d42da4bb1d14b8d /package/switch/src | |
parent | 6e336367e4a1db5404202ccf58910e945db0af4f (diff) |
Add Trendware TEW-411BRplus (#1038)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5764 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/switch/src')
-rw-r--r-- | package/switch/src/switch-adm.c | 11 |
1 files changed, 10 insertions, 1 deletions
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); |