summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2015-04-01 22:06:30 -0400
committerDavid S. Miller <davem@davemloft.net>2015-04-01 22:55:40 -0400
commitb2eb06627718836f7d133141693ec9685b4c4ef5 (patch)
tree59516e2e73ed244c6daa6133208f647b80859e64 /drivers
parent0d65da4a238d3e9fc358b8e1540a193d63f92e20 (diff)
net: dsa: mv88e6xxx: Move switch product IDs into common include file
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/dsa/mv88e6131.c6
-rw-r--r--drivers/net/dsa/mv88e6171.c4
-rw-r--r--drivers/net/dsa/mv88e6xxx.h36
3 files changed, 36 insertions, 10 deletions
diff --git a/drivers/net/dsa/mv88e6131.c b/drivers/net/dsa/mv88e6131.c
index 0252d51c0a74..f0dea2d1581e 100644
--- a/drivers/net/dsa/mv88e6131.c
+++ b/drivers/net/dsa/mv88e6131.c
@@ -17,12 +17,6 @@
17#include <net/dsa.h> 17#include <net/dsa.h>
18#include "mv88e6xxx.h" 18#include "mv88e6xxx.h"
19 19
20/* Switch product IDs */
21#define ID_6085 0x04a0
22#define ID_6095 0x0950
23#define ID_6131 0x1060
24#define ID_6131_B2 0x1066
25
26static char *mv88e6131_probe(struct device *host_dev, int sw_addr) 20static char *mv88e6131_probe(struct device *host_dev, int sw_addr)
27{ 21{
28 struct mii_bus *bus = dsa_host_dev_to_mii_bus(host_dev); 22 struct mii_bus *bus = dsa_host_dev_to_mii_bus(host_dev);
diff --git a/drivers/net/dsa/mv88e6171.c b/drivers/net/dsa/mv88e6171.c
index 18cfead83dc9..639bd83b76c7 100644
--- a/drivers/net/dsa/mv88e6171.c
+++ b/drivers/net/dsa/mv88e6171.c
@@ -17,10 +17,6 @@
17#include <net/dsa.h> 17#include <net/dsa.h>
18#include "mv88e6xxx.h" 18#include "mv88e6xxx.h"
19 19
20/* Switch product IDs */
21#define ID_6171 0x1710
22#define ID_6172 0x1720
23
24static char *mv88e6171_probe(struct device *host_dev, int sw_addr) 20static char *mv88e6171_probe(struct device *host_dev, int sw_addr)
25{ 21{
26 struct mii_bus *bus = dsa_host_dev_to_mii_bus(host_dev); 22 struct mii_bus *bus = dsa_host_dev_to_mii_bus(host_dev);
diff --git a/drivers/net/dsa/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx.h
index aaf239aba726..aca48792db4b 100644
--- a/drivers/net/dsa/mv88e6xxx.h
+++ b/drivers/net/dsa/mv88e6xxx.h
@@ -11,6 +11,42 @@
11#ifndef __MV88E6XXX_H 11#ifndef __MV88E6XXX_H
12#define __MV88E6XXX_H 12#define __MV88E6XXX_H
13 13
14/* switch product IDs */
15
16#define ID_6085 0x04a0
17#define ID_6095 0x0950
18
19#define ID_6123 0x1210
20#define ID_6123_A1 0x1212
21#define ID_6123_A2 0x1213
22
23#define ID_6131 0x1060
24#define ID_6131_B2 0x1066
25
26#define ID_6152 0x1a40
27#define ID_6155 0x1a50
28
29#define ID_6161 0x1610
30#define ID_6161_A1 0x1612
31#define ID_6161_A2 0x1613
32
33#define ID_6165 0x1650
34#define ID_6165_A1 0x1652
35#define ID_6165_A2 0x1653
36
37#define ID_6171 0x1710
38#define ID_6172 0x1720
39#define ID_6176 0x1760
40
41#define ID_6182 0x1a60
42#define ID_6185 0x1a70
43
44#define ID_6352 0x3520
45#define ID_6352_A0 0x3521
46#define ID_6352_A1 0x3522
47
48/* Registers */
49
14#define REG_PORT(p) (0x10 + (p)) 50#define REG_PORT(p) (0x10 + (p))
15#define REG_GLOBAL 0x1b 51#define REG_GLOBAL 0x1b
16#define REG_GLOBAL2 0x1c 52#define REG_GLOBAL2 0x1c