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>
This commit is contained in:
committed by
Stephen Hemminger
parent
b636d17a3b
commit
8ec9345965
@ -1794,15 +1794,7 @@ spider_net_setup_phy(struct spider_net_card *card)
|
||||
if (phy->def->ops->setup_forced)
|
||||
phy->def->ops->setup_forced(phy, SPEED_1000, DUPLEX_FULL);
|
||||
|
||||
/* the following two writes could be moved to sungem_phy.c */
|
||||
/* enable fiber mode */
|
||||
spider_net_write_phy(card->netdev, 1, MII_NCONFIG, 0x9020);
|
||||
/* LEDs active in both modes, autosense prio = fiber */
|
||||
spider_net_write_phy(card->netdev, 1, MII_NCONFIG, 0x945f);
|
||||
|
||||
/* switch off fibre autoneg */
|
||||
spider_net_write_phy(card->netdev, 1, MII_NCONFIG, 0xfc01);
|
||||
spider_net_write_phy(card->netdev, 1, 0x0b, 0x0004);
|
||||
phy->def->ops->enable_fiber(phy);
|
||||
|
||||
phy->def->ops->read_link(phy);
|
||||
pr_info("Found %s with %i Mbps, %s-duplex.\n", phy->def->name,
|
||||
|
Reference in New Issue
Block a user