aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/mv88e6xxx/mv88e6xxx.h
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2016-09-21 01:40:31 +0200
committerDavid S. Miller <davem@davemloft.net>2016-09-22 02:20:12 -0400
commit0e7b99257be4b596d9fdd435698c0bfdb0b38d91 (patch)
treead7448f57b66eeef98d9297a43c8c91713de9d44 /drivers/net/dsa/mv88e6xxx/mv88e6xxx.h
parentptp_clock: future-proofing drivers against PTP subsystem becoming optional (diff)
downloadlinux-dev-0e7b99257be4b596d9fdd435698c0bfdb0b38d91.tar.xz
linux-dev-0e7b99257be4b596d9fdd435698c0bfdb0b38d91.zip
net: dsa: mv88e6xxx: Add helper for accessing port registers
There is a device coming soon which places its port registers somewhere different to all other Marvell switches supported so far. Add helper functions for reading/writing port registers, making it easier to handle this new device. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx/mv88e6xxx.h')
-rw-r--r--drivers/net/dsa/mv88e6xxx/mv88e6xxx.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx/mv88e6xxx.h
index 52f3f5231f51..e349d0d64645 100644
--- a/drivers/net/dsa/mv88e6xxx/mv88e6xxx.h
+++ b/drivers/net/dsa/mv88e6xxx/mv88e6xxx.h
@@ -37,7 +37,6 @@
#define ADDR_SERDES 0x0f
#define SERDES_PAGE_FIBER 0x01
-#define REG_PORT(p) (0x10 + (p))
#define PORT_STATUS 0x00
#define PORT_STATUS_PAUSE_EN BIT(15)
#define PORT_STATUS_MY_PAUSE BIT(14)