diff mbox series

[v2,1/4] net: dwc_eth_qos: add i.MX93 support

Message ID 20231017094501.7713-1-sebastien.szymanski@armadeus.com
State Accepted
Commit 9e1f79bd694b277bff44578b8bfc597e29e5350a
Delegated to: Stefano Babic
Headers show
Series [v2,1/4] net: dwc_eth_qos: add i.MX93 support | expand

Commit Message

Sébastien Szymanski Oct. 17, 2023, 9:44 a.m. UTC
Add support for DWC EQoS MAC on i.MX93.

Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
---

Changes for v2:
 - rebase to not break Rockchip's boards

 drivers/net/dwc_eth_qos.c     | 4 ++++
 drivers/net/dwc_eth_qos_imx.c | 3 +++
 2 files changed, 7 insertions(+)

Comments

Fabio Estevam Oct. 26, 2023, 2:27 p.m. UTC | #1
On Tue, Oct 17, 2023 at 6:45 AM Sébastien Szymanski
<sebastien.szymanski@armadeus.com> wrote:
>
> Add support for DWC EQoS MAC on i.MX93.
>
> Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>

For the series:

Reviewed-by: Fabio Estevam <festevam@gmail.com>
Fabio Estevam Dec. 13, 2023, 4:24 p.m. UTC | #2
On Tue, Oct 17, 2023 at 6:45 AM Sébastien Szymanski
<sebastien.szymanski@armadeus.com> wrote:
>
> Add support for DWC EQoS MAC on i.MX93.
>
> Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>

Applied all to u-boot-imx next, thanks.
diff mbox series

Patch

diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c
index 18466cfe257e..e7eb6213adad 100644
--- a/drivers/net/dwc_eth_qos.c
+++ b/drivers/net/dwc_eth_qos.c
@@ -1707,6 +1707,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)
 	{
diff --git a/drivers/net/dwc_eth_qos_imx.c b/drivers/net/dwc_eth_qos_imx.c
index 60f3f3f5a10f..e3f55dd98173 100644
--- a/drivers/net/dwc_eth_qos_imx.c
+++ b/drivers/net/dwc_eth_qos_imx.c
@@ -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)