diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-08-28 14:20:37 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-08-28 14:20:37 +0000 |
commit | 850d085e8b35c1099ee1b11c3ca8542bb31e93da (patch) | |
tree | 53c46b12e82aa19d0f4d22495279b9a6f7f36730 /package/broadcom-57xx/src | |
parent | 6852fee1ceaa91d16643a40bef60585617435c95 (diff) | |
download | upstream-850d085e8b35c1099ee1b11c3ca8542bb31e93da.tar.gz upstream-850d085e8b35c1099ee1b11c3ca8542bb31e93da.tar.bz2 upstream-850d085e8b35c1099ee1b11c3ca8542bb31e93da.zip |
Added support for identifying the BCM53115 switch found in WRT610N.
Signed-off-by: Tomas Kopal <Tomas.Kopal@altap.cz>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17433 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-57xx/src')
-rw-r--r-- | package/broadcom-57xx/src/bcmrobo.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/package/broadcom-57xx/src/bcmrobo.c b/package/broadcom-57xx/src/bcmrobo.c index 7a5434b506..b60db494a4 100644 --- a/package/broadcom-57xx/src/bcmrobo.c +++ b/package/broadcom-57xx/src/bcmrobo.c @@ -96,6 +96,7 @@ #define DEVID5395 0x95 /* 5395 */ #define DEVID5397 0x97 /* 5397 */ #define DEVID5398 0x98 /* 5398 */ +#define DEVID53115 0x3115 /* 53115 */ /* VLAN page registers */ #define REG_VLAN_CTRL0 0x00 /* VLAN Control 0 register */ @@ -891,7 +892,8 @@ bcm_robo_attach(sb_t *sbh, void *h, char *name, char *vars, miird_f miird, miiwr ASSERT((robo->devid == DEVID5325) || (robo->devid == DEVID5395) || (robo->devid == DEVID5397) || - (robo->devid == DEVID5398)); + (robo->devid == DEVID5398) || + (robo->devid == DEVID53115)); bcm_robo_reset(robo); config_attach(robo); @@ -1253,7 +1255,7 @@ static int handle_vlan_port_write(void *driver, char *buf, int nr) val32 = ((c->untag << 9) | /* untag enable */ c->port); /* vlan members */ - if (robo->devid == DEVID5395) { + if ((robo->devid == DEVID5395) || (robo->devid == DEVID53115)) { vtble = REG_VTBL_ENTRY_5395; vtbli = REG_VTBL_INDX_5395; vtbla = REG_VTBL_ACCESS_5395; |