Skip to content

Commit 29ebc61

Browse files
bijudasgeertu
authored andcommitted
clk: renesas: r9a09g047: Add I2C clocks/resets
Add I2C{0..8} clock and reset entries. Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/20241216120029.143944-3-biju.das.jz@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 3baf027 commit 29ebc61

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

drivers/clk/renesas/r9a09g047-cpg.c

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ enum clk_ids {
2525

2626
/* PLL Clocks */
2727
CLK_PLLCM33,
28+
CLK_PLLCLN,
2829
CLK_PLLDTY,
2930
CLK_PLLCA55,
3031

3132
/* Internal Core Clocks */
3233
CLK_PLLCM33_DIV16,
34+
CLK_PLLCLN_DIV16,
3335
CLK_PLLDTY_ACPU,
3436
CLK_PLLDTY_ACPU_DIV4,
3537

@@ -62,12 +64,15 @@ static const struct cpg_core_clk r9a09g047_core_clks[] __initconst = {
6264

6365
/* PLL Clocks */
6466
DEF_FIXED(".pllcm33", CLK_PLLCM33, CLK_QEXTAL, 200, 3),
67+
DEF_FIXED(".pllcln", CLK_PLLCLN, CLK_QEXTAL, 200, 3),
6568
DEF_FIXED(".plldty", CLK_PLLDTY, CLK_QEXTAL, 200, 3),
6669
DEF_PLL(".pllca55", CLK_PLLCA55, CLK_QEXTAL, PLL_CONF(0x64)),
6770

6871
/* Internal Core Clocks */
6972
DEF_FIXED(".pllcm33_div16", CLK_PLLCM33_DIV16, CLK_PLLCM33, 1, 16),
7073

74+
DEF_FIXED(".pllcln_div16", CLK_PLLCLN_DIV16, CLK_PLLCLN, 1, 16),
75+
7176
DEF_DDIV(".plldty_acpu", CLK_PLLDTY_ACPU, CLK_PLLDTY, CDDIV0_DIVCTL2, dtable_2_64),
7277
DEF_FIXED(".plldty_acpu_div4", CLK_PLLDTY_ACPU_DIV4, CLK_PLLDTY_ACPU, 1, 4),
7378

@@ -89,13 +94,40 @@ static const struct rzv2h_mod_clk r9a09g047_mod_clks[] __initconst = {
8994
BUS_MSTOP(3, BIT(5))),
9095
DEF_MOD("scif_0_clk_pck", CLK_PLLCM33_DIV16, 8, 15, 4, 15,
9196
BUS_MSTOP(3, BIT(14))),
97+
DEF_MOD("riic_8_ckm", CLK_PLLCM33_DIV16, 9, 3, 4, 19,
98+
BUS_MSTOP(3, BIT(13))),
99+
DEF_MOD("riic_0_ckm", CLK_PLLCLN_DIV16, 9, 4, 4, 20,
100+
BUS_MSTOP(1, BIT(1))),
101+
DEF_MOD("riic_1_ckm", CLK_PLLCLN_DIV16, 9, 5, 4, 21,
102+
BUS_MSTOP(1, BIT(2))),
103+
DEF_MOD("riic_2_ckm", CLK_PLLCLN_DIV16, 9, 6, 4, 22,
104+
BUS_MSTOP(1, BIT(3))),
105+
DEF_MOD("riic_3_ckm", CLK_PLLCLN_DIV16, 9, 7, 4, 23,
106+
BUS_MSTOP(1, BIT(4))),
107+
DEF_MOD("riic_4_ckm", CLK_PLLCLN_DIV16, 9, 8, 4, 24,
108+
BUS_MSTOP(1, BIT(5))),
109+
DEF_MOD("riic_5_ckm", CLK_PLLCLN_DIV16, 9, 9, 4, 25,
110+
BUS_MSTOP(1, BIT(6))),
111+
DEF_MOD("riic_6_ckm", CLK_PLLCLN_DIV16, 9, 10, 4, 26,
112+
BUS_MSTOP(1, BIT(7))),
113+
DEF_MOD("riic_7_ckm", CLK_PLLCLN_DIV16, 9, 11, 4, 27,
114+
BUS_MSTOP(1, BIT(8))),
92115
};
93116

94117
static const struct rzv2h_reset r9a09g047_resets[] __initconst = {
95118
DEF_RST(3, 0, 1, 1), /* SYS_0_PRESETN */
96119
DEF_RST(3, 8, 1, 9), /* GIC_0_GICRESET_N */
97120
DEF_RST(3, 9, 1, 10), /* GIC_0_DBG_GICRESET_N */
98121
DEF_RST(9, 5, 4, 6), /* SCIF_0_RST_SYSTEM_N */
122+
DEF_RST(9, 8, 4, 9), /* RIIC_0_MRST */
123+
DEF_RST(9, 9, 4, 10), /* RIIC_1_MRST */
124+
DEF_RST(9, 10, 4, 11), /* RIIC_2_MRST */
125+
DEF_RST(9, 11, 4, 12), /* RIIC_3_MRST */
126+
DEF_RST(9, 12, 4, 13), /* RIIC_4_MRST */
127+
DEF_RST(9, 13, 4, 14), /* RIIC_5_MRST */
128+
DEF_RST(9, 14, 4, 15), /* RIIC_6_MRST */
129+
DEF_RST(9, 15, 4, 16), /* RIIC_7_MRST */
130+
DEF_RST(10, 0, 4, 17), /* RIIC_8_MRST */
99131
};
100132

101133
const struct rzv2h_cpg_info r9a09g047_cpg_info __initconst = {

0 commit comments

Comments
 (0)