提交 2fbb69aa 编写于 作者: M Matt Carlson 提交者: David S. Miller

broadcom: Add 57780 support

This patch adds the 57780 PHY ID to the broadcom module.
Signed-off-by: NMatt Carlson <mcarlson@broadcom.com>
Signed-off-by: NMichael Chan <mchan@broadcom.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 321d32a0
......@@ -540,6 +540,21 @@ static struct phy_driver bcm50610_driver = {
.driver = { .owner = THIS_MODULE },
};
static struct phy_driver bcm57780_driver = {
.phy_id = 0x03625d90,
.phy_id_mask = 0xfffffff0,
.name = "Broadcom BCM57780",
.features = PHY_GBIT_FEATURES |
SUPPORTED_Pause | SUPPORTED_Asym_Pause,
.flags = PHY_HAS_MAGICANEG | PHY_HAS_INTERRUPT,
.config_init = bcm54xx_config_init,
.config_aneg = genphy_config_aneg,
.read_status = genphy_read_status,
.ack_interrupt = bcm54xx_ack_interrupt,
.config_intr = bcm54xx_config_intr,
.driver = { .owner = THIS_MODULE },
};
static int __init broadcom_init(void)
{
int ret;
......@@ -565,8 +580,13 @@ static int __init broadcom_init(void)
ret = phy_driver_register(&bcm50610_driver);
if (ret)
goto out_50610;
ret = phy_driver_register(&bcm57780_driver);
if (ret)
goto out_57780;
return ret;
out_57780:
phy_driver_unregister(&bcm50610_driver);
out_50610:
phy_driver_unregister(&bcm5482_driver);
out_5482:
......@@ -585,6 +605,7 @@ static int __init broadcom_init(void)
static void __exit broadcom_exit(void)
{
phy_driver_unregister(&bcm57780_driver);
phy_driver_unregister(&bcm50610_driver);
phy_driver_unregister(&bcm5482_driver);
phy_driver_unregister(&bcm5481_driver);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册