diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2021-10-06 11:58:33 +0300 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2021-10-08 16:09:17 +0300 |
commit | 6f21d145b90f3f5769eb6615af601a973e365a64 (patch) | |
tree | 0e6d2a06c22905978d74d6ab43bd728b34d83279 /drivers/clk/renesas/rcar-cpg-lib.h | |
parent | f294a0ea9d12a658ff326bbe0d64137659bc2fc9 (diff) | |
download | linux-6f21d145b90f3f5769eb6615af601a973e365a64.tar.xz |
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>
Diffstat (limited to 'drivers/clk/renesas/rcar-cpg-lib.h')
-rw-r--r-- | drivers/clk/renesas/rcar-cpg-lib.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/clk/renesas/rcar-cpg-lib.h b/drivers/clk/renesas/rcar-cpg-lib.h index d00c91b116ca..35c0217c2f8b 100644 --- a/drivers/clk/renesas/rcar-cpg-lib.h +++ b/drivers/clk/renesas/rcar-cpg-lib.h @@ -30,4 +30,11 @@ struct clk * __init cpg_sd_clk_register(const char *name, void __iomem *base, unsigned int offset, const char *parent_name, struct raw_notifier_head *notifiers, bool skip_first); +struct clk * __init cpg_rpc_clk_register(const char *name, + void __iomem *rpcckcr, const char *parent_name, + struct raw_notifier_head *notifiers); + +struct clk * __init cpg_rpcd2_clk_register(const char *name, + void __iomem *rpcckcr, + const char *parent_name); #endif |