]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
clk: renesas: r9a09g057: Add clock and reset entries for ICU
authorFabrizio Castro <fabrizio.castro.jz@renesas.com>
Mon, 30 Sep 2024 14:52:42 +0000 (15:52 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 7 Oct 2024 08:33:51 +0000 (10:33 +0200)
Add clock and reset entries for the Renesas RZ/V2H(P) ICU IP block.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20240930145244.356565-4-fabrizio.castro.jz@renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/r9a09g057-cpg.c

index a426d0aa459245238b0b8a036a40614e41baf257..7c4507fd34e6a3f1522b7474a165ec60061cdba4 100644 (file)
@@ -94,6 +94,7 @@ static const struct cpg_core_clk r9a09g057_core_clks[] __initconst = {
 };
 
 static const struct rzv2h_mod_clk r9a09g057_mod_clks[] __initconst = {
+       DEF_MOD_CRITICAL("icu_0_pclk_i",        CLK_PLLCM33_DIV16, 0, 5, 0, 5),
        DEF_MOD("gtm_0_pclk",                   CLK_PLLCM33_DIV16, 4, 3, 2, 3),
        DEF_MOD("gtm_1_pclk",                   CLK_PLLCM33_DIV16, 4, 4, 2, 4),
        DEF_MOD("gtm_2_pclk",                   CLK_PLLCLN_DIV16, 4, 5, 2, 5),
@@ -135,6 +136,7 @@ static const struct rzv2h_mod_clk r9a09g057_mod_clks[] __initconst = {
 };
 
 static const struct rzv2h_reset r9a09g057_resets[] __initconst = {
+       DEF_RST(3, 6, 1, 7),            /* ICU_0_PRESETN_I */
        DEF_RST(6, 13, 2, 30),          /* GTM_0_PRESETZ */
        DEF_RST(6, 14, 2, 31),          /* GTM_1_PRESETZ */
        DEF_RST(6, 15, 3, 0),           /* GTM_2_PRESETZ */