]> git.baikalelectronics.ru Git - uboot.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)
commit955cf2d426aa4c29a1c61d1ec6827f461a08a786
tree1e3483d21b87be42370528150ce68d95dd668176
parent68400ebd253a5295af1dc9d8dbf63b1fd210af62
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