commit | 8f5678639cdaa9fe1081ce519af8bb94ebafba07 | [log] [tgz] |
---|---|---|
author | Marek Vasut <marek.vasut+renesas@gmail.com> | Tue Apr 27 19:36:39 2021 +0200 |
committer | Marek Vasut <marek.vasut+renesas@gmail.com> | Fri May 21 15:00:17 2021 +0200 |
tree | 518a679d6fd290cf789b696b278efa593bcccd41 | |
parent | 94803461c5952910c7e9d5193b7f5dbb3bf3006a [diff] |
clk: renesas: Deduplicate gen3_clk_get_rate64() PLL handling Most of the PLLx, MAIN, FIXED clock handlers are calling very similar code, which determines parent rate and then applies multiplication and division. The only difference is whether multiplication is fixed factor or coming from CRx register. Deduplicate the code into a single function. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>