[U-Boot] [PATCH] drivers: net: phy: Use Aquantia driver for AQR112, AQR412
Ramon Fried
rfried.dev at gmail.com
Wed Jun 19 11:45:26 UTC 2019
On Wed, Jun 19, 2019 at 12:06 PM Alexandru Marginean
<alexandru.marginean at nxp.com> wrote:
>
> adds AQR112 and AQR412 to the list of supported PHYs using existing AQR
> code.
>
> Signed-off-by: Alex Marginean <alexm.osslist at gmail.com>
> ---
> 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..4c0fd36ea7 100644
> --- a/drivers/net/phy/aquantia.c
> +++ b/drivers/net/phy/aquantia.c
> @@ -474,6 +474,32 @@ struct phy_driver aqr405_driver = {
> .shutdown = &gen10g_shutdown,
> };
>
> +struct phy_driver aqr112_driver = {
> + .name = "Aquantia AQR112",
> + .uid = 0x3a1b660,
> + .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 aqr412_driver = {
> + .name = "Aquantia AQR412",
> + .uid = 0x3a1b710,
> + .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,
> +};
> +
> int phy_aquantia_init(void)
> {
> phy_register(&aq1202_driver);
> @@ -482,6 +508,8 @@ int phy_aquantia_init(void)
> phy_register(&aqr106_driver);
> phy_register(&aqr107_driver);
> phy_register(&aqr405_driver);
> + phy_register(&aqr112_driver);
> + phy_register(&aqr412_driver);
Can you reorder it that 112 is after 107 and 412 is after 405 ?
Thanks,
Ramon.
>
> return 0;
> }
> --
> 2.17.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
More information about the U-Boot
mailing list