Skip to content

Commit f0fe60c

Browse files
claudiubezneageertu
authored andcommitted
clk: renesas: r9a08g045: Add clocks, resets and power domains for USB
Add clocks, resets and power domains for USB modules available on the Renesas RZ/G3S SoC. 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 0dec2d0 commit f0fe60c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

drivers/clk/renesas/r9a08g045-cpg.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ static const struct rzg2l_mod_clk r9a08g045_mod_clks[] = {
208208
DEF_MOD("sdhi2_imclk2", R9A08G045_SDHI2_IMCLK2, CLK_SD2_DIV4, 0x554, 9),
209209
DEF_MOD("sdhi2_clk_hs", R9A08G045_SDHI2_CLK_HS, R9A08G045_CLK_SD2, 0x554, 10),
210210
DEF_MOD("sdhi2_aclk", R9A08G045_SDHI2_ACLK, R9A08G045_CLK_P1, 0x554, 11),
211+
DEF_MOD("usb0_host", R9A08G045_USB_U2H0_HCLK, R9A08G045_CLK_P1, 0x578, 0),
212+
DEF_MOD("usb1_host", R9A08G045_USB_U2H1_HCLK, R9A08G045_CLK_P1, 0x578, 1),
213+
DEF_MOD("usb0_func", R9A08G045_USB_U2P_EXR_CPUCLK, R9A08G045_CLK_P1, 0x578, 2),
214+
DEF_MOD("usb_pclk", R9A08G045_USB_PCLK, R9A08G045_CLK_P1, 0x578, 3),
211215
DEF_COUPLED("eth0_axi", R9A08G045_ETH0_CLK_AXI, R9A08G045_CLK_M0, 0x57c, 0),
212216
DEF_COUPLED("eth0_chi", R9A08G045_ETH0_CLK_CHI, R9A08G045_CLK_ZT, 0x57c, 0),
213217
DEF_MOD("eth0_refclk", R9A08G045_ETH0_REFCLK, R9A08G045_CLK_HP, 0x57c, 8),
@@ -233,6 +237,10 @@ static const struct rzg2l_reset r9a08g045_resets[] = {
233237
DEF_RST(R9A08G045_SDHI0_IXRST, 0x854, 0),
234238
DEF_RST(R9A08G045_SDHI1_IXRST, 0x854, 1),
235239
DEF_RST(R9A08G045_SDHI2_IXRST, 0x854, 2),
240+
DEF_RST(R9A08G045_USB_U2H0_HRESETN, 0x878, 0),
241+
DEF_RST(R9A08G045_USB_U2H1_HRESETN, 0x878, 1),
242+
DEF_RST(R9A08G045_USB_U2P_EXL_SYSRST, 0x878, 2),
243+
DEF_RST(R9A08G045_USB_PRESETN, 0x878, 3),
236244
DEF_RST(R9A08G045_ETH0_RST_HW_N, 0x87c, 0),
237245
DEF_RST(R9A08G045_ETH1_RST_HW_N, 0x87c, 1),
238246
DEF_RST(R9A08G045_I2C0_MRST, 0x880, 0),
@@ -280,6 +288,15 @@ static const struct rzg2l_cpg_pm_domain_init_data r9a08g045_pm_domains[] = {
280288
DEF_PD("sdhi2", R9A08G045_PD_SDHI2,
281289
DEF_REG_CONF(CPG_BUS_PERI_COM_MSTOP, BIT(11)),
282290
RZG2L_PD_F_NONE),
291+
DEF_PD("usb0", R9A08G045_PD_USB0,
292+
DEF_REG_CONF(CPG_BUS_PERI_COM_MSTOP, GENMASK(6, 5)),
293+
RZG2L_PD_F_NONE),
294+
DEF_PD("usb1", R9A08G045_PD_USB1,
295+
DEF_REG_CONF(CPG_BUS_PERI_COM_MSTOP, BIT(7)),
296+
RZG2L_PD_F_NONE),
297+
DEF_PD("usb-phy", R9A08G045_PD_USB_PHY,
298+
DEF_REG_CONF(CPG_BUS_PERI_COM_MSTOP, BIT(4)),
299+
RZG2L_PD_F_NONE),
283300
DEF_PD("eth0", R9A08G045_PD_ETHER0,
284301
DEF_REG_CONF(CPG_BUS_PERI_COM_MSTOP, BIT(2)),
285302
RZG2L_PD_F_NONE),

0 commit comments

Comments
 (0)