Skip to content

Commit f8ea1a2

Browse files
Niklas Söderlundgeertu
authored andcommitted
clk: renesas: r8a779a0: Add ZG Core clock
Describe the ZG Core clock needed to operate the PowerVR GPU. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/20251106211604.2766465-4-niklas.soderlund+renesas@ragnatech.se Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 19be362 commit f8ea1a2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

drivers/clk/renesas/r8a779a0-cpg-mssr.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
enum clk_ids {
2828
/* Core Clock Outputs exported to DT */
29-
LAST_DT_CORE_CLK = R8A779A0_CLK_OSC,
29+
LAST_DT_CORE_CLK = R8A779A0_CLK_ZG,
3030

3131
/* External Input Clocks */
3232
CLK_EXTAL,
@@ -39,6 +39,7 @@ enum clk_ids {
3939
CLK_PLL21,
4040
CLK_PLL30,
4141
CLK_PLL31,
42+
CLK_PLL4,
4243
CLK_PLL5,
4344
CLK_PLL1_DIV2,
4445
CLK_PLL20_DIV2,
@@ -65,6 +66,7 @@ enum clk_ids {
6566
#define CPG_PLL21CR 0x0838 /* PLL21 Control Register */
6667
#define CPG_PLL30CR 0x083c /* PLL30 Control Register */
6768
#define CPG_PLL31CR 0x0840 /* PLL31 Control Register */
69+
#define CPG_PLL4CR 0x0844 /* PLL4 Control Register */
6870

6971
static const struct cpg_core_clk r8a779a0_core_clks[] __initconst = {
7072
/* External Clock Inputs */
@@ -79,6 +81,7 @@ static const struct cpg_core_clk r8a779a0_core_clks[] __initconst = {
7981
DEF_PLL(".pll21", CLK_PLL21, CPG_PLL21CR),
8082
DEF_PLL(".pll30", CLK_PLL30, CPG_PLL30CR),
8183
DEF_PLL(".pll31", CLK_PLL31, CPG_PLL31CR),
84+
DEF_PLL(".pll4", CLK_PLL4, CPG_PLL4CR),
8285

8386
DEF_FIXED(".pll1_div2", CLK_PLL1_DIV2, CLK_PLL1, 2, 1),
8487
DEF_FIXED(".pll20_div2", CLK_PLL20_DIV2, CLK_PLL20, 2, 1),
@@ -98,6 +101,7 @@ static const struct cpg_core_clk r8a779a0_core_clks[] __initconst = {
98101
/* Core Clock Outputs */
99102
DEF_GEN4_Z("z0", R8A779A0_CLK_Z0, CLK_TYPE_GEN4_Z, CLK_PLL20, 2, 0),
100103
DEF_GEN4_Z("z1", R8A779A0_CLK_Z1, CLK_TYPE_GEN4_Z, CLK_PLL21, 2, 8),
104+
DEF_GEN4_Z("zg", R8A779A0_CLK_ZG, CLK_TYPE_GEN4_Z, CLK_PLL4, 2, 88),
101105
DEF_FIXED("zx", R8A779A0_CLK_ZX, CLK_PLL20_DIV2, 2, 1),
102106
DEF_FIXED("s1d1", R8A779A0_CLK_S1D1, CLK_S1, 1, 1),
103107
DEF_FIXED("s1d2", R8A779A0_CLK_S1D2, CLK_S1, 2, 1),

0 commit comments

Comments
 (0)