Commit 46c9d938ca9d603fb5bf4ed8443d51c5b283fc89
Committed by
Daniel Schwierzeck
1 parent
c76eb72c43
Exists in
v2017.01-smarct4x
and in
30 other branches
drivers: net: phy: add SMSC LAN8740 Phy support.
Add SMSC LAN8740 Phy support required for PIC32MZDA devices. Signed-off-by: Purna Chandra Mandal <purna.mandal@microchip.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Showing 1 changed file with 10 additions and 0 deletions Side-by-side Diff
drivers/net/phy/smsc.c
... | ... | @@ -69,11 +69,21 @@ |
69 | 69 | .shutdown = &genphy_shutdown, |
70 | 70 | }; |
71 | 71 | |
72 | +static struct phy_driver lan8740_driver = { | |
73 | + .name = "SMSC LAN8740", | |
74 | + .uid = 0x0007c110, | |
75 | + .mask = 0xffff0, | |
76 | + .features = PHY_BASIC_FEATURES, | |
77 | + .config = &genphy_config_aneg, | |
78 | + .startup = &genphy_startup, | |
79 | + .shutdown = &genphy_shutdown, | |
80 | +}; | |
72 | 81 | int phy_smsc_init(void) |
73 | 82 | { |
74 | 83 | phy_register(&lan8710_driver); |
75 | 84 | phy_register(&lan911x_driver); |
76 | 85 | phy_register(&lan8700_driver); |
86 | + phy_register(&lan8740_driver); | |
77 | 87 | |
78 | 88 | return 0; |
79 | 89 | } |