18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciconfig CLK_RENESAS
48c2ecf20Sopenharmony_ci	bool "Renesas SoC clock support" if COMPILE_TEST && !ARCH_RENESAS
58c2ecf20Sopenharmony_ci	default y if ARCH_RENESAS
68c2ecf20Sopenharmony_ci	select CLK_EMEV2 if ARCH_EMEV2
78c2ecf20Sopenharmony_ci	select CLK_RZA1 if ARCH_R7S72100
88c2ecf20Sopenharmony_ci	select CLK_R7S9210 if ARCH_R7S9210
98c2ecf20Sopenharmony_ci	select CLK_R8A73A4 if ARCH_R8A73A4
108c2ecf20Sopenharmony_ci	select CLK_R8A7740 if ARCH_R8A7740
118c2ecf20Sopenharmony_ci	select CLK_R8A7742 if ARCH_R8A7742
128c2ecf20Sopenharmony_ci	select CLK_R8A7743 if ARCH_R8A7743 || ARCH_R8A7744
138c2ecf20Sopenharmony_ci	select CLK_R8A7745 if ARCH_R8A7745
148c2ecf20Sopenharmony_ci	select CLK_R8A77470 if ARCH_R8A77470
158c2ecf20Sopenharmony_ci	select CLK_R8A774A1 if ARCH_R8A774A1
168c2ecf20Sopenharmony_ci	select CLK_R8A774B1 if ARCH_R8A774B1
178c2ecf20Sopenharmony_ci	select CLK_R8A774C0 if ARCH_R8A774C0
188c2ecf20Sopenharmony_ci	select CLK_R8A774E1 if ARCH_R8A774E1
198c2ecf20Sopenharmony_ci	select CLK_R8A7778 if ARCH_R8A7778
208c2ecf20Sopenharmony_ci	select CLK_R8A7779 if ARCH_R8A7779
218c2ecf20Sopenharmony_ci	select CLK_R8A7790 if ARCH_R8A7790
228c2ecf20Sopenharmony_ci	select CLK_R8A7791 if ARCH_R8A7791 || ARCH_R8A7793
238c2ecf20Sopenharmony_ci	select CLK_R8A7792 if ARCH_R8A7792
248c2ecf20Sopenharmony_ci	select CLK_R8A7794 if ARCH_R8A7794
258c2ecf20Sopenharmony_ci	select CLK_R8A7795 if ARCH_R8A77950 || ARCH_R8A77951
268c2ecf20Sopenharmony_ci	select CLK_R8A77960 if ARCH_R8A77960
278c2ecf20Sopenharmony_ci	select CLK_R8A77961 if ARCH_R8A77961
288c2ecf20Sopenharmony_ci	select CLK_R8A77965 if ARCH_R8A77965
298c2ecf20Sopenharmony_ci	select CLK_R8A77970 if ARCH_R8A77970
308c2ecf20Sopenharmony_ci	select CLK_R8A77980 if ARCH_R8A77980
318c2ecf20Sopenharmony_ci	select CLK_R8A77990 if ARCH_R8A77990
328c2ecf20Sopenharmony_ci	select CLK_R8A77995 if ARCH_R8A77995
338c2ecf20Sopenharmony_ci	select CLK_R8A779A0 if ARCH_R8A779A0
348c2ecf20Sopenharmony_ci	select CLK_R9A06G032 if ARCH_R9A06G032
358c2ecf20Sopenharmony_ci	select CLK_SH73A0 if ARCH_SH73A0
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ciif CLK_RENESAS
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci# SoC
408c2ecf20Sopenharmony_ciconfig CLK_EMEV2
418c2ecf20Sopenharmony_ci	bool "Emma Mobile EV2 clock support" if COMPILE_TEST
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ciconfig CLK_RZA1
448c2ecf20Sopenharmony_ci	bool "RZ/A1H clock support" if COMPILE_TEST
458c2ecf20Sopenharmony_ci	select CLK_RENESAS_CPG_MSTP
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ciconfig CLK_R7S9210
488c2ecf20Sopenharmony_ci	bool "RZ/A2 clock support" if COMPILE_TEST
498c2ecf20Sopenharmony_ci	select CLK_RENESAS_CPG_MSSR
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ciconfig CLK_R8A73A4
528c2ecf20Sopenharmony_ci	bool "R-Mobile APE6 clock support" if COMPILE_TEST
538c2ecf20Sopenharmony_ci	select CLK_RENESAS_CPG_MSTP
548c2ecf20Sopenharmony_ci	select CLK_RENESAS_DIV6
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ciconfig CLK_R8A7740
578c2ecf20Sopenharmony_ci	bool "R-Mobile A1 clock support" if COMPILE_TEST
588c2ecf20Sopenharmony_ci	select CLK_RENESAS_CPG_MSTP
598c2ecf20Sopenharmony_ci	select CLK_RENESAS_DIV6
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ciconfig CLK_R8A7742
628c2ecf20Sopenharmony_ci	bool "RZ/G1H clock support" if COMPILE_TEST
638c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN2_CPG
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ciconfig CLK_R8A7743
668c2ecf20Sopenharmony_ci	bool "RZ/G1M clock support" if COMPILE_TEST
678c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN2_CPG
688c2ecf20Sopenharmony_ci
698c2ecf20Sopenharmony_ciconfig CLK_R8A7745
708c2ecf20Sopenharmony_ci	bool "RZ/G1E clock support" if COMPILE_TEST
718c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN2_CPG
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ciconfig CLK_R8A77470
748c2ecf20Sopenharmony_ci	bool "RZ/G1C clock support" if COMPILE_TEST
758c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN2_CPG
768c2ecf20Sopenharmony_ci
778c2ecf20Sopenharmony_ciconfig CLK_R8A774A1
788c2ecf20Sopenharmony_ci	bool "RZ/G2M clock support" if COMPILE_TEST
798c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_ciconfig CLK_R8A774B1
828c2ecf20Sopenharmony_ci	bool "RZ/G2N clock support" if COMPILE_TEST
838c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_ciconfig CLK_R8A774C0
868c2ecf20Sopenharmony_ci	bool "RZ/G2E clock support" if COMPILE_TEST
878c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ciconfig CLK_R8A774E1
908c2ecf20Sopenharmony_ci	bool "RZ/G2H clock support" if COMPILE_TEST
918c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
928c2ecf20Sopenharmony_ci
938c2ecf20Sopenharmony_ciconfig CLK_R8A7778
948c2ecf20Sopenharmony_ci	bool "R-Car M1A clock support" if COMPILE_TEST
958c2ecf20Sopenharmony_ci	select CLK_RENESAS_CPG_MSTP
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ciconfig CLK_R8A7779
988c2ecf20Sopenharmony_ci	bool "R-Car H1 clock support" if COMPILE_TEST
998c2ecf20Sopenharmony_ci	select CLK_RENESAS_CPG_MSTP
1008c2ecf20Sopenharmony_ci
1018c2ecf20Sopenharmony_ciconfig CLK_R8A7790
1028c2ecf20Sopenharmony_ci	bool "R-Car H2 clock support" if COMPILE_TEST
1038c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN2_CPG
1048c2ecf20Sopenharmony_ci
1058c2ecf20Sopenharmony_ciconfig CLK_R8A7791
1068c2ecf20Sopenharmony_ci	bool "R-Car M2-W/N clock support" if COMPILE_TEST
1078c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN2_CPG
1088c2ecf20Sopenharmony_ci
1098c2ecf20Sopenharmony_ciconfig CLK_R8A7792
1108c2ecf20Sopenharmony_ci	bool "R-Car V2H clock support" if COMPILE_TEST
1118c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN2_CPG
1128c2ecf20Sopenharmony_ci
1138c2ecf20Sopenharmony_ciconfig CLK_R8A7794
1148c2ecf20Sopenharmony_ci	bool "R-Car E2 clock support" if COMPILE_TEST
1158c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN2_CPG
1168c2ecf20Sopenharmony_ci
1178c2ecf20Sopenharmony_ciconfig CLK_R8A7795
1188c2ecf20Sopenharmony_ci	bool "R-Car H3 clock support" if COMPILE_TEST
1198c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_ciconfig CLK_R8A77960
1228c2ecf20Sopenharmony_ci	bool "R-Car M3-W clock support" if COMPILE_TEST
1238c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
1248c2ecf20Sopenharmony_ci
1258c2ecf20Sopenharmony_ciconfig CLK_R8A77961
1268c2ecf20Sopenharmony_ci	bool "R-Car M3-W+ clock support" if COMPILE_TEST
1278c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
1288c2ecf20Sopenharmony_ci
1298c2ecf20Sopenharmony_ciconfig CLK_R8A77965
1308c2ecf20Sopenharmony_ci	bool "R-Car M3-N clock support" if COMPILE_TEST
1318c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
1328c2ecf20Sopenharmony_ci
1338c2ecf20Sopenharmony_ciconfig CLK_R8A77970
1348c2ecf20Sopenharmony_ci	bool "R-Car V3M clock support" if COMPILE_TEST
1358c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
1368c2ecf20Sopenharmony_ci
1378c2ecf20Sopenharmony_ciconfig CLK_R8A77980
1388c2ecf20Sopenharmony_ci	bool "R-Car V3H clock support" if COMPILE_TEST
1398c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
1408c2ecf20Sopenharmony_ci
1418c2ecf20Sopenharmony_ciconfig CLK_R8A77990
1428c2ecf20Sopenharmony_ci	bool "R-Car E3 clock support" if COMPILE_TEST
1438c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
1448c2ecf20Sopenharmony_ci
1458c2ecf20Sopenharmony_ciconfig CLK_R8A77995
1468c2ecf20Sopenharmony_ci	bool "R-Car D3 clock support" if COMPILE_TEST
1478c2ecf20Sopenharmony_ci	select CLK_RCAR_GEN3_CPG
1488c2ecf20Sopenharmony_ci
1498c2ecf20Sopenharmony_ciconfig CLK_R8A779A0
1508c2ecf20Sopenharmony_ci	bool "R-Car V3U clock support" if COMPILE_TEST
1518c2ecf20Sopenharmony_ci	select CLK_RENESAS_CPG_MSSR
1528c2ecf20Sopenharmony_ci
1538c2ecf20Sopenharmony_ciconfig CLK_R9A06G032
1548c2ecf20Sopenharmony_ci	bool "Renesas R9A06G032 clock driver"
1558c2ecf20Sopenharmony_ci	help
1568c2ecf20Sopenharmony_ci	  This is a driver for R9A06G032 clocks
1578c2ecf20Sopenharmony_ci
1588c2ecf20Sopenharmony_ciconfig CLK_SH73A0
1598c2ecf20Sopenharmony_ci	bool "SH-Mobile AG5 clock support" if COMPILE_TEST
1608c2ecf20Sopenharmony_ci	select CLK_RENESAS_CPG_MSTP
1618c2ecf20Sopenharmony_ci	select CLK_RENESAS_DIV6
1628c2ecf20Sopenharmony_ci
1638c2ecf20Sopenharmony_ci
1648c2ecf20Sopenharmony_ci# Family
1658c2ecf20Sopenharmony_ciconfig CLK_RCAR_GEN2_CPG
1668c2ecf20Sopenharmony_ci	bool "R-Car Gen2 CPG clock support" if COMPILE_TEST
1678c2ecf20Sopenharmony_ci	select CLK_RENESAS_CPG_MSSR
1688c2ecf20Sopenharmony_ci
1698c2ecf20Sopenharmony_ciconfig CLK_RCAR_GEN3_CPG
1708c2ecf20Sopenharmony_ci	bool "R-Car Gen3 and RZ/G2 CPG clock support" if COMPILE_TEST
1718c2ecf20Sopenharmony_ci	select CLK_RENESAS_CPG_MSSR
1728c2ecf20Sopenharmony_ci
1738c2ecf20Sopenharmony_ciconfig CLK_RCAR_USB2_CLOCK_SEL
1748c2ecf20Sopenharmony_ci	bool "Renesas R-Car USB2 clock selector support"
1758c2ecf20Sopenharmony_ci	depends on ARCH_RENESAS || COMPILE_TEST
1768c2ecf20Sopenharmony_ci	select RESET_CONTROLLER
1778c2ecf20Sopenharmony_ci	help
1788c2ecf20Sopenharmony_ci	  This is a driver for R-Car USB2 clock selector
1798c2ecf20Sopenharmony_ci
1808c2ecf20Sopenharmony_ci# Generic
1818c2ecf20Sopenharmony_ciconfig CLK_RENESAS_CPG_MSSR
1828c2ecf20Sopenharmony_ci	bool "CPG/MSSR clock support" if COMPILE_TEST
1838c2ecf20Sopenharmony_ci	select CLK_RENESAS_DIV6
1848c2ecf20Sopenharmony_ci
1858c2ecf20Sopenharmony_ciconfig CLK_RENESAS_CPG_MSTP
1868c2ecf20Sopenharmony_ci	bool "MSTP clock support" if COMPILE_TEST
1878c2ecf20Sopenharmony_ci
1888c2ecf20Sopenharmony_ciconfig CLK_RENESAS_DIV6
1898c2ecf20Sopenharmony_ci	bool "DIV6 clock support" if COMPILE_TEST
1908c2ecf20Sopenharmony_ci
1918c2ecf20Sopenharmony_ciendif # CLK_RENESAS
192