Skip to content

Commit

Permalink
broadcom: move all PHY_ID's to header
Browse files Browse the repository at this point in the history
Move all PHY IDs to brcmphy.h header for completeness and unification of code.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dmitry Baryshkov authored and David S. Miller committed Jun 25, 2010
1 parent deb0d7c commit fcb26ec
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
24 changes: 12 additions & 12 deletions drivers/net/phy/broadcom.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ static int brcm_fet_config_intr(struct phy_device *phydev)
}

static struct phy_driver bcm5411_driver = {
.phy_id = 0x00206070,
.phy_id = PHY_ID_BCM5411,
.phy_id_mask = 0xfffffff0,
.name = "Broadcom BCM5411",
.features = PHY_GBIT_FEATURES |
Expand All @@ -700,7 +700,7 @@ static struct phy_driver bcm5411_driver = {
};

static struct phy_driver bcm5421_driver = {
.phy_id = 0x002060e0,
.phy_id = PHY_ID_BCM5421,
.phy_id_mask = 0xfffffff0,
.name = "Broadcom BCM5421",
.features = PHY_GBIT_FEATURES |
Expand All @@ -715,7 +715,7 @@ static struct phy_driver bcm5421_driver = {
};

static struct phy_driver bcm5461_driver = {
.phy_id = 0x002060c0,
.phy_id = PHY_ID_BCM5461,
.phy_id_mask = 0xfffffff0,
.name = "Broadcom BCM5461",
.features = PHY_GBIT_FEATURES |
Expand All @@ -730,7 +730,7 @@ static struct phy_driver bcm5461_driver = {
};

static struct phy_driver bcm5464_driver = {
.phy_id = 0x002060b0,
.phy_id = PHY_ID_BCM5464,
.phy_id_mask = 0xfffffff0,
.name = "Broadcom BCM5464",
.features = PHY_GBIT_FEATURES |
Expand All @@ -745,7 +745,7 @@ static struct phy_driver bcm5464_driver = {
};

static struct phy_driver bcm5481_driver = {
.phy_id = 0x0143bca0,
.phy_id = PHY_ID_BCM5481,
.phy_id_mask = 0xfffffff0,
.name = "Broadcom BCM5481",
.features = PHY_GBIT_FEATURES |
Expand All @@ -760,7 +760,7 @@ static struct phy_driver bcm5481_driver = {
};

static struct phy_driver bcm5482_driver = {
.phy_id = 0x0143bcb0,
.phy_id = PHY_ID_BCM5482,
.phy_id_mask = 0xfffffff0,
.name = "Broadcom BCM5482",
.features = PHY_GBIT_FEATURES |
Expand Down Expand Up @@ -910,12 +910,12 @@ module_init(broadcom_init);
module_exit(broadcom_exit);

static struct mdio_device_id broadcom_tbl[] = {
{ 0x00206070, 0xfffffff0 },
{ 0x002060e0, 0xfffffff0 },
{ 0x002060c0, 0xfffffff0 },
{ 0x002060b0, 0xfffffff0 },
{ 0x0143bca0, 0xfffffff0 },
{ 0x0143bcb0, 0xfffffff0 },
{ PHY_ID_BCM5411, 0xfffffff0 },
{ PHY_ID_BCM5421, 0xfffffff0 },
{ PHY_ID_BCM5461, 0xfffffff0 },
{ PHY_ID_BCM5464, 0xfffffff0 },
{ PHY_ID_BCM5482, 0xfffffff0 },
{ PHY_ID_BCM5482, 0xfffffff0 },
{ PHY_ID_BCM50610, 0xfffffff0 },
{ PHY_ID_BCM50610M, 0xfffffff0 },
{ PHY_ID_BCM57780, 0xfffffff0 },
Expand Down
6 changes: 6 additions & 0 deletions include/linux/brcmphy.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#define PHY_ID_BCM50610 0x0143bd60
#define PHY_ID_BCM50610M 0x0143bd70
#define PHY_ID_BCMAC131 0x0143bc70
#define PHY_ID_BCM5481 0x0143bca0
#define PHY_ID_BCM5482 0x0143bcb0
#define PHY_ID_BCM5411 0x00206070
#define PHY_ID_BCM5421 0x002060e0
#define PHY_ID_BCM5464 0x002060b0
#define PHY_ID_BCM5461 0x002060c0
#define PHY_ID_BCM57780 0x03625d90

#define PHY_BCM_OUI_MASK 0xfffffc00
Expand Down

0 comments on commit fcb26ec

Please sign in to comment.