net: dwc_eth_qos: Add DM CLK support for i.MX8M Plus
authorMarek Vasut <marex@denx.de>
Mon, 6 Mar 2023 14:53:47 +0000 (15:53 +0100)
committerStefano Babic <sbabic@denx.de>
Thu, 30 Mar 2023 11:47:03 +0000 (13:47 +0200)
commit158456089c02ef7564decea6cff2c5b285fe66d7
treef1a992c8c51bb07e33f245cac0d9625a4dda06a7
parenta79de0808a8dc738ec2076ad47d431c64452111e
net: dwc_eth_qos: Add DM CLK support for i.MX8M Plus

The DWMAC clock in i.MX8M Plus were so far configured via ad-hoc
architecture code. Replace that with DM clock instead. This way,
the driver claims all its required clock, enables and disables
them, and even gets the CSR clock rate and sets the TX clock rate,
without any need of architecture specific register fiddling. Drop
the architecture specific code while at it too.

The adjustment here is modeled after STM32MP15xx clock handling
in this driver.

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