]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: renesas: Deduplicate gen3_clk_get_rate64() PLL handling
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 27 Apr 2021 17:36:39 +0000 (19:36 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Fri, 21 May 2021 13:00:17 +0000 (15:00 +0200)
commite7690e61952b0058214fc36cad91d1c77a8c0239
tree518a679d6fd290cf789b696b278efa593bcccd41
parentd413214fb74873721d92ffe27fa63158ee84e469
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>
drivers/clk/renesas/clk-rcar-gen3.c