]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
driver: net: phylib: add support for aquantia AQR106/107 PHY
authorMingkai Hu <mingkai.hu@nxp.com>
Fri, 1 Jul 2016 11:03:23 +0000 (19:03 +0800)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 6 Jul 2016 15:45:04 +0000 (10:45 -0500)
This patch adds support for aquantia AQR106/107 PHY.

Signed-off-by: Mingkai Hu <mingkai.hu@nxp.com>
Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/aquantia.c

index f90c2ae3bb9b51c3cfe12ccf15fe0f01ef070f73..ad12f6d61fb27b0b132a307afc0f1606275f4893 100644 (file)
@@ -147,6 +147,32 @@ struct phy_driver aqr105_driver = {
        .shutdown = &gen10g_shutdown,
 };
 
+struct phy_driver aqr106_driver = {
+       .name = "Aquantia AQR106",
+       .uid = 0x3a1b4d0,
+       .mask = 0xfffffff0,
+       .features = PHY_10G_FEATURES,
+       .mmds = (MDIO_MMD_PMAPMD | MDIO_MMD_PCS|
+                       MDIO_MMD_PHYXS | MDIO_MMD_AN |
+                       MDIO_MMD_VEND1),
+       .config = &aquantia_config,
+       .startup = &aquantia_startup,
+       .shutdown = &gen10g_shutdown,
+};
+
+struct phy_driver aqr107_driver = {
+       .name = "Aquantia AQR107",
+       .uid = 0x3a1b4e0,
+       .mask = 0xfffffff0,
+       .features = PHY_10G_FEATURES,
+       .mmds = (MDIO_MMD_PMAPMD | MDIO_MMD_PCS|
+                       MDIO_MMD_PHYXS | MDIO_MMD_AN |
+                       MDIO_MMD_VEND1),
+       .config = &aquantia_config,
+       .startup = &aquantia_startup,
+       .shutdown = &gen10g_shutdown,
+};
+
 struct phy_driver aqr405_driver = {
        .name = "Aquantia AQR405",
        .uid = 0x3a1b4b2,
@@ -165,6 +191,8 @@ int phy_aquantia_init(void)
        phy_register(&aq1202_driver);
        phy_register(&aq2104_driver);
        phy_register(&aqr105_driver);
+       phy_register(&aqr106_driver);
+       phy_register(&aqr107_driver);
        phy_register(&aqr405_driver);
 
        return 0;