]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: dwc_eth_qos: Add board_interface_eth_init() for i.MX8M Plus
authorMarek Vasut <marex@denx.de>
Mon, 6 Mar 2023 14:53:49 +0000 (15:53 +0100)
committerStefano Babic <sbabic@denx.de>
Thu, 30 Mar 2023 11:47:04 +0000 (13:47 +0200)
commitf9e950b9bfd88ac9b22aaf4e3ff04127bdace287
tree1e3483d21b87be42370528150ce68d95dd668176
parent2e9b3014dfa3d71d6d40e84060ce488b6a5b2836
net: dwc_eth_qos: Add board_interface_eth_init() for i.MX8M Plus

Implement common board_interface_eth_init() and call it from the DWMAC
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 Plus DWMAC and supersedes current board-side configuration
of the same IOMUX GPR[1] duplicated in the board files.

Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
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/dwc_eth_qos_imx.c