提交 875b718a 编写于 作者: A Alexandru Tachici 提交者: Paolo Abeni

net: phy: adin1100: add PHY IDs of adin1110/adin2111

Add additional PHY IDs for the internal PHYs of adin1110 and adin2111.
Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
Signed-off-by: NAlexandru Tachici <alexandru.tachici@analog.com>
Signed-off-by: NPaolo Abeni <pabeni@redhat.com>
上级 cec9d59e
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
#include <linux/property.h> #include <linux/property.h>
#define PHY_ID_ADIN1100 0x0283bc81 #define PHY_ID_ADIN1100 0x0283bc81
#define PHY_ID_ADIN1110 0x0283bc91
#define PHY_ID_ADIN2111 0x0283bca1
#define ADIN_FORCED_MODE 0x8000 #define ADIN_FORCED_MODE 0x8000
#define ADIN_FORCED_MODE_EN BIT(0) #define ADIN_FORCED_MODE_EN BIT(0)
...@@ -265,7 +267,8 @@ static int adin_probe(struct phy_device *phydev) ...@@ -265,7 +267,8 @@ static int adin_probe(struct phy_device *phydev)
static struct phy_driver adin_driver[] = { static struct phy_driver adin_driver[] = {
{ {
PHY_ID_MATCH_MODEL(PHY_ID_ADIN1100), .phy_id = PHY_ID_ADIN1100,
.phy_id_mask = 0xffffffcf,
.name = "ADIN1100", .name = "ADIN1100",
.get_features = adin_get_features, .get_features = adin_get_features,
.soft_reset = adin_soft_reset, .soft_reset = adin_soft_reset,
...@@ -284,6 +287,8 @@ module_phy_driver(adin_driver); ...@@ -284,6 +287,8 @@ module_phy_driver(adin_driver);
static struct mdio_device_id __maybe_unused adin_tbl[] = { static struct mdio_device_id __maybe_unused adin_tbl[] = {
{ PHY_ID_MATCH_MODEL(PHY_ID_ADIN1100) }, { PHY_ID_MATCH_MODEL(PHY_ID_ADIN1100) },
{ PHY_ID_MATCH_MODEL(PHY_ID_ADIN1110) },
{ PHY_ID_MATCH_MODEL(PHY_ID_ADIN2111) },
{ } { }
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册