net: fec_mxc: Add board_interface_eth_init() for i.MX8M Mini/Nano/Plus
authorMarek Vasut <marex@denx.de>
Mon, 6 Mar 2023 14:53:51 +0000 (15:53 +0100)
committerStefano Babic <sbabic@denx.de>
Thu, 30 Mar 2023 11:47:04 +0000 (13:47 +0200)
commit4bdc3524d76eb9bc6e30b74f3dfe4a0ae5e5b1b6
tree4726fa1c5d051817d3ad833e284d2e8c76e191f5
parent80a34e4008f022a78409657d2b0a5020a472db2e
net: fec_mxc: Add board_interface_eth_init() for i.MX8M Mini/Nano/Plus

Implement common board_interface_eth_init() and call it from the FEC
driver to configure IOMUXC GPR[1] register according to the PHY mode
obtained from DT. This supports all three interface modes supported by
the i.MX8M Mini/Nano/Plus FEC and supersedes the current board-side
configuration of the same IOMUX GPR[1] duplicated in the board files.

Signed-off-by: Marek Vasut <marex@denx.de>
arch/arm/include/asm/arch-imx8m/imx-regs.h
arch/arm/mach-imx/imx8m/clock_imx8mm.c
drivers/net/fec_mxc.c