diff options
| author | Roger Quadros <rogerq@ti.com> | 2016-10-28 05:40:20 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2016-10-29 17:25:17 -0400 |
| commit | 3034783472f5353f71af44ed52ad9ee65f9f6d17 (patch) | |
| tree | ae216b423d4efebd6b5359a613087b1cde53dcc8 | |
| parent | 9fe1c98ac90023842ae7cd921badfa1029e45bd1 (diff) | |
net: phy: dp83848: add dp83822 PHY support
This PHY has a compatible register set with DP83848x so
add support for it.
Acked-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | drivers/net/phy/dp83848.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/phy/dp83848.c b/drivers/net/phy/dp83848.c index 03d54c4adc88..800b39f06279 100644 --- a/drivers/net/phy/dp83848.c +++ b/drivers/net/phy/dp83848.c | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | #define TI_DP83848C_PHY_ID 0x20005ca0 | 19 | #define TI_DP83848C_PHY_ID 0x20005ca0 |
| 20 | #define NS_DP83848C_PHY_ID 0x20005c90 | 20 | #define NS_DP83848C_PHY_ID 0x20005c90 |
| 21 | #define TLK10X_PHY_ID 0x2000a210 | 21 | #define TLK10X_PHY_ID 0x2000a210 |
| 22 | #define TI_DP83822_PHY_ID 0x2000a240 | ||
| 22 | 23 | ||
| 23 | /* Registers */ | 24 | /* Registers */ |
| 24 | #define DP83848_MICR 0x11 /* MII Interrupt Control Register */ | 25 | #define DP83848_MICR 0x11 /* MII Interrupt Control Register */ |
| @@ -77,6 +78,7 @@ static struct mdio_device_id __maybe_unused dp83848_tbl[] = { | |||
| 77 | { TI_DP83848C_PHY_ID, 0xfffffff0 }, | 78 | { TI_DP83848C_PHY_ID, 0xfffffff0 }, |
| 78 | { NS_DP83848C_PHY_ID, 0xfffffff0 }, | 79 | { NS_DP83848C_PHY_ID, 0xfffffff0 }, |
| 79 | { TLK10X_PHY_ID, 0xfffffff0 }, | 80 | { TLK10X_PHY_ID, 0xfffffff0 }, |
| 81 | { TI_DP83822_PHY_ID, 0xfffffff0 }, | ||
| 80 | { } | 82 | { } |
| 81 | }; | 83 | }; |
| 82 | MODULE_DEVICE_TABLE(mdio, dp83848_tbl); | 84 | MODULE_DEVICE_TABLE(mdio, dp83848_tbl); |
| @@ -105,6 +107,7 @@ static struct phy_driver dp83848_driver[] = { | |||
| 105 | DP83848_PHY_DRIVER(TI_DP83848C_PHY_ID, "TI DP83848C 10/100 Mbps PHY"), | 107 | DP83848_PHY_DRIVER(TI_DP83848C_PHY_ID, "TI DP83848C 10/100 Mbps PHY"), |
| 106 | DP83848_PHY_DRIVER(NS_DP83848C_PHY_ID, "NS DP83848C 10/100 Mbps PHY"), | 108 | DP83848_PHY_DRIVER(NS_DP83848C_PHY_ID, "NS DP83848C 10/100 Mbps PHY"), |
| 107 | DP83848_PHY_DRIVER(TLK10X_PHY_ID, "TI TLK10X 10/100 Mbps PHY"), | 109 | DP83848_PHY_DRIVER(TLK10X_PHY_ID, "TI TLK10X 10/100 Mbps PHY"), |
| 110 | DP83848_PHY_DRIVER(TI_DP83822_PHY_ID, "TI DP83822 10/100 Mbps PHY"), | ||
| 108 | }; | 111 | }; |
| 109 | module_phy_driver(dp83848_driver); | 112 | module_phy_driver(dp83848_driver); |
| 110 | 113 | ||
