]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: dwc_eth_qos: add i.MX93 support
authorSébastien Szymanski <sebastien.szymanski@armadeus.com>
Tue, 17 Oct 2023 09:44:58 +0000 (11:44 +0200)
committerFabio Estevam <festevam@gmail.com>
Wed, 13 Dec 2023 12:48:03 +0000 (09:48 -0300)
Add support for DWC EQoS MAC on i.MX93.

Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
drivers/net/dwc_eth_qos.c
drivers/net/dwc_eth_qos_imx.c

index a4e3698c600317ebb1c90ffbca49d917f1b8e6aa..e40e399c802dce26d0444d600383aed0ed874d4d 100644 (file)
@@ -1711,6 +1711,10 @@ static const struct udevice_id eqos_ids[] = {
                .compatible = "nxp,imx8mp-dwmac-eqos",
                .data = (ulong)&eqos_imx_config
        },
+       {
+               .compatible = "nxp,imx93-dwmac-eqos",
+               .data = (ulong)&eqos_imx_config
+       },
 #endif
 #if IS_ENABLED(CONFIG_DWC_ETH_QOS_ROCKCHIP)
        {
index 60f3f3f5a10fb3f3306ec35bca41db81598fe592..e3f55dd981738244cef7ed01ec72cbfef899e0e2 100644 (file)
@@ -181,6 +181,9 @@ static int eqos_set_tx_clk_speed_imx(struct udevice *dev)
        ulong rate;
        int ret;
 
+       if (device_is_compatible(dev, "nxp,imx93-dwmac-eqos"))
+               return 0;
+
        debug("%s(dev=%p):\n", __func__, dev);
 
        if (eqos->phy->interface == PHY_INTERFACE_MODE_RMII)