dsa: mv88e6171: Add support for mv88e6172
authorAndrew Lunn <andrew@lunn.ch>
Wed, 5 Nov 2014 19:01:59 +0000 (20:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Nov 2014 20:08:05 +0000 (15:08 -0500)
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>
drivers/net/dsa/Kconfig
drivers/net/dsa/mv88e6171.c

index 2d1a55e980daab7ae41cda2eda866c7b64ad45aa..7cf8f4ac281f50518d0baefd9574fa392893e33e 100644 (file)
@@ -37,13 +37,13 @@ config NET_DSA_MV88E6123_61_65
          ethernet switch chips.
 
 config NET_DSA_MV88E6171
-       tristate "Marvell 88E6171 ethernet switch chip support"
+       tristate "Marvell 88E6171/6172 ethernet switch chip support"
        select NET_DSA
        select NET_DSA_MV88E6XXX
        select NET_DSA_TAG_EDSA
        ---help---
-         This enables support for the Marvell 88E6171 ethernet switch
-         chip.
+         This enables support for the Marvell 88E6171/6172 ethernet switch
+         chips.
 
 config NET_DSA_MV88E6352
        tristate "Marvell 88E6176/88E6352 ethernet switch chip support"
index 78d8e876f3aaada8ae88c429d007d4c8e3361633..537eeedece2167bd865cc567fdc18345063f13a8 100644 (file)
@@ -1,4 +1,4 @@
-/* net/dsa/mv88e6171.c - Marvell 88e6171 switch chip support
+/* net/dsa/mv88e6171.c - Marvell 88e6171/8826172 switch chip support
  * Copyright (c) 2008-2009 Marvell Semiconductor
  * Copyright (c) 2014 Claudio Leite <leitec@staticky.com>
  *
@@ -29,6 +29,8 @@ static char *mv88e6171_probe(struct device *host_dev, int sw_addr)
        if (ret >= 0) {
                if ((ret & 0xfff0) == 0x1710)
                        return "Marvell 88E6171";
+               if ((ret & 0xfff0) == 0x1720)
+                       return "Marvell 88E6172";
        }
 
        return NULL;
@@ -409,3 +411,4 @@ struct dsa_switch_driver mv88e6171_switch_driver = {
 };
 
 MODULE_ALIAS("platform:mv88e6171");
+MODULE_ALIAS("platform:mv88e6172");