Skip to content

Commit 9375d70

Browse files
Tommaso Merciaigeertu
authored andcommitted
clk: renesas: r9a09g047: Add clock and reset entries for GE3D
Add CLK_PLLVDO_GPU along with the necessary clock and reset entries for GE3D. Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/20250402131142.1270701-2-tommaso.merciai.xr@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 506f960 commit 9375d70

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/clk/renesas/r9a09g047-cpg.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ enum clk_ids {
4141
CLK_PLLDTY_ACPU_DIV4,
4242
CLK_PLLDTY_DIV16,
4343
CLK_PLLVDO_CRU0,
44+
CLK_PLLVDO_GPU,
4445

4546
/* Module Clocks */
4647
MOD_CLK_BASE,
@@ -96,6 +97,7 @@ static const struct cpg_core_clk r9a09g047_core_clks[] __initconst = {
9697
DEF_FIXED(".plldty_div16", CLK_PLLDTY_DIV16, CLK_PLLDTY, 1, 16),
9798

9899
DEF_DDIV(".pllvdo_cru0", CLK_PLLVDO_CRU0, CLK_PLLVDO, CDDIV3_DIVCTL3, dtable_2_4),
100+
DEF_DDIV(".pllvdo_gpu", CLK_PLLVDO_GPU, CLK_PLLVDO, CDDIV3_DIVCTL1, dtable_2_64),
99101

100102
/* Core Clocks */
101103
DEF_FIXED("sys_0_pclk", R9A09G047_SYS_0_PCLK, CLK_QEXTAL, 1, 1),
@@ -183,6 +185,12 @@ static const struct rzv2h_mod_clk r9a09g047_mod_clks[] __initconst = {
183185
BUS_MSTOP(9, BIT(4))),
184186
DEF_MOD("cru_0_pclk", CLK_PLLDTY_DIV16, 13, 4, 6, 20,
185187
BUS_MSTOP(9, BIT(4))),
188+
DEF_MOD("ge3d_clk", CLK_PLLVDO_GPU, 15, 0, 7, 16,
189+
BUS_MSTOP(3, BIT(4))),
190+
DEF_MOD("ge3d_axi_clk", CLK_PLLDTY_ACPU_DIV2, 15, 1, 7, 17,
191+
BUS_MSTOP(3, BIT(4))),
192+
DEF_MOD("ge3d_ace_clk", CLK_PLLDTY_ACPU_DIV2, 15, 2, 7, 18,
193+
BUS_MSTOP(3, BIT(4))),
186194
DEF_MOD("tsu_1_pclk", CLK_QEXTAL, 16, 10, 8, 10,
187195
BUS_MSTOP(2, BIT(15))),
188196
};
@@ -213,6 +221,9 @@ static const struct rzv2h_reset r9a09g047_resets[] __initconst = {
213221
DEF_RST(12, 5, 5, 22), /* CRU_0_PRESETN */
214222
DEF_RST(12, 6, 5, 23), /* CRU_0_ARESETN */
215223
DEF_RST(12, 7, 5, 24), /* CRU_0_S_RESETN */
224+
DEF_RST(13, 13, 6, 14), /* GE3D_RESETN */
225+
DEF_RST(13, 14, 6, 15), /* GE3D_AXI_RESETN */
226+
DEF_RST(13, 15, 6, 16), /* GE3D_ACE_RESETN */
216227
DEF_RST(15, 8, 7, 9), /* TSU_1_PRESETN */
217228
};
218229

0 commit comments

Comments
 (0)