Revisión | 09de565f76b8dded1c7a77f62eb459a2b1060891 (tree) |
---|---|
Tiempo | 2022-07-26 18:29:01 |
Autor | Peng Fan <peng.fan@nxp....> |
Commiter | Stefano Babic |
net: fec_mxc: support i.MX93
Support i.MX93 in fec_mxc driver
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
@@ -349,7 +349,7 @@ config FEC_MXC_MDIO_BASE | ||
349 | 349 | |
350 | 350 | config FEC_MXC |
351 | 351 | bool "FEC Ethernet controller" |
352 | - depends on MX28 || MX5 || MX6 || MX7 || IMX8 || IMX8M || IMX8ULP || VF610 | |
352 | + depends on MX28 || MX5 || MX6 || MX7 || IMX8 || IMX8M || IMX8ULP || IMX93 || VF610 | |
353 | 353 | help |
354 | 354 | This driver supports the 10/100 Fast Ethernet controller for |
355 | 355 | NXP i.MX processors. |
@@ -598,7 +598,8 @@ static int fecmxc_init(struct udevice *dev) | ||
598 | 598 | writel(0x00000000, &fec->eth->gaddr2); |
599 | 599 | |
600 | 600 | /* Do not access reserved register */ |
601 | - if (!is_mx6ul() && !is_mx6ull() && !is_imx8() && !is_imx8m() && !is_imx8ulp()) { | |
601 | + if (!is_mx6ul() && !is_mx6ull() && !is_imx8() && !is_imx8m() && !is_imx8ulp() && | |
602 | + !is_imx93()) { | |
602 | 603 | /* clear MIB RAM */ |
603 | 604 | for (i = mib_ptr; i <= mib_ptr + 0xfc; i += 4) |
604 | 605 | writel(0, i); |
@@ -1357,6 +1358,7 @@ static const struct udevice_id fecmxc_ids[] = { | ||
1357 | 1358 | { .compatible = "fsl,imx53-fec" }, |
1358 | 1359 | { .compatible = "fsl,imx7d-fec" }, |
1359 | 1360 | { .compatible = "fsl,mvf600-fec" }, |
1361 | + { .compatible = "fsl,imx93-fec" }, | |
1360 | 1362 | { } |
1361 | 1363 | }; |
1362 | 1364 |