Skip to content

Commit 9e6f3b4

Browse files
dirkbehmegeertu
authored andcommitted
clk: renesas: r8a7795: 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 H3 (R8A7795) 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 6e26901 commit 9e6f3b4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ enum clk_ids {
4444
CLK_S3,
4545
CLK_SDSRC,
4646
CLK_SSPSRC,
47+
CLK_RPCSRC,
4748
CLK_RINT,
4849

4950
/* Module Clocks */
@@ -70,6 +71,12 @@ static struct cpg_core_clk r8a7795_core_clks[] __initdata = {
7071
DEF_FIXED(".s2", CLK_S2, CLK_PLL1_DIV2, 4, 1),
7172
DEF_FIXED(".s3", CLK_S3, CLK_PLL1_DIV2, 6, 1),
7273
DEF_FIXED(".sdsrc", CLK_SDSRC, CLK_PLL1_DIV2, 2, 1),
74+
DEF_BASE(".rpcsrc", CLK_RPCSRC, CLK_TYPE_GEN3_RPCSRC, CLK_PLL1),
75+
76+
DEF_BASE("rpc", R8A7795_CLK_RPC, CLK_TYPE_GEN3_RPC,
77+
CLK_RPCSRC),
78+
DEF_BASE("rpcd2", R8A7795_CLK_RPCD2, CLK_TYPE_GEN3_RPCD2,
79+
R8A7795_CLK_RPC),
7380

7481
DEF_GEN3_OSC(".r", CLK_RINT, CLK_EXTAL, 32),
7582

@@ -242,6 +249,7 @@ static struct mssr_mod_clk r8a7795_mod_clks[] __initdata = {
242249
DEF_MOD("can-fd", 914, R8A7795_CLK_S3D2),
243250
DEF_MOD("can-if1", 915, R8A7795_CLK_S3D4),
244251
DEF_MOD("can-if0", 916, R8A7795_CLK_S3D4),
252+
DEF_MOD("rpc-if", 917, R8A7795_CLK_RPCD2),
245253
DEF_MOD("i2c6", 918, R8A7795_CLK_S0D6),
246254
DEF_MOD("i2c5", 919, R8A7795_CLK_S0D6),
247255
DEF_MOD("i2c-dvfs", 926, R8A7795_CLK_CP),

0 commit comments

Comments
 (0)