drivers: net: phy: add SMSC LAN8740 Phy support.
authorPurna Chandra Mandal <purna.mandal@microchip.com>
Thu, 28 Jan 2016 10:00:20 +0000 (15:30 +0530)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Mon, 1 Feb 2016 21:14:02 +0000 (22:14 +0100)
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>
drivers/net/phy/smsc.c

index bfd9815..34986a2 100644 (file)
@@ -69,11 +69,21 @@ static struct phy_driver lan8710_driver = {
        .shutdown = &genphy_shutdown,
 };
 
+static struct phy_driver lan8740_driver = {
+       .name = "SMSC LAN8740",
+       .uid = 0x0007c110,
+       .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);
 
        return 0;
 }