[U-Boot] [PATCH v4 7/9] net: phy: add SMSC LAN8742 phy

Michael Kurz michi.kurz at gmail.com
Sun Jan 22 16:04:28 CET 2017


This patch adds support for SMSC LAN8742 in phylib

Signed-off-by: Michael Kurz <michi.kurz at gmail.com>
Acked-by: Joe Hershberger <joe.hershberger at ni.com>

---

Changes in v4: None
Changes in v3: None
Changes in v2:
- Add Acked-by tag to 'net: phy: add SMSC LAN8742 phy'

 drivers/net/phy/smsc.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/drivers/net/phy/smsc.c b/drivers/net/phy/smsc.c
index 313fcdf..41ffbe9 100644
--- a/drivers/net/phy/smsc.c
+++ b/drivers/net/phy/smsc.c
@@ -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;
 }
-- 
2.1.4



More information about the U-Boot mailing list