]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: fec_mxc: Add ref clock setup support for i.MX8M Mini/Nano/Plus
authorMarek Vasut <marex@denx.de>
Mon, 6 Mar 2023 14:53:50 +0000 (15:53 +0100)
committerStefano Babic <sbabic@denx.de>
Thu, 30 Mar 2023 11:47:04 +0000 (13:47 +0200)
commit80a34e4008f022a78409657d2b0a5020a472db2e
tree4581b5694ef7fbbc360947d505e7087e9ee114b1
parentf9e950b9bfd88ac9b22aaf4e3ff04127bdace287
net: fec_mxc: Add ref clock setup support for i.MX8M Mini/Nano/Plus

The FEC ref clock frequency on i.MX8M Mini/Nano/Plus was so far configured
via ad-hoc board code. Replace that with DM clock clk_set_rate() instead.
This way, the driver claims all its required clock and sets the ref clock
rate, without any need of architecture specific register fiddling.

Signed-off-by: Marek Vasut <marex@denx.de>
drivers/net/fec_mxc.c