diff options
author | Jens Osterkamp <Jens.Osterkamp@de.ibm.com> | 2006-05-04 05:59:41 -0400 |
---|---|---|
committer | Stephen Hemminger <shemminger@osdl.org> | 2006-05-08 19:01:12 -0400 |
commit | 8ec93459655a3618dedec6360bb28d63f0010ef6 (patch) | |
tree | 48a3599fd2701a507bdc9e3308c970b28cb99086 /drivers/net/spider_net.c | |
parent | b636d17a3bee8ba988e78e4bc8262f0dc3fad8ab (diff) |
spidernet: enable support for bcm5461 ethernet phy
A newer board revision changed the type of ethernet phy.
Moreover, this generalizes the way that a phy gets switched
into fiber mode when autodetection is not available.
Signed-off-by: Jens Osterkamp <Jens.Osterkamp@de.ibm.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Diffstat (limited to 'drivers/net/spider_net.c')
-rw-r--r-- | drivers/net/spider_net.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/net/spider_net.c b/drivers/net/spider_net.c index b36838bfb8dc..394339d5e87c 100644 --- a/drivers/net/spider_net.c +++ b/drivers/net/spider_net.c | |||
@@ -1794,15 +1794,7 @@ spider_net_setup_phy(struct spider_net_card *card) | |||
1794 | if (phy->def->ops->setup_forced) | 1794 | if (phy->def->ops->setup_forced) |
1795 | phy->def->ops->setup_forced(phy, SPEED_1000, DUPLEX_FULL); | 1795 | phy->def->ops->setup_forced(phy, SPEED_1000, DUPLEX_FULL); |
1796 | 1796 | ||
1797 | /* the following two writes could be moved to sungem_phy.c */ | 1797 | phy->def->ops->enable_fiber(phy); |
1798 | /* enable fiber mode */ | ||
1799 | spider_net_write_phy(card->netdev, 1, MII_NCONFIG, 0x9020); | ||
1800 | /* LEDs active in both modes, autosense prio = fiber */ | ||
1801 | spider_net_write_phy(card->netdev, 1, MII_NCONFIG, 0x945f); | ||
1802 | |||
1803 | /* switch off fibre autoneg */ | ||
1804 | spider_net_write_phy(card->netdev, 1, MII_NCONFIG, 0xfc01); | ||
1805 | spider_net_write_phy(card->netdev, 1, 0x0b, 0x0004); | ||
1806 | 1798 | ||
1807 | phy->def->ops->read_link(phy); | 1799 | phy->def->ops->read_link(phy); |
1808 | pr_info("Found %s with %i Mbps, %s-duplex.\n", phy->def->name, | 1800 | pr_info("Found %s with %i Mbps, %s-duplex.\n", phy->def->name, |