]> git.sur5r.net Git - u-boot/commitdiff
net: phy: add SMSC LAN8742 phy
authorMichael Kurz <michi.kurz@gmail.com>
Sun, 22 Jan 2017 15:04:28 +0000 (16:04 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 28 Jan 2017 19:04:47 +0000 (14:04 -0500)
This patch adds support for SMSC LAN8742 in phylib

Signed-off-by: Michael Kurz <michi.kurz@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/smsc.c

index 313fcdfdc52d07270c2291debdced8b96747bda8..41ffbe9d0ee6d67c9e640bad7b5e583db963b9fe 100644 (file)
@@ -82,12 +82,24 @@ static struct phy_driver lan8740_driver = {
        .startup = &genphy_startup,
        .shutdown = &genphy_shutdown,
 };
+
+static struct phy_driver lan8742_driver = {
+       .name = "SMSC LAN8742",
+       .uid = 0x0007c130,
+       .mask = 0xffff0,
+       .features = PHY_BASIC_FEATURES,
+       .config = &genphy_config_aneg,
+       .startup = &genphy_startup,
+       .shutdown = &genphy_shutdown,
+};
+
 int phy_smsc_init(void)
 {
        phy_register(&lan8710_driver);
        phy_register(&lan911x_driver);
        phy_register(&lan8700_driver);
        phy_register(&lan8740_driver);
+       phy_register(&lan8742_driver);
 
        return 0;
 }