Skip to content

Commit 922c892

Browse files
bijudasgeertu
authored andcommitted
clk: renesas: r9a09g047: Add SDHI clocks/resets
Add SDHI[0-2] clock and reset entries. Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/20250126134616.37334-3-biju.das.jz@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 90a2bee commit 922c892

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

drivers/clk/renesas/r9a09g047-cpg.c

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ enum clk_ids {
3131

3232
/* Internal Core Clocks */
3333
CLK_PLLCM33_DIV16,
34+
CLK_PLLCLN_DIV2,
35+
CLK_PLLCLN_DIV8,
3436
CLK_PLLCLN_DIV16,
3537
CLK_PLLDTY_ACPU,
3638
CLK_PLLDTY_ACPU_DIV4,
@@ -71,6 +73,8 @@ static const struct cpg_core_clk r9a09g047_core_clks[] __initconst = {
7173
/* Internal Core Clocks */
7274
DEF_FIXED(".pllcm33_div16", CLK_PLLCM33_DIV16, CLK_PLLCM33, 1, 16),
7375

76+
DEF_FIXED(".pllcln_div2", CLK_PLLCLN_DIV2, CLK_PLLCLN, 1, 2),
77+
DEF_FIXED(".pllcln_div8", CLK_PLLCLN_DIV8, CLK_PLLCLN, 1, 8),
7478
DEF_FIXED(".pllcln_div16", CLK_PLLCLN_DIV16, CLK_PLLCLN, 1, 16),
7579

7680
DEF_DDIV(".plldty_acpu", CLK_PLLDTY_ACPU, CLK_PLLDTY, CDDIV0_DIVCTL2, dtable_2_64),
@@ -124,6 +128,30 @@ static const struct rzv2h_mod_clk r9a09g047_mod_clks[] __initconst = {
124128
BUS_MSTOP(1, BIT(7))),
125129
DEF_MOD("riic_7_ckm", CLK_PLLCLN_DIV16, 9, 11, 4, 27,
126130
BUS_MSTOP(1, BIT(8))),
131+
DEF_MOD("sdhi_0_imclk", CLK_PLLCLN_DIV8, 10, 3, 5, 3,
132+
BUS_MSTOP(8, BIT(2))),
133+
DEF_MOD("sdhi_0_imclk2", CLK_PLLCLN_DIV8, 10, 4, 5, 4,
134+
BUS_MSTOP(8, BIT(2))),
135+
DEF_MOD("sdhi_0_clk_hs", CLK_PLLCLN_DIV2, 10, 5, 5, 5,
136+
BUS_MSTOP(8, BIT(2))),
137+
DEF_MOD("sdhi_0_aclk", CLK_PLLDTY_ACPU_DIV4, 10, 6, 5, 6,
138+
BUS_MSTOP(8, BIT(2))),
139+
DEF_MOD("sdhi_1_imclk", CLK_PLLCLN_DIV8, 10, 7, 5, 7,
140+
BUS_MSTOP(8, BIT(3))),
141+
DEF_MOD("sdhi_1_imclk2", CLK_PLLCLN_DIV8, 10, 8, 5, 8,
142+
BUS_MSTOP(8, BIT(3))),
143+
DEF_MOD("sdhi_1_clk_hs", CLK_PLLCLN_DIV2, 10, 9, 5, 9,
144+
BUS_MSTOP(8, BIT(3))),
145+
DEF_MOD("sdhi_1_aclk", CLK_PLLDTY_ACPU_DIV4, 10, 10, 5, 10,
146+
BUS_MSTOP(8, BIT(3))),
147+
DEF_MOD("sdhi_2_imclk", CLK_PLLCLN_DIV8, 10, 11, 5, 11,
148+
BUS_MSTOP(8, BIT(4))),
149+
DEF_MOD("sdhi_2_imclk2", CLK_PLLCLN_DIV8, 10, 12, 5, 12,
150+
BUS_MSTOP(8, BIT(4))),
151+
DEF_MOD("sdhi_2_clk_hs", CLK_PLLCLN_DIV2, 10, 13, 5, 13,
152+
BUS_MSTOP(8, BIT(4))),
153+
DEF_MOD("sdhi_2_aclk", CLK_PLLDTY_ACPU_DIV4, 10, 14, 5, 14,
154+
BUS_MSTOP(8, BIT(4))),
127155
};
128156

129157
static const struct rzv2h_reset r9a09g047_resets[] __initconst = {
@@ -143,6 +171,9 @@ static const struct rzv2h_reset r9a09g047_resets[] __initconst = {
143171
DEF_RST(9, 14, 4, 15), /* RIIC_6_MRST */
144172
DEF_RST(9, 15, 4, 16), /* RIIC_7_MRST */
145173
DEF_RST(10, 0, 4, 17), /* RIIC_8_MRST */
174+
DEF_RST(10, 7, 4, 24), /* SDHI_0_IXRST */
175+
DEF_RST(10, 8, 4, 25), /* SDHI_1_IXRST */
176+
DEF_RST(10, 9, 4, 26), /* SDHI_2_IXRST */
146177
};
147178

148179
const struct rzv2h_cpg_info r9a09g047_cpg_info __initconst = {

0 commit comments

Comments
 (0)