Skip to content

Commit 10dfa83

Browse files
bijudasgeertu
authored andcommitted
clk: renesas: r9a07g043: Add LCDC clock and reset entries
Add LCDC clock and reset entries to CPG driver. Signed-off-by: Biju Das <[email protected]> Acked-by: Conor Dooley <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 2331933 commit 10dfa83

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

drivers/clk/renesas/r9a07g043-cpg.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ enum clk_ids {
5252
CLK_PLL5,
5353
CLK_PLL5_500,
5454
CLK_PLL5_250,
55+
CLK_PLL5_FOUTPOSTDIV,
56+
CLK_DSI_DIV,
5557
#endif
5658
CLK_PLL6,
5759
CLK_PLL6_250,
@@ -120,6 +122,7 @@ static const struct cpg_core_clk r9a07g043_core_clks[] __initconst = {
120122
DEF_FIXED(".pll5", CLK_PLL5, CLK_EXTAL, 125, 1),
121123
DEF_FIXED(".pll5_500", CLK_PLL5_500, CLK_PLL5, 1, 6),
122124
DEF_FIXED(".pll5_250", CLK_PLL5_250, CLK_PLL5_500, 1, 2),
125+
DEF_PLL5_FOUTPOSTDIV(".pll5_foutpostdiv", CLK_PLL5_FOUTPOSTDIV, CLK_EXTAL),
123126
#endif
124127
DEF_FIXED(".pll6", CLK_PLL6, CLK_EXTAL, 125, 6),
125128
DEF_FIXED(".pll6_250", CLK_PLL6_250, CLK_PLL6, 1, 2),
@@ -146,6 +149,8 @@ static const struct cpg_core_clk r9a07g043_core_clks[] __initconst = {
146149
#ifdef CONFIG_ARM64
147150
DEF_FIXED("M2", R9A07G043_CLK_M2, CLK_PLL3_533, 1, 2),
148151
DEF_FIXED("M2_DIV2", CLK_M2_DIV2, R9A07G043_CLK_M2, 1, 2),
152+
DEF_DSI_DIV("DSI_DIV", CLK_DSI_DIV, CLK_PLL5_FOUTPOSTDIV, CLK_SET_RATE_PARENT),
153+
DEF_FIXED("M3", R9A07G043_CLK_M3, CLK_DSI_DIV, 1, 1),
149154
#endif
150155
};
151156

@@ -209,6 +214,12 @@ static const struct rzg2l_mod_clk r9a07g043_mod_clks[] = {
209214
0x564, 2),
210215
DEF_MOD("cru_aclk", R9A07G043_CRU_ACLK, R9A07G043_CLK_M0,
211216
0x564, 3),
217+
DEF_COUPLED("lcdc_clk_a", R9A07G043_LCDC_CLK_A, R9A07G043_CLK_M0,
218+
0x56c, 0),
219+
DEF_COUPLED("lcdc_clk_p", R9A07G043_LCDC_CLK_P, R9A07G043_CLK_ZT,
220+
0x56c, 0),
221+
DEF_MOD("lcdc_clk_d", R9A07G043_LCDC_CLK_D, R9A07G043_CLK_M3,
222+
0x56c, 1),
212223
#endif
213224
DEF_MOD("ssi0_pclk", R9A07G043_SSI0_PCLK2, R9A07G043_CLK_P0,
214225
0x570, 0),
@@ -309,6 +320,7 @@ static const struct rzg2l_reset r9a07g043_resets[] = {
309320
DEF_RST(R9A07G043_CRU_CMN_RSTB, 0x864, 0),
310321
DEF_RST(R9A07G043_CRU_PRESETN, 0x864, 1),
311322
DEF_RST(R9A07G043_CRU_ARESETN, 0x864, 2),
323+
DEF_RST(R9A07G043_LCDC_RESET_N, 0x86c, 0),
312324
#endif
313325
DEF_RST(R9A07G043_SSI0_RST_M2_REG, 0x870, 0),
314326
DEF_RST(R9A07G043_SSI1_RST_M2_REG, 0x870, 1),

0 commit comments

Comments
 (0)