clk: renesas: rzg2: Mark RWDT clocks as critical
authorUlrich Hecht <uli+renesas@fpond.eu>
Tue, 16 Jun 2020 16:26:26 +0000 (18:26 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 22 Jun 2020 14:54:32 +0000 (16:54 +0200)
Ensures RWDT remains alert throughout the boot process if enabled.

This patch applies the change to the following SoCs: r8a774a1,
r8a774b1 and r8a774c0.

Signed-off-by: Ulrich Hecht <uli+renesas@fpond.eu>
Link: https://lore.kernel.org/r/20200616162626.27944-4-uli+renesas@fpond.eu
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/r8a774a1-cpg-mssr.c
drivers/clk/renesas/r8a774b1-cpg-mssr.c
drivers/clk/renesas/r8a774c0-cpg-mssr.c

index e05bfa2..fd54b9f 100644 (file)
@@ -237,6 +237,7 @@ static const struct mssr_mod_clk r8a774a1_mod_clks[] __initconst = {
 };
 
 static const unsigned int r8a774a1_crit_mod_clks[] __initconst = {
+       MOD_CLK_ID(402),        /* RWDT */
        MOD_CLK_ID(408),        /* INTC-AP (GIC) */
 };
 
index c9af709..f436691 100644 (file)
@@ -233,6 +233,7 @@ static const struct mssr_mod_clk r8a774b1_mod_clks[] __initconst = {
 };
 
 static const unsigned int r8a774b1_crit_mod_clks[] __initconst = {
+       MOD_CLK_ID(402),        /* RWDT */
        MOD_CLK_ID(408),        /* INTC-AP (GIC) */
 };
 
index f91e7a4..9fc9fa9 100644 (file)
@@ -238,6 +238,7 @@ static const struct mssr_mod_clk r8a774c0_mod_clks[] __initconst = {
 };
 
 static const unsigned int r8a774c0_crit_mod_clks[] __initconst = {
+       MOD_CLK_ID(402),        /* RWDT */
        MOD_CLK_ID(408),        /* INTC-AP (GIC) */
 };