[U-Boot] [PATCH v2] drivers: net: phy: Use Aquantia driver for AQR112, AQR412

Alexandru Marginean alexandru.marginean at nxp.com
Wed Jun 19 12:26:40 UTC 2019


adds AQR112 and AQR412 to the list of supported PHYs using existing AQR
code.

Signed-off-by: Alex Marginean <alexm.osslist at gmail.com>
---

Changes in v2:
	- Numerical ordering of structure definition and function calls

 drivers/net/phy/aquantia.c | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c
index 5c3298d612..465ec2d342 100644
--- a/drivers/net/phy/aquantia.c
+++ b/drivers/net/phy/aquantia.c
@@ -461,6 +461,19 @@ struct phy_driver aqr107_driver =
 	.shutdown =en10g_shutdown,
 };
 
+struct phy_driver aqr112_driver =
+	.name =quantia AQR112",
+	.uid =3a1b660,
+	.mask =fffffff0,
+	.features =Y_10G_FEATURES,
+	.mmds =DIO_MMD_PMAPMD | MDIO_MMD_PCS |
+		 MDIO_MMD_PHYXS | MDIO_MMD_AN |
+		 MDIO_MMD_VEND1),
+	.config =quantia_config,
+	.startup =quantia_startup,
+	.shutdown =en10g_shutdown,
+};
+
 struct phy_driver aqr405_driver =
 	.name =quantia AQR405",
 	.uid =3a1b4b2,
@@ -474,6 +487,19 @@ struct phy_driver aqr405_driver =
 	.shutdown =en10g_shutdown,
 };
 
+struct phy_driver aqr412_driver =
+	.name =quantia AQR412",
+	.uid =3a1b710,
+	.mask =fffffff0,
+	.features =Y_10G_FEATURES,
+	.mmds =DIO_MMD_PMAPMD | MDIO_MMD_PCS |
+		 MDIO_MMD_PHYXS | MDIO_MMD_AN |
+		 MDIO_MMD_VEND1),
+	.config =quantia_config,
+	.startup =quantia_startup,
+	.shutdown =en10g_shutdown,
+};
+
 int phy_aquantia_init(void)
 {
 	phy_register(&aq1202_driver);
@@ -481,7 +507,9 @@ int phy_aquantia_init(void)
 	phy_register(&aqr105_driver);
 	phy_register(&aqr106_driver);
 	phy_register(&aqr107_driver);
+	phy_register(&aqr112_driver);
 	phy_register(&aqr405_driver);
+	phy_register(&aqr412_driver);
 
 	return 0;
 }
-- 
2.17.1



More information about the U-Boot mailing list