[PATCH V2 42/49] net: fec_mxc: support i.MX93

Ramon Fried rfried.dev at gmail.com
Sun Jul 3 21:13:28 CEST 2022


On Mon, Jun 27, 2022 at 5:43 AM Peng Fan (OSS) <peng.fan at oss.nxp.com> wrote:
>
> From: Peng Fan <peng.fan at nxp.com>
>
> Support i.MX93 in fec_mxc driver
>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> ---
>  drivers/net/Kconfig   | 2 +-
>  drivers/net/fec_mxc.c | 4 +++-
>  2 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
> index 84d859c21eb..8cf8621467f 100644
> --- a/drivers/net/Kconfig
> +++ b/drivers/net/Kconfig
> @@ -340,7 +340,7 @@ config FEC_MXC_MDIO_BASE
>
>  config FEC_MXC
>         bool "FEC Ethernet controller"
> -       depends on MX28 || MX5 || MX6 || MX7 || IMX8 || IMX8M || IMX8ULP || VF610
> +       depends on MX28 || MX5 || MX6 || MX7 || IMX8 || IMX8M || IMX8ULP || IMX93 || VF610
>         help
>           This driver supports the 10/100 Fast Ethernet controller for
>           NXP i.MX processors.
> diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
> index a623a5c45e4..8bc2b46d403 100644
> --- a/drivers/net/fec_mxc.c
> +++ b/drivers/net/fec_mxc.c
> @@ -598,7 +598,8 @@ static int fecmxc_init(struct udevice *dev)
>         writel(0x00000000, &fec->eth->gaddr2);
>
>         /* Do not access reserved register */
> -       if (!is_mx6ul() && !is_mx6ull() && !is_imx8() && !is_imx8m() && !is_imx8ulp()) {
> +       if (!is_mx6ul() && !is_mx6ull() && !is_imx8() && !is_imx8m() && !is_imx8ulp() &&
> +           !is_imx93()) {
>                 /* clear MIB RAM */
>                 for (i = mib_ptr; i <= mib_ptr + 0xfc; i += 4)
>                         writel(0, i);
> @@ -1357,6 +1358,7 @@ static const struct udevice_id fecmxc_ids[] = {
>         { .compatible = "fsl,imx53-fec" },
>         { .compatible = "fsl,imx7d-fec" },
>         { .compatible = "fsl,mvf600-fec" },
> +       { .compatible = "fsl,imx93-fec" },
>         { }
>  };
>
> --
> 2.36.0
>
Reviewed-by: Ramon Fried <rfried.dev at gmail.com>


More information about the U-Boot mailing list