summaryrefslogtreecommitdiff
path: root/include/fsl_memac.h
diff options
context:
space:
mode:
authorshaohui xie <shaohui.xie@nxp.com>2016-11-15 14:36:47 +0800
committerJoe Hershberger <joe.hershberger@ni.com>2016-12-08 10:36:22 -0600
commitbead08800a2f054a90849e0c244022013fbe0196 (patch)
tree022f6375de5e37003dc7166663aced884672139b /include/fsl_memac.h
parentcebf3f558ee8b07f1a2f803fdeb9051603a308ac (diff)
downloadu-boot-bead08800a2f054a90849e0c244022013fbe0196.tar.gz
net: fman: fix 2.5G SGMII settings
The settings for 2.5G SGMII are wrong, which the 2.5G case is missed in set_if_mode(), and the serdes PCS configuration are wrong, this patch uses the correct settings took from Linux. Signed-off-by: Shaohui Xie <Shaohui.Xie@nxp.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/fsl_memac.h')
-rw-r--r--include/fsl_memac.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fsl_memac.h b/include/fsl_memac.h
index bed2a40bb2..431c2a0ccc 100644
--- a/include/fsl_memac.h
+++ b/include/fsl_memac.h
@@ -226,6 +226,7 @@ struct memac {
#define PHY_SGMII_CR_PHY_RESET 0x8000
#define PHY_SGMII_CR_RESET_AN 0x0200
#define PHY_SGMII_CR_DEF_VAL 0x1140
+#define PHY_SGMII_IF_SPEED_GIGABIT 0x0008
#define PHY_SGMII_DEV_ABILITY_SGMII 0x4001
#define PHY_SGMII_IF_MODE_AN 0x0002
#define PHY_SGMII_IF_MODE_SGMII 0x0001