aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/faraday/ftgmac100.h
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2016-09-22 08:35:02 +0930
committerDavid S. Miller <davem@davemloft.net>2016-09-22 03:31:14 -0400
commite07dc63ba22df2d8bc931821b22938d4ce37a934 (patch)
tree4a4abdc72506f72f3047a1e4d17eb31e06d1ebe5 /drivers/net/ethernet/faraday/ftgmac100.h
parentnet/faraday: Clear stale interrupts (diff)
downloadlinux-dev-e07dc63ba22df2d8bc931821b22938d4ce37a934.tar.xz
linux-dev-e07dc63ba22df2d8bc931821b22938d4ce37a934.zip
net/faraday: Configure old MDIO interface on Aspeed SoCs
The Aspeed SoCs have a new MDIO interface as an option in the G4 and G5 SoCs. The old one is still available, so select it in order to remain compatible with the ftgmac100 driver. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/faraday/ftgmac100.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/faraday/ftgmac100.h b/drivers/net/ethernet/faraday/ftgmac100.h
index c258586ce4a4..8a377ab1d127 100644
--- a/drivers/net/ethernet/faraday/ftgmac100.h
+++ b/drivers/net/ethernet/faraday/ftgmac100.h
@@ -134,6 +134,11 @@
#define FTGMAC100_DMAFIFOS_TXDMA_REQ (1 << 31)
/*
+ * Feature Register
+ */
+#define FTGMAC100_REVR_NEW_MDIO_INTERFACE BIT(31)
+
+/*
* Receive buffer size register
*/
#define FTGMAC100_RBSR_SIZE(x) ((x) & 0x3fff)