Skip to content

Commit c11d7f5

Browse files
bijudasgeertu
authored andcommitted
clk: renesas: r9a07g044: Add GbEthernet clock/reset
Add ETH{0,1} clock/reset entries to CPG driver. Signed-off-by: Biju Das <[email protected]> Reviewed-by: Lad Prabhakar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 32897e6 commit c11d7f5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/clk/renesas/r9a07g044-cpg.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@ static struct rzg2l_mod_clk r9a07g044_mod_clks[] = {
138138
0x578, 2),
139139
DEF_MOD("usb_pclk", R9A07G044_USB_PCLK, R9A07G044_CLK_P1,
140140
0x578, 3),
141+
DEF_COUPLED("eth0_axi", R9A07G044_ETH0_CLK_AXI, R9A07G044_CLK_M0,
142+
0x57c, 0),
143+
DEF_COUPLED("eth0_chi", R9A07G044_ETH0_CLK_CHI, R9A07G044_CLK_ZT,
144+
0x57c, 0),
145+
DEF_COUPLED("eth1_axi", R9A07G044_ETH1_CLK_AXI, R9A07G044_CLK_M0,
146+
0x57c, 1),
147+
DEF_COUPLED("eth1_chi", R9A07G044_ETH1_CLK_CHI, R9A07G044_CLK_ZT,
148+
0x57c, 1),
141149
DEF_MOD("i2c0", R9A07G044_I2C0_PCLK, R9A07G044_CLK_P0,
142150
0x580, 0),
143151
DEF_MOD("i2c1", R9A07G044_I2C1_PCLK, R9A07G044_CLK_P0,
@@ -182,6 +190,8 @@ static struct rzg2l_reset r9a07g044_resets[] = {
182190
DEF_RST(R9A07G044_USB_U2H1_HRESETN, 0x878, 1),
183191
DEF_RST(R9A07G044_USB_U2P_EXL_SYSRST, 0x878, 2),
184192
DEF_RST(R9A07G044_USB_PRESETN, 0x878, 3),
193+
DEF_RST(R9A07G044_ETH0_RST_HW_N, 0x87c, 0),
194+
DEF_RST(R9A07G044_ETH1_RST_HW_N, 0x87c, 1),
185195
DEF_RST(R9A07G044_I2C0_MRST, 0x880, 0),
186196
DEF_RST(R9A07G044_I2C1_MRST, 0x880, 1),
187197
DEF_RST(R9A07G044_I2C2_MRST, 0x880, 2),

0 commit comments

Comments
 (0)