net: ethernet: bgmac: device tree phy enablement
Change the bgmac driver to allow for phy's defined by the device tree Signed-off-by: Jon Mason <jon.mason@broadcom.com> Acked-by: Rafał Miłecki <rafal@milecki.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
0086f0944f
commit
1676aba5ef
@@ -513,10 +513,13 @@ struct bgmac {
|
||||
u32 (*get_bus_clock)(struct bgmac *bgmac);
|
||||
void (*cmn_maskset32)(struct bgmac *bgmac, u16 offset, u32 mask,
|
||||
u32 set);
|
||||
int (*phy_connect)(struct bgmac *bgmac);
|
||||
};
|
||||
|
||||
int bgmac_enet_probe(struct bgmac *info);
|
||||
void bgmac_enet_remove(struct bgmac *bgmac);
|
||||
void bgmac_adjust_link(struct net_device *net_dev);
|
||||
int bgmac_phy_connect_direct(struct bgmac *bgmac);
|
||||
|
||||
struct mii_bus *bcma_mdio_mii_register(struct bcma_device *core, u8 phyaddr);
|
||||
void bcma_mdio_mii_unregister(struct mii_bus *mii_bus);
|
||||
@@ -583,4 +586,9 @@ static inline void bgmac_set(struct bgmac *bgmac, u16 offset, u32 set)
|
||||
{
|
||||
bgmac_maskset(bgmac, offset, ~0, set);
|
||||
}
|
||||
|
||||
static inline int bgmac_phy_connect(struct bgmac *bgmac)
|
||||
{
|
||||
return bgmac->phy_connect(bgmac);
|
||||
}
|
||||
#endif /* _BGMAC_H */
|
||||
|
Reference in New Issue
Block a user