2
0
forked from Ivasoft/openwrt

mvsw61xx: rework chip recognition

Recognizes 88E6171/6172/6176 at the moment.

Signed-off-by: Claudio Leite <leitec@staticky.com>

SVN-Revision: 43936
This commit is contained in:
Luka Perkov
2015-01-11 17:20:03 +00:00
parent a1872182bb
commit 1e39f3aef8
2 changed files with 31 additions and 10 deletions

View File

@@ -190,9 +190,16 @@ enum {
};
#define MV_INDIRECT_ADDR_S 5
#define MV_IDENT_MASK 0xffc0
#define MV_IDENT_VALUE 0x1700
#define MV_IDENT_STR "MV88E617x"
#define MV_IDENT_MASK 0xfff0
#define MV_IDENT_VALUE_6171 0x1710
#define MV_IDENT_STR_6171 "MV88E6171"
#define MV_IDENT_VALUE_6172 0x1720
#define MV_IDENT_STR_6172 "MV88E6172"
#define MV_IDENT_VALUE_6176 0x1760
#define MV_IDENT_STR_6176 "MV88E6176"
#define MV_PVID_MASK 0x0fff
@@ -200,6 +207,7 @@ struct mvsw61xx_state {
struct switch_dev dev;
struct mii_bus *bus;
int base_addr;
u16 model;
bool registered;
bool is_indirect;