Skip to content

Commit c292266

Browse files
prabhakarladgeertu
authored andcommitted
clk: renesas: r9a09g056: Add entries for CANFD
Add clock and reset entries for the CANFD IP. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/20251224165049.3384870-5-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 26cc40e commit c292266

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

drivers/clk/renesas/r9a09g056-cpg.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ enum clk_ids {
4646
CLK_PLLCLN_DIV2,
4747
CLK_PLLCLN_DIV8,
4848
CLK_PLLCLN_DIV16,
49+
CLK_PLLCLN_DIV20,
4950
CLK_PLLCLN_DIV64,
5051
CLK_PLLCLN_DIV256,
5152
CLK_PLLCLN_DIV1024,
@@ -183,6 +184,7 @@ static const struct cpg_core_clk r9a09g056_core_clks[] __initconst = {
183184
DEF_FIXED(".pllcln_div2", CLK_PLLCLN_DIV2, CLK_PLLCLN, 1, 2),
184185
DEF_FIXED(".pllcln_div8", CLK_PLLCLN_DIV8, CLK_PLLCLN, 1, 8),
185186
DEF_FIXED(".pllcln_div16", CLK_PLLCLN_DIV16, CLK_PLLCLN, 1, 16),
187+
DEF_FIXED(".pllcln_div20", CLK_PLLCLN_DIV20, CLK_PLLCLN, 1, 20),
186188
DEF_FIXED(".pllcln_div64", CLK_PLLCLN_DIV64, CLK_PLLCLN, 1, 64),
187189
DEF_FIXED(".pllcln_div256", CLK_PLLCLN_DIV256, CLK_PLLCLN, 1, 256),
188190
DEF_FIXED(".pllcln_div1024", CLK_PLLCLN_DIV1024, CLK_PLLCLN, 1, 1024),
@@ -431,6 +433,12 @@ static const struct rzv2h_mod_clk r9a09g056_mod_clks[] __initconst = {
431433
BUS_MSTOP(1, BIT(7))),
432434
DEF_MOD("riic_7_ckm", CLK_PLLCLN_DIV16, 9, 11, 4, 27,
433435
BUS_MSTOP(1, BIT(8))),
436+
DEF_MOD("canfd_0_pclk", CLK_PLLCLN_DIV16, 9, 12, 4, 28,
437+
BUS_MSTOP(10, BIT(14))),
438+
DEF_MOD("canfd_0_clk_ram", CLK_PLLCLN_DIV8, 9, 13, 4, 29,
439+
BUS_MSTOP(10, BIT(14))),
440+
DEF_MOD("canfd_0_clkc", CLK_PLLCLN_DIV20, 9, 14, 4, 30,
441+
BUS_MSTOP(10, BIT(14))),
434442
DEF_MOD("spi_hclk", CLK_PLLCM33_GEAR, 9, 15, 4, 31,
435443
BUS_MSTOP(4, BIT(5))),
436444
DEF_MOD("spi_aclk", CLK_PLLCM33_GEAR, 10, 0, 5, 0,
@@ -603,6 +611,8 @@ static const struct rzv2h_reset r9a09g056_resets[] __initconst = {
603611
DEF_RST(9, 14, 4, 15), /* RIIC_6_MRST */
604612
DEF_RST(9, 15, 4, 16), /* RIIC_7_MRST */
605613
DEF_RST(10, 0, 4, 17), /* RIIC_8_MRST */
614+
DEF_RST(10, 1, 4, 18), /* CANFD_0_RSTP_N */
615+
DEF_RST(10, 2, 4, 19), /* CANFD_0_RSTC_N */
606616
DEF_RST(10, 3, 4, 20), /* SPI_HRESETN */
607617
DEF_RST(10, 4, 4, 21), /* SPI_ARESETN */
608618
DEF_RST(10, 7, 4, 24), /* SDHI_0_IXRST */

0 commit comments

Comments
 (0)