clk: renesas: cpg-lib: Move RPC clock registration to the library
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 6 Oct 2021 08:58:33 +0000 (10:58 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 8 Oct 2021 13:09:17 +0000 (15:09 +0200)
commit6f21d145b90f3f5769eb6615af601a973e365a64
tree0e6d2a06c22905978d74d6ab43bd728b34d83279
parentf294a0ea9d12a658ff326bbe0d64137659bc2fc9
clk: renesas: cpg-lib: Move RPC clock registration to the library

We want to reuse this code for V3U soon. Because its RPCCKCR register is
at a different offset, the moved functions do not use the base register
as an argument anymore but the RPCCKCR register itself. Verified that an
Eagle board with R-Car V3M still works.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20211006085836.42155-2-wsa+renesas@sang-engineering.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/rcar-cpg-lib.c
drivers/clk/renesas/rcar-cpg-lib.h
drivers/clk/renesas/rcar-gen3-cpg.c