Skip to content

Commit 97088b3

Browse files
claudiubezneageertu
authored andcommitted
clk: renesas: r9a08g045: Add clocks, resets and power domains support for SSI
Add SSI clocks, resets and power domains support for the SSI blocks available on the Renesas RZ/G3S SoC. Reviewed-by: Biju Das <[email protected]> Signed-off-by: Claudiu Beznea <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent a6ca7e6 commit 97088b3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

drivers/clk/renesas/r9a08g045-cpg.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,14 @@ static const struct rzg2l_mod_clk r9a08g045_mod_clks[] = {
209209
DEF_MOD("sdhi2_imclk2", R9A08G045_SDHI2_IMCLK2, CLK_SD2_DIV4, 0x554, 9),
210210
DEF_MOD("sdhi2_clk_hs", R9A08G045_SDHI2_CLK_HS, R9A08G045_CLK_SD2, 0x554, 10),
211211
DEF_MOD("sdhi2_aclk", R9A08G045_SDHI2_ACLK, R9A08G045_CLK_P1, 0x554, 11),
212+
DEF_MOD("ssi0_pclk2", R9A08G045_SSI0_PCLK2, R9A08G045_CLK_P0, 0x570, 0),
213+
DEF_MOD("ssi0_sfr", R9A08G045_SSI0_PCLK_SFR, R9A08G045_CLK_P0, 0x570, 1),
214+
DEF_MOD("ssi1_pclk2", R9A08G045_SSI1_PCLK2, R9A08G045_CLK_P0, 0x570, 2),
215+
DEF_MOD("ssi1_sfr", R9A08G045_SSI1_PCLK_SFR, R9A08G045_CLK_P0, 0x570, 3),
216+
DEF_MOD("ssi2_pclk2", R9A08G045_SSI2_PCLK2, R9A08G045_CLK_P0, 0x570, 4),
217+
DEF_MOD("ssi2_sfr", R9A08G045_SSI2_PCLK_SFR, R9A08G045_CLK_P0, 0x570, 5),
218+
DEF_MOD("ssi3_pclk2", R9A08G045_SSI3_PCLK2, R9A08G045_CLK_P0, 0x570, 6),
219+
DEF_MOD("ssi3_sfr", R9A08G045_SSI3_PCLK_SFR, R9A08G045_CLK_P0, 0x570, 7),
212220
DEF_MOD("usb0_host", R9A08G045_USB_U2H0_HCLK, R9A08G045_CLK_P1, 0x578, 0),
213221
DEF_MOD("usb1_host", R9A08G045_USB_U2H1_HCLK, R9A08G045_CLK_P1, 0x578, 1),
214222
DEF_MOD("usb0_func", R9A08G045_USB_U2P_EXR_CPUCLK, R9A08G045_CLK_P1, 0x578, 2),
@@ -238,6 +246,10 @@ static const struct rzg2l_reset r9a08g045_resets[] = {
238246
DEF_RST(R9A08G045_SDHI0_IXRST, 0x854, 0),
239247
DEF_RST(R9A08G045_SDHI1_IXRST, 0x854, 1),
240248
DEF_RST(R9A08G045_SDHI2_IXRST, 0x854, 2),
249+
DEF_RST(R9A08G045_SSI0_RST_M2_REG, 0x870, 0),
250+
DEF_RST(R9A08G045_SSI1_RST_M2_REG, 0x870, 1),
251+
DEF_RST(R9A08G045_SSI2_RST_M2_REG, 0x870, 2),
252+
DEF_RST(R9A08G045_SSI3_RST_M2_REG, 0x870, 3),
241253
DEF_RST(R9A08G045_USB_U2H0_HRESETN, 0x878, 0),
242254
DEF_RST(R9A08G045_USB_U2H1_HRESETN, 0x878, 1),
243255
DEF_RST(R9A08G045_USB_U2P_EXL_SYSRST, 0x878, 2),
@@ -286,6 +298,14 @@ static const struct rzg2l_cpg_pm_domain_init_data r9a08g045_pm_domains[] = {
286298
DEF_REG_CONF(CPG_BUS_PERI_COM_MSTOP, BIT(1)), 0),
287299
DEF_PD("sdhi2", R9A08G045_PD_SDHI2,
288300
DEF_REG_CONF(CPG_BUS_PERI_COM_MSTOP, BIT(11)), 0),
301+
DEF_PD("ssi0", R9A08G045_PD_SSI0,
302+
DEF_REG_CONF(CPG_BUS_MCPU1_MSTOP, BIT(10)), 0),
303+
DEF_PD("ssi1", R9A08G045_PD_SSI1,
304+
DEF_REG_CONF(CPG_BUS_MCPU1_MSTOP, BIT(11)), 0),
305+
DEF_PD("ssi2", R9A08G045_PD_SSI2,
306+
DEF_REG_CONF(CPG_BUS_MCPU1_MSTOP, BIT(12)), 0),
307+
DEF_PD("ssi3", R9A08G045_PD_SSI3,
308+
DEF_REG_CONF(CPG_BUS_MCPU1_MSTOP, BIT(13)), 0),
289309
DEF_PD("usb0", R9A08G045_PD_USB0,
290310
DEF_REG_CONF(CPG_BUS_PERI_COM_MSTOP, GENMASK(6, 5)), 0),
291311
DEF_PD("usb1", R9A08G045_PD_USB1,

0 commit comments

Comments
 (0)