diff options
author | Michael Kurz <michi.kurz@gmail.com> | 2017-01-22 16:04:28 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-01-28 14:04:47 -0500 |
commit | 008ed16c820a4121d34a856c41d143a86eb9e13e (patch) | |
tree | 1e86ecd65fb58ad07165cd7c67366511af39f95f /drivers/net | |
parent | b20b70fcc027a173b61950e9bb4a736557d19697 (diff) | |
download | u-boot-imx-008ed16c820a4121d34a856c41d143a86eb9e13e.zip u-boot-imx-008ed16c820a4121d34a856c41d143a86eb9e13e.tar.gz u-boot-imx-008ed16c820a4121d34a856c41d143a86eb9e13e.tar.bz2 |
net: phy: add SMSC LAN8742 phy
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/phy/smsc.c | 12 |
1 files changed, 12 insertions, 0 deletions
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; } |