summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Waters <justin.waters@timesys.com>2010-03-29 16:14:51 -0400
committerJustin Waters <justin.waters@timesys.com>2010-03-29 16:14:51 -0400
commit549dd9291adf1f9187dec1e6c024bcdabab1b1f5 (patch)
treecbb9ba8ab9b04d8eb3f212b8e3872b5f942c1d04
parent954577e6a0ad9fa76651aa8de66e6633bcf0139d (diff)
Add support for the SMSC LAN8710 PHY
-rw-r--r--drivers/net/fec.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c
index b3b2921550e2..7a9d3c4cadae 100644
--- a/drivers/net/fec.c
+++ b/drivers/net/fec.c
@@ -1161,6 +1161,27 @@ static phy_info_t phy_info_lan8700 = {
{ mk_mii_end, }
},
};
+
+static phy_info_t phy_info_lan8710 = {
+ 0x0007C0F,
+ "LAN8710",
+ (const phy_cmd_t []) { /* config */
+ { mk_mii_read(MII_REG_CR), mii_parse_cr },
+ { mk_mii_read(MII_REG_ANAR), mii_parse_anar },
+ { mk_mii_end, }
+ },
+ (const phy_cmd_t []) { /* startup */
+ { mk_mii_write(MII_REG_CR, 0x1200), NULL }, /* autonegotiate */
+ { mk_mii_read(MII_REG_SR), mii_parse_sr },
+ { mk_mii_end, }
+ },
+ (const phy_cmd_t []) { /* act_int */
+ { mk_mii_end, }
+ },
+ (const phy_cmd_t []) { /* shutdown */
+ { mk_mii_end, }
+ },
+};
/* ------------------------------------------------------------------------- */
static phy_info_t const * const phy_info[] = {
@@ -1171,6 +1192,7 @@ static phy_info_t const * const phy_info[] = {
&phy_info_ks8721bl,
&phy_info_dp83848,
&phy_info_lan8700,
+ &phy_info_lan8710,
NULL
};