The fec_mxc.c driver can be reused by i.MX28 when DM_ETH is enabled.
One only needs to add proper compatible and dependency on FEC_MXC in the
Kconfig.

Signed-off-by: Lukasz Majewski <lu...@denx.de>
---

 drivers/net/Kconfig   | 2 +-
 drivers/net/fec_mxc.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index e6a4fdf30e..04f886fe86 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -190,7 +190,7 @@ config FEC_MXC_MDIO_BASE
 
 config FEC_MXC
        bool "FEC Ethernet controller"
-       depends on MX5 || MX6 || MX7 || IMX8 || VF610
+       depends on MX5 || MX6 || MX7 || IMX8 || VF610 || MX28
        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 a672250e16..394585cc63 100644
--- a/drivers/net/fec_mxc.c
+++ b/drivers/net/fec_mxc.c
@@ -1492,6 +1492,7 @@ static const struct udevice_id fecmxc_ids[] = {
        { .compatible = "fsl,imx53-fec" },
        { .compatible = "fsl,imx7d-fec" },
        { .compatible = "fsl,mvf600-fec" },
+       { .compatible = "fsl,imx28-fec" },
        { }
 };
 
-- 
2.11.0

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to