summaryrefslogtreecommitdiff
path: root/drivers/net/tsec.h
diff options
context:
space:
mode:
authorDave Liu <r63238@freescale.com>2008-01-11 18:45:28 +0800
committerBen Warren <biggerbadderben@gmail.com>2008-01-16 17:05:52 -0500
commit18ee320ff63edbf7b27bbeb05f0e12a52302c68a (patch)
tree97c7d98e5099cfb17cb2c6ab5f0aa5f51ec9b0d3 /drivers/net/tsec.h
parent84a3047b72b70e862b0b7a8e2058077457f89a32 (diff)
downloadu-boot-imx-18ee320ff63edbf7b27bbeb05f0e12a52302c68a.zip
u-boot-imx-18ee320ff63edbf7b27bbeb05f0e12a52302c68a.tar.gz
u-boot-imx-18ee320ff63edbf7b27bbeb05f0e12a52302c68a.tar.bz2
TSEC: Add the support for RealTek RTL8211B PHY
Add the support of RealTek RTL8211B PHY, the RTL8211B PHY only supports RGMII and MII mode. Signed-off-by: Dave Liu <daveliu@freescale.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers/net/tsec.h')
-rw-r--r--drivers/net/tsec.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/tsec.h b/drivers/net/tsec.h
index 2f0092a..d4dc15a 100644
--- a/drivers/net/tsec.h
+++ b/drivers/net/tsec.h
@@ -184,6 +184,14 @@
#define MIIM_88E1145_PHY_PAGE 29
#define MIIM_88E1145_PHY_CAL_OV 30
+/* RTL8211B PHY Status Register */
+#define MIIM_RTL8211B_PHY_STATUS 0x11
+#define MIIM_RTL8211B_PHYSTAT_SPEED 0xc000
+#define MIIM_RTL8211B_PHYSTAT_GBIT 0x8000
+#define MIIM_RTL8211B_PHYSTAT_100 0x4000
+#define MIIM_RTL8211B_PHYSTAT_DUPLEX 0x2000
+#define MIIM_RTL8211B_PHYSTAT_SPDDONE 0x0800
+#define MIIM_RTL8211B_PHYSTAT_LINK 0x0400
/* DM9161 Control register values */
#define MIIM_DM9161_CR_STOP 0x0400