net: phy: smsc: Add SMSC LAN8741 support
authorArno Steffens <star@gmx.li>
Thu, 25 Jan 2018 12:08:35 +0000 (13:08 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 26 Feb 2018 21:51:37 +0000 (15:51 -0600)
Signed-off-by: Arno Steffens <star@gmx.li>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/smsc.c

index 41ffbe9..73ed144 100644 (file)
@@ -83,6 +83,16 @@ static struct phy_driver lan8740_driver = {
        .shutdown = &genphy_shutdown,
 };
 
+static struct phy_driver lan8741_driver = {
+       .name = "SMSC LAN8741",
+       .uid = 0x0007c120,
+       .mask = 0xffff0,
+       .features = PHY_BASIC_FEATURES,
+       .config = &genphy_config_aneg,
+       .startup = &genphy_startup,
+       .shutdown = &genphy_shutdown,
+};
+
 static struct phy_driver lan8742_driver = {
        .name = "SMSC LAN8742",
        .uid = 0x0007c130,
@@ -99,6 +109,7 @@ int phy_smsc_init(void)
        phy_register(&lan911x_driver);
        phy_register(&lan8700_driver);
        phy_register(&lan8740_driver);
+       phy_register(&lan8741_driver);
        phy_register(&lan8742_driver);
 
        return 0;