net: fec_mxc: Add support for i.MX91
PATCH 1/1 net: fec_mxc: Add support for i.MX91
The i.MX91 SoC reuses the ENET FEC from i.MX93. Add all required driver checks to make it work also on the i.MX91 based platforms.
Signed-off-by Primoz Fiser <[email protected]>
--- drivers/net/Kconfig | 2 +- drivers/net/fec_mxc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/Kconfig +1 -1
@@ -423,7 +423,7 @@ config FEC_MXC_MDIO_BASE config FEC_MXC bool "FEC Ethernet controller" - depends on MX28 || MX5 || MX6 || MX7 || IMX8 || IMX8M || IMX8ULP || IMX93 || VF610 + depends on MX28 || MX5 || MX6 || MX7 || IMX8 || IMX8M || IMX8ULP || IMX91 || IMX93 || VF610 help This driver supports the 10/100 Fast Ethernet controller for NXP i.MX processors.
drivers/net/fec_mxc.c +2 -2
@@ -594,7 +594,7 @@ static int fecmxc_init(struct udevice *dev)/* Do not access reserved register */ if (!is_mx6ul () && !is_mx6ull () && !is_imx8 () && !is_imx8m () && !is_imx8ulp () && - !is_imx93 ()) { + !is_imx91 () && !is_imx93 ()) {/* clear MIB RAM */ for (i = mib_ptr; i <= mib_ptr +0xfc ; i +=4 )writel (0 , i);
@@ -1236,7 +1236,7 @@ static int fecmxc_set_ref_clk(struct clk *clk_ref, phy_interface_t interface) interface == PHY_INTERFACE_MODE_RGMII_RXID || interface == PHY_INTERFACE_MODE_RGMII_TXID) { freq = 125000000; - if (is_imx93()) + if (is_imx91() || is_imx93()) freq = freq << 1; } else {return -EINVAL ;
Signature · 1 line
2.34.1