162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciconfig CLK_RENESAS
462306a36Sopenharmony_ci	bool "Renesas SoC clock support" if COMPILE_TEST && !ARCH_RENESAS
562306a36Sopenharmony_ci	default y if ARCH_RENESAS
662306a36Sopenharmony_ci	select CLK_EMEV2 if ARCH_EMEV2
762306a36Sopenharmony_ci	select CLK_RZA1 if ARCH_R7S72100
862306a36Sopenharmony_ci	select CLK_R7S9210 if ARCH_R7S9210
962306a36Sopenharmony_ci	select CLK_R8A73A4 if ARCH_R8A73A4
1062306a36Sopenharmony_ci	select CLK_R8A7740 if ARCH_R8A7740
1162306a36Sopenharmony_ci	select CLK_R8A7742 if ARCH_R8A7742
1262306a36Sopenharmony_ci	select CLK_R8A7743 if ARCH_R8A7743 || ARCH_R8A7744
1362306a36Sopenharmony_ci	select CLK_R8A7745 if ARCH_R8A7745
1462306a36Sopenharmony_ci	select CLK_R8A77470 if ARCH_R8A77470
1562306a36Sopenharmony_ci	select CLK_R8A774A1 if ARCH_R8A774A1
1662306a36Sopenharmony_ci	select CLK_R8A774B1 if ARCH_R8A774B1
1762306a36Sopenharmony_ci	select CLK_R8A774C0 if ARCH_R8A774C0
1862306a36Sopenharmony_ci	select CLK_R8A774E1 if ARCH_R8A774E1
1962306a36Sopenharmony_ci	select CLK_R8A7778 if ARCH_R8A7778
2062306a36Sopenharmony_ci	select CLK_R8A7779 if ARCH_R8A7779
2162306a36Sopenharmony_ci	select CLK_R8A7790 if ARCH_R8A7790
2262306a36Sopenharmony_ci	select CLK_R8A7791 if ARCH_R8A7791 || ARCH_R8A7793
2362306a36Sopenharmony_ci	select CLK_R8A7792 if ARCH_R8A7792
2462306a36Sopenharmony_ci	select CLK_R8A7794 if ARCH_R8A7794
2562306a36Sopenharmony_ci	select CLK_R8A7795 if ARCH_R8A77951
2662306a36Sopenharmony_ci	select CLK_R8A77960 if ARCH_R8A77960
2762306a36Sopenharmony_ci	select CLK_R8A77961 if ARCH_R8A77961
2862306a36Sopenharmony_ci	select CLK_R8A77965 if ARCH_R8A77965
2962306a36Sopenharmony_ci	select CLK_R8A77970 if ARCH_R8A77970
3062306a36Sopenharmony_ci	select CLK_R8A77980 if ARCH_R8A77980
3162306a36Sopenharmony_ci	select CLK_R8A77990 if ARCH_R8A77990
3262306a36Sopenharmony_ci	select CLK_R8A77995 if ARCH_R8A77995
3362306a36Sopenharmony_ci	select CLK_R8A779A0 if ARCH_R8A779A0
3462306a36Sopenharmony_ci	select CLK_R8A779F0 if ARCH_R8A779F0
3562306a36Sopenharmony_ci	select CLK_R8A779G0 if ARCH_R8A779G0
3662306a36Sopenharmony_ci	select CLK_R9A06G032 if ARCH_R9A06G032
3762306a36Sopenharmony_ci	select CLK_R9A07G043 if ARCH_R9A07G043
3862306a36Sopenharmony_ci	select CLK_R9A07G044 if ARCH_R9A07G044
3962306a36Sopenharmony_ci	select CLK_R9A07G054 if ARCH_R9A07G054
4062306a36Sopenharmony_ci	select CLK_R9A09G011 if ARCH_R9A09G011
4162306a36Sopenharmony_ci	select CLK_SH73A0 if ARCH_SH73A0
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_ciif CLK_RENESAS
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ci# SoC
4662306a36Sopenharmony_ciconfig CLK_EMEV2
4762306a36Sopenharmony_ci	bool "Emma Mobile EV2 clock support" if COMPILE_TEST
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ciconfig CLK_RZA1
5062306a36Sopenharmony_ci	bool "RZ/A1H clock support" if COMPILE_TEST
5162306a36Sopenharmony_ci	select CLK_RENESAS_CPG_MSTP
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ciconfig CLK_R7S9210
5462306a36Sopenharmony_ci	bool "RZ/A2 clock support" if COMPILE_TEST
5562306a36Sopenharmony_ci	select CLK_RENESAS_CPG_MSSR
5662306a36Sopenharmony_ci
5762306a36Sopenharmony_ciconfig CLK_R8A73A4
5862306a36Sopenharmony_ci	bool "R-Mobile APE6 clock support" if COMPILE_TEST
5962306a36Sopenharmony_ci	select CLK_RENESAS_CPG_MSTP
6062306a36Sopenharmony_ci	select CLK_RENESAS_DIV6
6162306a36Sopenharmony_ci
6262306a36Sopenharmony_ciconfig CLK_R8A7740
6362306a36Sopenharmony_ci	bool "R-Mobile A1 clock support" if COMPILE_TEST
6462306a36Sopenharmony_ci	select CLK_RENESAS_CPG_MSTP
6562306a36Sopenharmony_ci	select CLK_RENESAS_DIV6
6662306a36Sopenharmony_ci
6762306a36Sopenharmony_ciconfig CLK_R8A7742
6862306a36Sopenharmony_ci	bool "RZ/G1H clock support" if COMPILE_TEST
6962306a36Sopenharmony_ci	select CLK_RCAR_GEN2_CPG
7062306a36Sopenharmony_ci
7162306a36Sopenharmony_ciconfig CLK_R8A7743
7262306a36Sopenharmony_ci	bool "RZ/G1M clock support" if COMPILE_TEST
7362306a36Sopenharmony_ci	select CLK_RCAR_GEN2_CPG
7462306a36Sopenharmony_ci
7562306a36Sopenharmony_ciconfig CLK_R8A7745
7662306a36Sopenharmony_ci	bool "RZ/G1E clock support" if COMPILE_TEST
7762306a36Sopenharmony_ci	select CLK_RCAR_GEN2_CPG
7862306a36Sopenharmony_ci
7962306a36Sopenharmony_ciconfig CLK_R8A77470
8062306a36Sopenharmony_ci	bool "RZ/G1C clock support" if COMPILE_TEST
8162306a36Sopenharmony_ci	select CLK_RCAR_GEN2_CPG
8262306a36Sopenharmony_ci
8362306a36Sopenharmony_ciconfig CLK_R8A774A1
8462306a36Sopenharmony_ci	bool "RZ/G2M clock support" if COMPILE_TEST
8562306a36Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
8662306a36Sopenharmony_ci
8762306a36Sopenharmony_ciconfig CLK_R8A774B1
8862306a36Sopenharmony_ci	bool "RZ/G2N clock support" if COMPILE_TEST
8962306a36Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
9062306a36Sopenharmony_ci
9162306a36Sopenharmony_ciconfig CLK_R8A774C0
9262306a36Sopenharmony_ci	bool "RZ/G2E clock support" if COMPILE_TEST
9362306a36Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
9462306a36Sopenharmony_ci
9562306a36Sopenharmony_ciconfig CLK_R8A774E1
9662306a36Sopenharmony_ci	bool "RZ/G2H clock support" if COMPILE_TEST
9762306a36Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
9862306a36Sopenharmony_ci
9962306a36Sopenharmony_ciconfig CLK_R8A7778
10062306a36Sopenharmony_ci	bool "R-Car M1A clock support" if COMPILE_TEST
10162306a36Sopenharmony_ci	select CLK_RENESAS_CPG_MSTP
10262306a36Sopenharmony_ci
10362306a36Sopenharmony_ciconfig CLK_R8A7779
10462306a36Sopenharmony_ci	bool "R-Car H1 clock support" if COMPILE_TEST
10562306a36Sopenharmony_ci	select CLK_RENESAS_CPG_MSTP
10662306a36Sopenharmony_ci
10762306a36Sopenharmony_ciconfig CLK_R8A7790
10862306a36Sopenharmony_ci	bool "R-Car H2 clock support" if COMPILE_TEST
10962306a36Sopenharmony_ci	select CLK_RCAR_GEN2_CPG
11062306a36Sopenharmony_ci
11162306a36Sopenharmony_ciconfig CLK_R8A7791
11262306a36Sopenharmony_ci	bool "R-Car M2-W/N clock support" if COMPILE_TEST
11362306a36Sopenharmony_ci	select CLK_RCAR_GEN2_CPG
11462306a36Sopenharmony_ci
11562306a36Sopenharmony_ciconfig CLK_R8A7792
11662306a36Sopenharmony_ci	bool "R-Car V2H clock support" if COMPILE_TEST
11762306a36Sopenharmony_ci	select CLK_RCAR_GEN2_CPG
11862306a36Sopenharmony_ci
11962306a36Sopenharmony_ciconfig CLK_R8A7794
12062306a36Sopenharmony_ci	bool "R-Car E2 clock support" if COMPILE_TEST
12162306a36Sopenharmony_ci	select CLK_RCAR_GEN2_CPG
12262306a36Sopenharmony_ci
12362306a36Sopenharmony_ciconfig CLK_R8A7795
12462306a36Sopenharmony_ci	bool "R-Car H3 clock support" if COMPILE_TEST
12562306a36Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
12662306a36Sopenharmony_ci
12762306a36Sopenharmony_ciconfig CLK_R8A77960
12862306a36Sopenharmony_ci	bool "R-Car M3-W clock support" if COMPILE_TEST
12962306a36Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
13062306a36Sopenharmony_ci
13162306a36Sopenharmony_ciconfig CLK_R8A77961
13262306a36Sopenharmony_ci	bool "R-Car M3-W+ clock support" if COMPILE_TEST
13362306a36Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
13462306a36Sopenharmony_ci
13562306a36Sopenharmony_ciconfig CLK_R8A77965
13662306a36Sopenharmony_ci	bool "R-Car M3-N clock support" if COMPILE_TEST
13762306a36Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
13862306a36Sopenharmony_ci
13962306a36Sopenharmony_ciconfig CLK_R8A77970
14062306a36Sopenharmony_ci	bool "R-Car V3M clock support" if COMPILE_TEST
14162306a36Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
14262306a36Sopenharmony_ci
14362306a36Sopenharmony_ciconfig CLK_R8A77980
14462306a36Sopenharmony_ci	bool "R-Car V3H clock support" if COMPILE_TEST
14562306a36Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
14662306a36Sopenharmony_ci
14762306a36Sopenharmony_ciconfig CLK_R8A77990
14862306a36Sopenharmony_ci	bool "R-Car E3 clock support" if COMPILE_TEST
14962306a36Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
15062306a36Sopenharmony_ci
15162306a36Sopenharmony_ciconfig CLK_R8A77995
15262306a36Sopenharmony_ci	bool "R-Car D3 clock support" if COMPILE_TEST
15362306a36Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
15462306a36Sopenharmony_ci
15562306a36Sopenharmony_ciconfig CLK_R8A779A0
15662306a36Sopenharmony_ci	bool "R-Car V3U clock support" if COMPILE_TEST
15762306a36Sopenharmony_ci	select CLK_RCAR_GEN4_CPG
15862306a36Sopenharmony_ci
15962306a36Sopenharmony_ciconfig CLK_R8A779F0
16062306a36Sopenharmony_ci	bool "R-Car S4-8 clock support" if COMPILE_TEST
16162306a36Sopenharmony_ci	select CLK_RCAR_GEN4_CPG
16262306a36Sopenharmony_ci
16362306a36Sopenharmony_ciconfig CLK_R8A779G0
16462306a36Sopenharmony_ci	bool "R-Car V4H clock support" if COMPILE_TEST
16562306a36Sopenharmony_ci	select CLK_RCAR_GEN4_CPG
16662306a36Sopenharmony_ci
16762306a36Sopenharmony_ciconfig CLK_R9A06G032
16862306a36Sopenharmony_ci	bool "RZ/N1D clock support" if COMPILE_TEST
16962306a36Sopenharmony_ci
17062306a36Sopenharmony_ciconfig CLK_R9A07G043
17162306a36Sopenharmony_ci	bool "RZ/G2UL clock support" if COMPILE_TEST
17262306a36Sopenharmony_ci	select CLK_RZG2L
17362306a36Sopenharmony_ci
17462306a36Sopenharmony_ciconfig CLK_R9A07G044
17562306a36Sopenharmony_ci	bool "RZ/G2L clock support" if COMPILE_TEST
17662306a36Sopenharmony_ci	select CLK_RZG2L
17762306a36Sopenharmony_ci
17862306a36Sopenharmony_ciconfig CLK_R9A07G054
17962306a36Sopenharmony_ci	bool "RZ/V2L clock support" if COMPILE_TEST
18062306a36Sopenharmony_ci	select CLK_RZG2L
18162306a36Sopenharmony_ci
18262306a36Sopenharmony_ciconfig CLK_R9A09G011
18362306a36Sopenharmony_ci	bool "RZ/V2M clock support" if COMPILE_TEST
18462306a36Sopenharmony_ci	select CLK_RZG2L
18562306a36Sopenharmony_ci
18662306a36Sopenharmony_ciconfig CLK_SH73A0
18762306a36Sopenharmony_ci	bool "SH-Mobile AG5 clock support" if COMPILE_TEST
18862306a36Sopenharmony_ci	select CLK_RENESAS_CPG_MSTP
18962306a36Sopenharmony_ci	select CLK_RENESAS_DIV6
19062306a36Sopenharmony_ci
19162306a36Sopenharmony_ci
19262306a36Sopenharmony_ci# Family
19362306a36Sopenharmony_ciconfig CLK_RCAR_CPG_LIB
19462306a36Sopenharmony_ci	bool "CPG/MSSR library functions" if COMPILE_TEST
19562306a36Sopenharmony_ci
19662306a36Sopenharmony_ciconfig CLK_RCAR_GEN2_CPG
19762306a36Sopenharmony_ci	bool "R-Car Gen2 CPG clock support" if COMPILE_TEST
19862306a36Sopenharmony_ci	select CLK_RENESAS_CPG_MSSR
19962306a36Sopenharmony_ci
20062306a36Sopenharmony_ciconfig CLK_RCAR_GEN3_CPG
20162306a36Sopenharmony_ci	bool "R-Car Gen3 and RZ/G2 CPG clock support" if COMPILE_TEST
20262306a36Sopenharmony_ci	select CLK_RCAR_CPG_LIB
20362306a36Sopenharmony_ci	select CLK_RENESAS_CPG_MSSR
20462306a36Sopenharmony_ci
20562306a36Sopenharmony_ciconfig CLK_RCAR_GEN4_CPG
20662306a36Sopenharmony_ci	bool "R-Car Gen4 clock support" if COMPILE_TEST
20762306a36Sopenharmony_ci	select CLK_RCAR_CPG_LIB
20862306a36Sopenharmony_ci	select CLK_RENESAS_CPG_MSSR
20962306a36Sopenharmony_ci
21062306a36Sopenharmony_ciconfig CLK_RCAR_USB2_CLOCK_SEL
21162306a36Sopenharmony_ci	bool "Renesas R-Car USB2 clock selector support"
21262306a36Sopenharmony_ci	depends on ARCH_RENESAS || COMPILE_TEST
21362306a36Sopenharmony_ci	select RESET_CONTROLLER
21462306a36Sopenharmony_ci	help
21562306a36Sopenharmony_ci	  This is a driver for R-Car USB2 clock selector
21662306a36Sopenharmony_ci
21762306a36Sopenharmony_ciconfig CLK_RZG2L
21862306a36Sopenharmony_ci	bool "Renesas RZ/{G2L,G2UL,V2L} family clock support" if COMPILE_TEST
21962306a36Sopenharmony_ci	select RESET_CONTROLLER
22062306a36Sopenharmony_ci
22162306a36Sopenharmony_ci# Generic
22262306a36Sopenharmony_ciconfig CLK_RENESAS_CPG_MSSR
22362306a36Sopenharmony_ci	bool "CPG/MSSR clock support" if COMPILE_TEST
22462306a36Sopenharmony_ci	select CLK_RENESAS_DIV6
22562306a36Sopenharmony_ci
22662306a36Sopenharmony_ciconfig CLK_RENESAS_CPG_MSTP
22762306a36Sopenharmony_ci	bool "MSTP clock support" if COMPILE_TEST
22862306a36Sopenharmony_ci
22962306a36Sopenharmony_ciconfig CLK_RENESAS_DIV6
23062306a36Sopenharmony_ci	bool "DIV6 clock support" if COMPILE_TEST
23162306a36Sopenharmony_ci
23262306a36Sopenharmony_ciendif # CLK_RENESAS
233