]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
net: dsa: mv88e6xxx: Move switch product IDs into common include file
authorGuenter Roeck <linux@roeck-us.net>
Thu, 2 Apr 2015 02:06:30 +0000 (04:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 02:55:40 +0000 (22:55 -0400)
This will let us use the switch product IDs in the common source code.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6131.c
drivers/net/dsa/mv88e6171.c
drivers/net/dsa/mv88e6xxx.h

index 0252d51c0a749bbf1dd552a5a991d5eb502b9ae0..f0dea2d1581e6ceb2d7edccd06c431a4fa3110b0 100644 (file)
 #include <net/dsa.h>
 #include "mv88e6xxx.h"
 
-/* Switch product IDs */
-#define ID_6085                0x04a0
-#define ID_6095                0x0950
-#define ID_6131                0x1060
-#define ID_6131_B2     0x1066
-
 static char *mv88e6131_probe(struct device *host_dev, int sw_addr)
 {
        struct mii_bus *bus = dsa_host_dev_to_mii_bus(host_dev);
index 18cfead83dc94851d4bedc0cfca6f8f0eaf43797..639bd83b76c7299140eb6a1da57646575cdaf960 100644 (file)
 #include <net/dsa.h>
 #include "mv88e6xxx.h"
 
-/* Switch product IDs */
-#define ID_6171        0x1710
-#define ID_6172        0x1720
-
 static char *mv88e6171_probe(struct device *host_dev, int sw_addr)
 {
        struct mii_bus *bus = dsa_host_dev_to_mii_bus(host_dev);
index aaf239aba7260ddfc562e84b60c3883d9031733d..aca48792db4b089d4a6069ea2c195a7161649910 100644 (file)
 #ifndef __MV88E6XXX_H
 #define __MV88E6XXX_H
 
+/* switch product IDs */
+
+#define ID_6085                0x04a0
+#define ID_6095                0x0950
+
+#define ID_6123                0x1210
+#define ID_6123_A1     0x1212
+#define ID_6123_A2     0x1213
+
+#define ID_6131                0x1060
+#define ID_6131_B2     0x1066
+
+#define ID_6152                0x1a40
+#define ID_6155                0x1a50
+
+#define ID_6161                0x1610
+#define ID_6161_A1     0x1612
+#define ID_6161_A2     0x1613
+
+#define ID_6165                0x1650
+#define ID_6165_A1     0x1652
+#define ID_6165_A2     0x1653
+
+#define ID_6171                0x1710
+#define ID_6172                0x1720
+#define ID_6176                0x1760
+
+#define ID_6182                0x1a60
+#define ID_6185                0x1a70
+
+#define ID_6352                0x3520
+#define ID_6352_A0     0x3521
+#define ID_6352_A1     0x3522
+
+/* Registers */
+
 #define REG_PORT(p)            (0x10 + (p))
 #define REG_GLOBAL             0x1b
 #define REG_GLOBAL2            0x1c