diff options
author | Andrew Lunn <andrew@lunn.ch> | 2014-11-05 14:01:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-06 15:08:05 -0500 |
commit | f03ae5f9c8560f0a8dcad8ae6ea18efc981d8e35 (patch) | |
tree | 820a40a7e80d70fc976f3f10039e35f417bff64e /drivers/net/dsa | |
parent | 0c6965dd317185cef3d706e5785bb032f819faa1 (diff) |
dsa: mv88e6171: Add support for mv88e6172
The mv88e6172 is very similar to the mv88e6171. So extend the
mv88e6171 driver to support it.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa')
-rw-r--r-- | drivers/net/dsa/Kconfig | 6 | ||||
-rw-r--r-- | drivers/net/dsa/mv88e6171.c | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/drivers/net/dsa/Kconfig b/drivers/net/dsa/Kconfig index 2d1a55e980da..7cf8f4ac281f 100644 --- a/drivers/net/dsa/Kconfig +++ b/drivers/net/dsa/Kconfig | |||
@@ -37,13 +37,13 @@ config NET_DSA_MV88E6123_61_65 | |||
37 | ethernet switch chips. | 37 | ethernet switch chips. |
38 | 38 | ||
39 | config NET_DSA_MV88E6171 | 39 | config NET_DSA_MV88E6171 |
40 | tristate "Marvell 88E6171 ethernet switch chip support" | 40 | tristate "Marvell 88E6171/6172 ethernet switch chip support" |
41 | select NET_DSA | 41 | select NET_DSA |
42 | select NET_DSA_MV88E6XXX | 42 | select NET_DSA_MV88E6XXX |
43 | select NET_DSA_TAG_EDSA | 43 | select NET_DSA_TAG_EDSA |
44 | ---help--- | 44 | ---help--- |
45 | This enables support for the Marvell 88E6171 ethernet switch | 45 | This enables support for the Marvell 88E6171/6172 ethernet switch |
46 | chip. | 46 | chips. |
47 | 47 | ||
48 | config NET_DSA_MV88E6352 | 48 | config NET_DSA_MV88E6352 |
49 | tristate "Marvell 88E6176/88E6352 ethernet switch chip support" | 49 | tristate "Marvell 88E6176/88E6352 ethernet switch chip support" |
diff --git a/drivers/net/dsa/mv88e6171.c b/drivers/net/dsa/mv88e6171.c index 78d8e876f3aa..537eeedece21 100644 --- a/drivers/net/dsa/mv88e6171.c +++ b/drivers/net/dsa/mv88e6171.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* net/dsa/mv88e6171.c - Marvell 88e6171 switch chip support | 1 | /* net/dsa/mv88e6171.c - Marvell 88e6171/8826172 switch chip support |
2 | * Copyright (c) 2008-2009 Marvell Semiconductor | 2 | * Copyright (c) 2008-2009 Marvell Semiconductor |
3 | * Copyright (c) 2014 Claudio Leite <leitec@staticky.com> | 3 | * Copyright (c) 2014 Claudio Leite <leitec@staticky.com> |
4 | * | 4 | * |
@@ -29,6 +29,8 @@ static char *mv88e6171_probe(struct device *host_dev, int sw_addr) | |||
29 | if (ret >= 0) { | 29 | if (ret >= 0) { |
30 | if ((ret & 0xfff0) == 0x1710) | 30 | if ((ret & 0xfff0) == 0x1710) |
31 | return "Marvell 88E6171"; | 31 | return "Marvell 88E6171"; |
32 | if ((ret & 0xfff0) == 0x1720) | ||
33 | return "Marvell 88E6172"; | ||
32 | } | 34 | } |
33 | 35 | ||
34 | return NULL; | 36 | return NULL; |
@@ -409,3 +411,4 @@ struct dsa_switch_driver mv88e6171_switch_driver = { | |||
409 | }; | 411 | }; |
410 | 412 | ||
411 | MODULE_ALIAS("platform:mv88e6171"); | 413 | MODULE_ALIAS("platform:mv88e6171"); |
414 | MODULE_ALIAS("platform:mv88e6172"); | ||