Skip to content

Commit a1bcf50

Browse files
bijudasgeertu
authored andcommitted
clk: renesas: rzg2l-cpg: Add support for RZ/V2L SoC
The clock structure for RZ/V2L is almost identical to the RZ/G2L SoC. The only difference being that RZ/V2L has additional registers to control clocks and resets for the DRP-AI block. Reuse r9a07g044-cpg.c, as the clock IDs and reset IDs are the same between RZ/G2L and RZ/V2L, and add a separate r9a07g054_cpg_info to take care of the DRP-AI clocks/resets. Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Link: https://lore.kernel.org/r/20220205084006.7142-1-biju.das.jz@bp.renesas.com Link: https://lore.kernel.org/r/20220209203411.22332-1-biju.das.jz@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent fbf4ae9 commit a1bcf50

File tree

5 files changed

+250
-191
lines changed

5 files changed

+250
-191
lines changed

drivers/clk/renesas/Kconfig

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ config CLK_RENESAS
3434
select CLK_R8A779F0 if ARCH_R8A779F0
3535
select CLK_R9A06G032 if ARCH_R9A06G032
3636
select CLK_R9A07G044 if ARCH_R9A07G044
37+
select CLK_R9A07G054 if ARCH_R9A07G054
3738
select CLK_SH73A0 if ARCH_SH73A0
3839

3940
if CLK_RENESAS
@@ -163,6 +164,10 @@ config CLK_R9A07G044
163164
bool "RZ/G2L clock support" if COMPILE_TEST
164165
select CLK_RZG2L
165166

167+
config CLK_R9A07G054
168+
bool "RZ/V2L clock support" if COMPILE_TEST
169+
select CLK_RZG2L
170+
166171
config CLK_SH73A0
167172
bool "SH-Mobile AG5 clock support" if COMPILE_TEST
168173
select CLK_RENESAS_CPG_MSTP
@@ -195,7 +200,7 @@ config CLK_RCAR_USB2_CLOCK_SEL
195200
This is a driver for R-Car USB2 clock selector
196201

197202
config CLK_RZG2L
198-
bool "Renesas RZ/G2L family clock support" if COMPILE_TEST
203+
bool "Renesas RZ/{G2L,V2L} family clock support" if COMPILE_TEST
199204
select RESET_CONTROLLER
200205

201206
# Generic

drivers/clk/renesas/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ obj-$(CONFIG_CLK_R8A779A0) += r8a779a0-cpg-mssr.o
3131
obj-$(CONFIG_CLK_R8A779F0) += r8a779f0-cpg-mssr.o
3232
obj-$(CONFIG_CLK_R9A06G032) += r9a06g032-clocks.o
3333
obj-$(CONFIG_CLK_R9A07G044) += r9a07g044-cpg.o
34+
obj-$(CONFIG_CLK_R9A07G054) += r9a07g044-cpg.o
3435
obj-$(CONFIG_CLK_SH73A0) += clk-sh73a0.o
3536

3637
# Family

0 commit comments

Comments
 (0)