Commit 4f4598fd authored by Matt Carlson's avatar Matt Carlson Committed by David S. Miller

broadcom: Add BCM50610M support

This patch adds support for the BCM50610M phy ID.
Signed-off-by: default avatarMatt Carlson <mcarlson@broadcom.com>
Reviewed-by: default avatarMichael Chan <mchan@broadcom.com>
Reviewed-by: default avatarBenjamin Li <benli@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7f97a4bd
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <linux/phy.h> #include <linux/phy.h>
#define PHY_ID_BCM50610 0x0143bd60 #define PHY_ID_BCM50610 0x0143bd60
#define PHY_ID_BCM50610M 0x0143bd70
#define MII_BCM54XX_ECR 0x10 /* BCM54xx extended control register */ #define MII_BCM54XX_ECR 0x10 /* BCM54xx extended control register */
#define MII_BCM54XX_ECR_IM 0x1000 /* Interrupt mask */ #define MII_BCM54XX_ECR_IM 0x1000 /* Interrupt mask */
...@@ -540,6 +541,21 @@ static struct phy_driver bcm50610_driver = { ...@@ -540,6 +541,21 @@ static struct phy_driver bcm50610_driver = {
.driver = { .owner = THIS_MODULE }, .driver = { .owner = THIS_MODULE },
}; };
static struct phy_driver bcm50610m_driver = {
.phy_id = PHY_ID_BCM50610M,
.phy_id_mask = 0xfffffff0,
.name = "Broadcom BCM50610M",
.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 struct phy_driver bcm57780_driver = { static struct phy_driver bcm57780_driver = {
.phy_id = 0x03625d90, .phy_id = 0x03625d90,
.phy_id_mask = 0xfffffff0, .phy_id_mask = 0xfffffff0,
...@@ -580,12 +596,17 @@ static int __init broadcom_init(void) ...@@ -580,12 +596,17 @@ static int __init broadcom_init(void)
ret = phy_driver_register(&bcm50610_driver); ret = phy_driver_register(&bcm50610_driver);
if (ret) if (ret)
goto out_50610; goto out_50610;
ret = phy_driver_register(&bcm50610m_driver);
if (ret)
goto out_50610m;
ret = phy_driver_register(&bcm57780_driver); ret = phy_driver_register(&bcm57780_driver);
if (ret) if (ret)
goto out_57780; goto out_57780;
return ret; return ret;
out_57780: out_57780:
phy_driver_unregister(&bcm50610m_driver);
out_50610m:
phy_driver_unregister(&bcm50610_driver); phy_driver_unregister(&bcm50610_driver);
out_50610: out_50610:
phy_driver_unregister(&bcm5482_driver); phy_driver_unregister(&bcm5482_driver);
...@@ -606,6 +627,7 @@ static int __init broadcom_init(void) ...@@ -606,6 +627,7 @@ static int __init broadcom_init(void)
static void __exit broadcom_exit(void) static void __exit broadcom_exit(void)
{ {
phy_driver_unregister(&bcm57780_driver); phy_driver_unregister(&bcm57780_driver);
phy_driver_unregister(&bcm50610m_driver);
phy_driver_unregister(&bcm50610_driver); phy_driver_unregister(&bcm50610_driver);
phy_driver_unregister(&bcm5482_driver); phy_driver_unregister(&bcm5482_driver);
phy_driver_unregister(&bcm5481_driver); phy_driver_unregister(&bcm5481_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment