Skip to content

Commit fd8c3f6

Browse files
bijudasgeertu
authored andcommitted
clk: renesas: r9a07g044: Fix P1 Clock
As per RZ/G2L HW Manual(Rev.0.50) P1 is sourced from pll3_div2_4. So fix the clock definitions for P1. Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Link: https://lore.kernel.org/r/20210626081344.5783-4-biju.das.jz@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent e93c137 commit fd8c3f6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/clk/renesas/r9a07g044-cpg.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ enum clk_ids {
3030
CLK_PLL2_DIV20,
3131
CLK_PLL3,
3232
CLK_PLL3_DIV2,
33+
CLK_PLL3_DIV2_4,
3334
CLK_PLL3_DIV4,
34-
CLK_PLL3_DIV8,
3535
CLK_PLL4,
3636
CLK_PLL5,
3737
CLK_PLL5_DIV2,
@@ -67,15 +67,15 @@ static const struct cpg_core_clk r9a07g044_core_clks[] __initconst = {
6767
DEF_FIXED(".pll2_div20", CLK_PLL2_DIV20, CLK_PLL2, 1, 20),
6868

6969
DEF_FIXED(".pll3_div2", CLK_PLL3_DIV2, CLK_PLL3, 1, 2),
70+
DEF_FIXED(".pll3_div2_4", CLK_PLL3_DIV2_4, CLK_PLL3_DIV2, 1, 4),
7071
DEF_FIXED(".pll3_div4", CLK_PLL3_DIV4, CLK_PLL3, 1, 4),
71-
DEF_FIXED(".pll3_div8", CLK_PLL3_DIV8, CLK_PLL3, 1, 8),
7272

7373
/* Core output clk */
7474
DEF_FIXED("I", R9A07G044_CLK_I, CLK_PLL1, 1, 1),
7575
DEF_DIV("P0", R9A07G044_CLK_P0, CLK_PLL2_DIV16, DIVPL2A,
7676
dtable_1_32, CLK_DIVIDER_HIWORD_MASK),
7777
DEF_FIXED("TSU", R9A07G044_CLK_TSU, CLK_PLL2_DIV20, 1, 1),
78-
DEF_DIV("P1", R9A07G044_CLK_P1, CLK_PLL3_DIV8,
78+
DEF_DIV("P1", R9A07G044_CLK_P1, CLK_PLL3_DIV2_4,
7979
DIVPL3B, dtable_1_32, CLK_DIVIDER_HIWORD_MASK),
8080
};
8181

0 commit comments

Comments
 (0)