Skip to content

Commit e93c137

Browse files
bijudasgeertu
authored andcommitted
clk: renesas: r9a07g044: Rename divider table
As per RZ/G2L HW Manual (Rev.0.50), CPG_PL3A_DDIV,CPG_PL3B_DDIV and CPG_PL2_DDIV(for P0) shares same divider table entries. Rename clk_div_table dtable_3b to clk_div_table dtable_1_32 so that it can be reused. 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-3-biju.das.jz@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 2fa9fd6 commit e93c137

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

drivers/clk/renesas/r9a07g044-cpg.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,13 @@ enum clk_ids {
4242
};
4343

4444
/* Divider tables */
45-
static const struct clk_div_table dtable_3b[] = {
45+
static const struct clk_div_table dtable_1_32[] = {
4646
{0, 1},
4747
{1, 2},
4848
{2, 4},
4949
{3, 8},
5050
{4, 32},
51+
{0, 0},
5152
};
5253

5354
static const struct cpg_core_clk r9a07g044_core_clks[] __initconst = {
@@ -72,10 +73,10 @@ static const struct cpg_core_clk r9a07g044_core_clks[] __initconst = {
7273
/* Core output clk */
7374
DEF_FIXED("I", R9A07G044_CLK_I, CLK_PLL1, 1, 1),
7475
DEF_DIV("P0", R9A07G044_CLK_P0, CLK_PLL2_DIV16, DIVPL2A,
75-
dtable_3b, CLK_DIVIDER_HIWORD_MASK),
76+
dtable_1_32, CLK_DIVIDER_HIWORD_MASK),
7677
DEF_FIXED("TSU", R9A07G044_CLK_TSU, CLK_PLL2_DIV20, 1, 1),
7778
DEF_DIV("P1", R9A07G044_CLK_P1, CLK_PLL3_DIV8,
78-
DIVPL3B, dtable_3b, CLK_DIVIDER_HIWORD_MASK),
79+
DIVPL3B, dtable_1_32, CLK_DIVIDER_HIWORD_MASK),
7980
};
8081

8182
static struct rzg2l_mod_clk r9a07g044_mod_clks[] = {

0 commit comments

Comments
 (0)