1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

Add Trendware TEW-411BRplus (#1038)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5764 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian
2006-12-11 21:46:31 +00:00
parent 6e336367e4
commit d313d6dbc3
2 changed files with 29 additions and 1 deletions

View File

@@ -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);