diff options
author | Guenter Roeck <linux@roeck-us.net> | 2014-10-29 20:44:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-30 21:54:10 +0300 |
commit | 2716777b4f21649fb907b4a4fb96e1c8d0a5ec16 (patch) | |
tree | 864fc0b7b35ce4615e8b29030c0221e965d30a58 /drivers/net/dsa/mv88e6352.c | |
parent | 3ad50cca3919c08472232a633806f591216732b9 (diff) | |
download | linux-2716777b4f21649fb907b4a4fb96e1c8d0a5ec16.tar.xz |
net: dsa/mv88e6352: Add support for MV88E6176
MV88E6176 is mostly compatible to MV88E6352 and is documented
in the same functional specification. Add support for it.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6352.c')
-rw-r--r-- | drivers/net/dsa/mv88e6352.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6352.c b/drivers/net/dsa/mv88e6352.c index 43a58262a03d..f17364ff8f3f 100644 --- a/drivers/net/dsa/mv88e6352.c +++ b/drivers/net/dsa/mv88e6352.c @@ -73,6 +73,8 @@ static char *mv88e6352_probe(struct device *host_dev, int sw_addr) ret = __mv88e6xxx_reg_read(bus, sw_addr, REG_PORT(0), 0x03); if (ret >= 0) { + if ((ret & 0xfff0) == 0x1760) + return "Marvell 88E6176"; if (ret == 0x3521) return "Marvell 88E6352 (A0)"; if (ret == 0x3522) |