Skip to content

Commit 9b12504

Browse files
bijudasgeertu
authored andcommitted
clk: renesas: r9a09g047: Add CANFD clocks and resets
Add CANFD clock and reset entries. Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/20250218105007.66358-2-biju.das.jz@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 037800c commit 9b12504

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/clk/renesas/r9a09g047-cpg.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ enum clk_ids {
3535
CLK_PLLCLN_DIV2,
3636
CLK_PLLCLN_DIV8,
3737
CLK_PLLCLN_DIV16,
38+
CLK_PLLCLN_DIV20,
3839
CLK_PLLDTY_ACPU,
3940
CLK_PLLDTY_ACPU_DIV2,
4041
CLK_PLLDTY_ACPU_DIV4,
@@ -87,6 +88,7 @@ static const struct cpg_core_clk r9a09g047_core_clks[] __initconst = {
8788
DEF_FIXED(".pllcln_div2", CLK_PLLCLN_DIV2, CLK_PLLCLN, 1, 2),
8889
DEF_FIXED(".pllcln_div8", CLK_PLLCLN_DIV8, CLK_PLLCLN, 1, 8),
8990
DEF_FIXED(".pllcln_div16", CLK_PLLCLN_DIV16, CLK_PLLCLN, 1, 16),
91+
DEF_FIXED(".pllcln_div20", CLK_PLLCLN_DIV20, CLK_PLLCLN, 1, 20),
9092

9193
DEF_DDIV(".plldty_acpu", CLK_PLLDTY_ACPU, CLK_PLLDTY, CDDIV0_DIVCTL2, dtable_2_64),
9294
DEF_FIXED(".plldty_acpu_div2", CLK_PLLDTY_ACPU_DIV2, CLK_PLLDTY_ACPU, 1, 2),
@@ -145,6 +147,12 @@ static const struct rzv2h_mod_clk r9a09g047_mod_clks[] __initconst = {
145147
BUS_MSTOP(1, BIT(7))),
146148
DEF_MOD("riic_7_ckm", CLK_PLLCLN_DIV16, 9, 11, 4, 27,
147149
BUS_MSTOP(1, BIT(8))),
150+
DEF_MOD("canfd_0_pclk", CLK_PLLCLN_DIV16, 9, 12, 4, 28,
151+
BUS_MSTOP(10, BIT(14))),
152+
DEF_MOD("canfd_0_clk_ram", CLK_PLLCLN_DIV8, 9, 13, 4, 29,
153+
BUS_MSTOP(10, BIT(14))),
154+
DEF_MOD("canfd_0_clkc", CLK_PLLCLN_DIV20, 9, 14, 4, 30,
155+
BUS_MSTOP(10, BIT(14))),
148156
DEF_MOD("sdhi_0_imclk", CLK_PLLCLN_DIV8, 10, 3, 5, 3,
149157
BUS_MSTOP(8, BIT(2))),
150158
DEF_MOD("sdhi_0_imclk2", CLK_PLLCLN_DIV8, 10, 4, 5, 4,
@@ -195,6 +203,8 @@ static const struct rzv2h_reset r9a09g047_resets[] __initconst = {
195203
DEF_RST(9, 14, 4, 15), /* RIIC_6_MRST */
196204
DEF_RST(9, 15, 4, 16), /* RIIC_7_MRST */
197205
DEF_RST(10, 0, 4, 17), /* RIIC_8_MRST */
206+
DEF_RST(10, 1, 4, 18), /* CANFD_0_RSTP_N */
207+
DEF_RST(10, 2, 4, 19), /* CANFD_0_RSTC_N */
198208
DEF_RST(10, 7, 4, 24), /* SDHI_0_IXRST */
199209
DEF_RST(10, 8, 4, 25), /* SDHI_1_IXRST */
200210
DEF_RST(10, 9, 4, 26), /* SDHI_2_IXRST */

0 commit comments

Comments
 (0)