net: phy: mv88e61xx: register phy_driver struct for 88E6071
authorAnatolij Gustschin <agust@denx.de>
Sat, 26 Oct 2019 23:14:40 +0000 (01:14 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 9 Dec 2019 15:47:42 +0000 (09:47 -0600)
Support probing and init for 88E6071 switch.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Reviewed-by: Chris Packham <judge.packham@gmail.com>
Tested-by: Chris Packham <judge.packham@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/mv88e61xx.c

index 07d08968234ff0aa68b1548dd13860e958177877..5aff7ed397d902d0e0345cb01184a4346cb82c02 100644 (file)
@@ -1154,10 +1154,22 @@ static struct phy_driver mv88e609x_driver = {
        .shutdown = &genphy_shutdown,
 };
 
+static struct phy_driver mv88e6071_driver = {
+       .name = "Marvell MV88E6071",
+       .uid = 0x1410db0,
+       .mask = 0xfffffff0,
+       .features = PHY_BASIC_FEATURES | SUPPORTED_MII,
+       .probe = mv88e61xx_probe,
+       .config = mv88e61xx_phy_config,
+       .startup = mv88e61xx_phy_startup,
+       .shutdown = &genphy_shutdown,
+};
+
 int phy_mv88e61xx_init(void)
 {
        phy_register(&mv88e61xx_driver);
        phy_register(&mv88e609x_driver);
+       phy_register(&mv88e6071_driver);
 
        return 0;
 }