diff options
-rw-r--r-- | drivers/net/fec.c | 22 |
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 }; |