diff options
author | Amit Kucheria <amit.kucheria@canonical.com> | 2010-02-05 03:56:21 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-10 16:05:42 -0500 |
commit | fceb2919192d7a667be81c17c0bfa227fd7fa992 (patch) | |
tree | 01cdd00d21f3e64f6bf032fab638f5ffcf25da70 /drivers/net/fec.c | |
parent | 633e7533cec78b99d806248e832fc83e689d2453 (diff) |
fec: Add LAN8700 phy support
The i.MX51 babbage board has a FEC ethernet controller with this phy.
In the long term we should resurrect the phylib patches for fec.
Signed-off-by: Amit Kucheria <amit.kucheria@canonical.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fec.c')
-rw-r--r-- | drivers/net/fec.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c index 9a8743daa3e..5d0d3326815 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c | |||
@@ -1128,6 +1128,26 @@ static phy_info_t phy_info_dp83848= { | |||
1128 | }, | 1128 | }, |
1129 | }; | 1129 | }; |
1130 | 1130 | ||
1131 | static phy_info_t phy_info_lan8700 = { | ||
1132 | 0x0007C0C, | ||
1133 | "LAN8700", | ||
1134 | (const phy_cmd_t []) { /* config */ | ||
1135 | { mk_mii_read(MII_REG_CR), mii_parse_cr }, | ||
1136 | { mk_mii_read(MII_REG_ANAR), mii_parse_anar }, | ||
1137 | { mk_mii_end, } | ||
1138 | }, | ||
1139 | (const phy_cmd_t []) { /* startup */ | ||
1140 | { mk_mii_write(MII_REG_CR, 0x1200), NULL }, /* autonegotiate */ | ||
1141 | { mk_mii_read(MII_REG_SR), mii_parse_sr }, | ||
1142 | { mk_mii_end, } | ||
1143 | }, | ||
1144 | (const phy_cmd_t []) { /* act_int */ | ||
1145 | { mk_mii_end, } | ||
1146 | }, | ||
1147 | (const phy_cmd_t []) { /* shutdown */ | ||
1148 | { mk_mii_end, } | ||
1149 | }, | ||
1150 | }; | ||
1131 | /* ------------------------------------------------------------------------- */ | 1151 | /* ------------------------------------------------------------------------- */ |
1132 | 1152 | ||
1133 | static phy_info_t const * const phy_info[] = { | 1153 | static phy_info_t const * const phy_info[] = { |
@@ -1137,6 +1157,7 @@ static phy_info_t const * const phy_info[] = { | |||
1137 | &phy_info_am79c874, | 1157 | &phy_info_am79c874, |
1138 | &phy_info_ks8721bl, | 1158 | &phy_info_ks8721bl, |
1139 | &phy_info_dp83848, | 1159 | &phy_info_dp83848, |
1160 | &phy_info_lan8700, | ||
1140 | NULL | 1161 | NULL |
1141 | }; | 1162 | }; |
1142 | 1163 | ||