summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amd/xgbe/xgbe-common.h
diff options
context:
space:
mode:
authorLendacky, Thomas <Thomas.Lendacky@amd.com>2017-08-18 09:02:27 -0500
committerDavid S. Miller <davem@davemloft.net>2017-08-18 16:30:16 -0700
commitf087b506ff5c38e0f2873651dba4e2b73a1b2d67 (patch)
tree6e6a735e5d2fd7dbb36a906348ca4071361d0b0f /drivers/net/ethernet/amd/xgbe/xgbe-common.h
parent3b1ded4e0b5118040d44b3b85391aa8865b0d05c (diff)
downloadlinux-f087b506ff5c38e0f2873651dba4e2b73a1b2d67.tar.gz
linux-f087b506ff5c38e0f2873651dba4e2b73a1b2d67.tar.bz2
linux-f087b506ff5c38e0f2873651dba4e2b73a1b2d67.zip
amd-xgbe: Set the MII control width for the MAC interface
When running in SGMII mode at speeds below 1000Mbps, the auto-negotition control register must set the MII control width for the MAC interface to be 8-bits wide. By default the width is 4-bits. Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd/xgbe/xgbe-common.h')
-rw-r--r--drivers/net/ethernet/amd/xgbe/xgbe-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-common.h b/drivers/net/ethernet/amd/xgbe/xgbe-common.h
index 9795419aac2d..d07edf9eaa69 100644
--- a/drivers/net/ethernet/amd/xgbe/xgbe-common.h
+++ b/drivers/net/ethernet/amd/xgbe/xgbe-common.h
@@ -1339,6 +1339,7 @@
#define XGBE_AN_CL37_PCS_MODE_BASEX 0x00
#define XGBE_AN_CL37_PCS_MODE_SGMII 0x04
#define XGBE_AN_CL37_TX_CONFIG_MASK 0x08
+#define XGBE_AN_CL37_MII_CTRL_8BIT 0x0100
/* Bit setting and getting macros
* The get macro will extract the current bit field value from within