Commit 68336293 authored by Andrew F. Davis's avatar Andrew F. Davis Committed by David S. Miller

net: phy: dp83848: Add PHY ID for TI version of DP83848C

After acquiring National Semiconductor, TI appears to have
changed the Vendor Model Number for the DP83848C PHYs,
add this new ID to supported IDs.
Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2f67864b
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/phy.h> #include <linux/phy.h>
#define DP83848_PHY_ID 0x20005c90 #define TI_DP83848C_PHY_ID 0x20005ca0
#define NS_DP83848C_PHY_ID 0x20005c90
/* Registers */ /* Registers */
#define DP83848_MICR 0x11 #define DP83848_MICR 0x11
...@@ -65,7 +66,8 @@ static int dp83848_config_intr(struct phy_device *phydev) ...@@ -65,7 +66,8 @@ static int dp83848_config_intr(struct phy_device *phydev)
} }
static struct mdio_device_id __maybe_unused dp83848_tbl[] = { static struct mdio_device_id __maybe_unused dp83848_tbl[] = {
{ DP83848_PHY_ID, 0xfffffff0 }, { TI_DP83848C_PHY_ID, 0xfffffff0 },
{ NS_DP83848C_PHY_ID, 0xfffffff0 },
{ } { }
}; };
MODULE_DEVICE_TABLE(mdio, dp83848_tbl); MODULE_DEVICE_TABLE(mdio, dp83848_tbl);
...@@ -91,7 +93,8 @@ MODULE_DEVICE_TABLE(mdio, dp83848_tbl); ...@@ -91,7 +93,8 @@ MODULE_DEVICE_TABLE(mdio, dp83848_tbl);
} }
static struct phy_driver dp83848_driver[] = { static struct phy_driver dp83848_driver[] = {
DP83848_PHY_DRIVER(DP83848_PHY_ID, "TI DP83848 10/100 Mbps PHY"), DP83848_PHY_DRIVER(TI_DP83848C_PHY_ID, "TI DP83848C 10/100 Mbps PHY"),
DP83848_PHY_DRIVER(NS_DP83848C_PHY_ID, "TI DP83848C 10/100 Mbps PHY"),
}; };
module_phy_driver(dp83848_driver); module_phy_driver(dp83848_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