]> git.itanic.dy.fi Git - linux-stable/commit
mips: ralink: get cpu rate from new driver code
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 19 Jun 2023 04:09:40 +0000 (06:09 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 21 Jun 2023 12:50:23 +0000 (14:50 +0200)
commitad38c17b0c26ae2108b50ac1eb0281a2e1ce08e9
tree3e5ed80d8b2f5f72fb32631ed86bccc73ea3d062
parent201ddc05777cd8e084b508bcdda22214bfe2895e
mips: ralink: get cpu rate from new driver code

At very early stage on boot, there is a need to set 'mips_hpt_frequency'.
This timer frequency is a half of the CPU frequency. To get clocks properly
set we need to call to 'of_clk_init()' and properly get cpu clock frequency
afterwards. Depending on the SoC, CPU clock index and compatible differs, so
use them to get the proper clock frm the clock provider. Hence, adapt code
to be aligned with new clock driver.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/ralink/clk.c