Skip to content

Commit 715286f

Browse files
dirkbehmegeertu
authored andcommitted
clk: renesas: r8a7796: Add RPC clocks
Describe the RPCSRC internal clock and the RPC[D2] clocks derived from it, as well as the RPC-IF module clock, in the R-Car M3-W/M3-W+ (R8A7796) CPG/MSSR driver. Inspired by commit 94e3935 ("clk: renesas: r8a77980: Add RPC clocks"). Signed-off-by: Dirk Behme <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 9e6f3b4 commit 715286f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/clk/renesas/r8a7796-cpg-mssr.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ enum clk_ids {
4646
CLK_S3,
4747
CLK_SDSRC,
4848
CLK_SSPSRC,
49+
CLK_RPCSRC,
4950
CLK_RINT,
5051

5152
/* Module Clocks */
@@ -72,6 +73,12 @@ static const struct cpg_core_clk r8a7796_core_clks[] __initconst = {
7273
DEF_FIXED(".s2", CLK_S2, CLK_PLL1_DIV2, 4, 1),
7374
DEF_FIXED(".s3", CLK_S3, CLK_PLL1_DIV2, 6, 1),
7475
DEF_FIXED(".sdsrc", CLK_SDSRC, CLK_PLL1_DIV2, 2, 1),
76+
DEF_BASE(".rpcsrc", CLK_RPCSRC, CLK_TYPE_GEN3_RPCSRC, CLK_PLL1),
77+
78+
DEF_BASE("rpc", R8A7796_CLK_RPC, CLK_TYPE_GEN3_RPC,
79+
CLK_RPCSRC),
80+
DEF_BASE("rpcd2", R8A7796_CLK_RPCD2, CLK_TYPE_GEN3_RPCD2,
81+
R8A7796_CLK_RPC),
7582

7683
DEF_GEN3_OSC(".r", CLK_RINT, CLK_EXTAL, 32),
7784

@@ -217,6 +224,7 @@ static struct mssr_mod_clk r8a7796_mod_clks[] __initdata = {
217224
DEF_MOD("can-fd", 914, R8A7796_CLK_S3D2),
218225
DEF_MOD("can-if1", 915, R8A7796_CLK_S3D4),
219226
DEF_MOD("can-if0", 916, R8A7796_CLK_S3D4),
227+
DEF_MOD("rpc-if", 917, R8A7796_CLK_RPCD2),
220228
DEF_MOD("i2c6", 918, R8A7796_CLK_S0D6),
221229
DEF_MOD("i2c5", 919, R8A7796_CLK_S0D6),
222230
DEF_MOD("i2c-dvfs", 926, R8A7796_CLK_CP),

0 commit comments

Comments
 (0)