diff options
author | Marek Vasut <marek.vasut+renesas@gmail.com> | 2021-04-27 19:36:39 +0200 |
---|---|---|
committer | Marek Vasut <marek.vasut+renesas@gmail.com> | 2021-05-21 15:00:17 +0200 |
commit | e7690e61952b0058214fc36cad91d1c77a8c0239 (patch) | |
tree | 518a679d6fd290cf789b696b278efa593bcccd41 /drivers/gpio/gpio-rcar.c | |
parent | d413214fb74873721d92ffe27fa63158ee84e469 (diff) | |
download | u-boot-e7690e61952b0058214fc36cad91d1c77a8c0239.zip u-boot-e7690e61952b0058214fc36cad91d1c77a8c0239.tar.gz u-boot-e7690e61952b0058214fc36cad91d1c77a8c0239.tar.bz2 |
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>
Diffstat (limited to 'drivers/gpio/gpio-rcar.c')
0 files changed, 0 insertions, 0 deletions