19e288cefSKuninori Morimoto# SPDX-License-Identifier: GPL-2.0 29e288cefSKuninori Morimoto 380978a4bSGeert Uytterhoevenconfig CLK_RENESAS 480978a4bSGeert Uytterhoeven bool "Renesas SoC clock support" if COMPILE_TEST && !ARCH_RENESAS 580978a4bSGeert Uytterhoeven default y if ARCH_RENESAS 680978a4bSGeert Uytterhoeven select CLK_EMEV2 if ARCH_EMEV2 780978a4bSGeert Uytterhoeven select CLK_RZA1 if ARCH_R7S72100 8fde35c9cSChris Brandt select CLK_R7S9210 if ARCH_R7S9210 980978a4bSGeert Uytterhoeven select CLK_R8A73A4 if ARCH_R8A73A4 1080978a4bSGeert Uytterhoeven select CLK_R8A7740 if ARCH_R8A7740 11e8208a71SLad Prabhakar select CLK_R8A7742 if ARCH_R8A7742 12016f9663SBiju Das select CLK_R8A7743 if ARCH_R8A7743 || ARCH_R8A7744 1380978a4bSGeert Uytterhoeven select CLK_R8A7745 if ARCH_R8A7745 145bf2fbbeSBiju Das select CLK_R8A77470 if ARCH_R8A77470 15331a53e0SBiju Das select CLK_R8A774A1 if ARCH_R8A774A1 160b9f1c2cSBiju Das select CLK_R8A774B1 if ARCH_R8A774B1 17906e0a4aSFabrizio Castro select CLK_R8A774C0 if ARCH_R8A774C0 18c8a53fa1SMarian-Cristian Rotariu select CLK_R8A774E1 if ARCH_R8A774E1 1980978a4bSGeert Uytterhoeven select CLK_R8A7778 if ARCH_R8A7778 2080978a4bSGeert Uytterhoeven select CLK_R8A7779 if ARCH_R8A7779 2180978a4bSGeert Uytterhoeven select CLK_R8A7790 if ARCH_R8A7790 2280978a4bSGeert Uytterhoeven select CLK_R8A7791 if ARCH_R8A7791 || ARCH_R8A7793 2380978a4bSGeert Uytterhoeven select CLK_R8A7792 if ARCH_R8A7792 2480978a4bSGeert Uytterhoeven select CLK_R8A7794 if ARCH_R8A7794 25*b1dec4e7SWolfram Sang select CLK_R8A7795 if ARCH_R8A77951 2603975b72SGeert Uytterhoeven select CLK_R8A77960 if ARCH_R8A77960 272ba738d5SGeert Uytterhoeven select CLK_R8A77961 if ARCH_R8A77961 287ce36da9SJacopo Mondi select CLK_R8A77965 if ARCH_R8A77965 298d46e28fSSergei Shtylyov select CLK_R8A77970 if ARCH_R8A77970 30ce15783cSSergei Shtylyov select CLK_R8A77980 if ARCH_R8A77980 313570a2afSYoshihiro Shimoda select CLK_R8A77990 if ARCH_R8A77990 32d71e851dSGeert Uytterhoeven select CLK_R8A77995 if ARCH_R8A77995 3317bcc803SYoshihiro Shimoda select CLK_R8A779A0 if ARCH_R8A779A0 3424aaff6aSYoshihiro Shimoda select CLK_R8A779F0 if ARCH_R8A779F0 350ab55cf1SYoshihiro Shimoda select CLK_R8A779G0 if ARCH_R8A779G0 364c3d8852SMichel Pollet select CLK_R9A06G032 if ARCH_R9A06G032 37c8b08822SBiju Das select CLK_R9A07G043 if ARCH_R9A07G043 3817f0ff3dSLad Prabhakar select CLK_R9A07G044 if ARCH_R9A07G044 39a1bcf50aSBiju Das select CLK_R9A07G054 if ARCH_R9A07G054 401dd65bb0SPhil Edworthy select CLK_R9A09G011 if ARCH_R9A09G011 4180978a4bSGeert Uytterhoeven select CLK_SH73A0 if ARCH_SH73A0 4280978a4bSGeert Uytterhoeven 4380978a4bSGeert Uytterhoevenif CLK_RENESAS 4480978a4bSGeert Uytterhoeven 4580978a4bSGeert Uytterhoeven# SoC 4680978a4bSGeert Uytterhoevenconfig CLK_EMEV2 4780978a4bSGeert Uytterhoeven bool "Emma Mobile EV2 clock support" if COMPILE_TEST 4880978a4bSGeert Uytterhoeven 4980978a4bSGeert Uytterhoevenconfig CLK_RZA1 50371dd373SGeert Uytterhoeven bool "RZ/A1H clock support" if COMPILE_TEST 5180978a4bSGeert Uytterhoeven select CLK_RENESAS_CPG_MSTP 5280978a4bSGeert Uytterhoeven 53fde35c9cSChris Brandtconfig CLK_R7S9210 54fde35c9cSChris Brandt bool "RZ/A2 clock support" if COMPILE_TEST 55fde35c9cSChris Brandt select CLK_RENESAS_CPG_MSSR 56fde35c9cSChris Brandt 5780978a4bSGeert Uytterhoevenconfig CLK_R8A73A4 58371dd373SGeert Uytterhoeven bool "R-Mobile APE6 clock support" if COMPILE_TEST 5980978a4bSGeert Uytterhoeven select CLK_RENESAS_CPG_MSTP 6080978a4bSGeert Uytterhoeven select CLK_RENESAS_DIV6 6180978a4bSGeert Uytterhoeven 6280978a4bSGeert Uytterhoevenconfig CLK_R8A7740 63371dd373SGeert Uytterhoeven bool "R-Mobile A1 clock support" if COMPILE_TEST 6480978a4bSGeert Uytterhoeven select CLK_RENESAS_CPG_MSTP 6580978a4bSGeert Uytterhoeven select CLK_RENESAS_DIV6 6680978a4bSGeert Uytterhoeven 67e8208a71SLad Prabhakarconfig CLK_R8A7742 68e8208a71SLad Prabhakar bool "RZ/G1H clock support" if COMPILE_TEST 69e8208a71SLad Prabhakar select CLK_RCAR_GEN2_CPG 70e8208a71SLad Prabhakar 7180978a4bSGeert Uytterhoevenconfig CLK_R8A7743 72371dd373SGeert Uytterhoeven bool "RZ/G1M clock support" if COMPILE_TEST 7380978a4bSGeert Uytterhoeven select CLK_RCAR_GEN2_CPG 7480978a4bSGeert Uytterhoeven 7580978a4bSGeert Uytterhoevenconfig CLK_R8A7745 76371dd373SGeert Uytterhoeven bool "RZ/G1E clock support" if COMPILE_TEST 7780978a4bSGeert Uytterhoeven select CLK_RCAR_GEN2_CPG 7880978a4bSGeert Uytterhoeven 795bf2fbbeSBiju Dasconfig CLK_R8A77470 805bf2fbbeSBiju Das bool "RZ/G1C clock support" if COMPILE_TEST 815bf2fbbeSBiju Das select CLK_RCAR_GEN2_CPG 825bf2fbbeSBiju Das 83331a53e0SBiju Dasconfig CLK_R8A774A1 84331a53e0SBiju Das bool "RZ/G2M clock support" if COMPILE_TEST 85331a53e0SBiju Das select CLK_RCAR_GEN3_CPG 86331a53e0SBiju Das 870b9f1c2cSBiju Dasconfig CLK_R8A774B1 880b9f1c2cSBiju Das bool "RZ/G2N clock support" if COMPILE_TEST 890b9f1c2cSBiju Das select CLK_RCAR_GEN3_CPG 900b9f1c2cSBiju Das 91906e0a4aSFabrizio Castroconfig CLK_R8A774C0 92906e0a4aSFabrizio Castro bool "RZ/G2E clock support" if COMPILE_TEST 93906e0a4aSFabrizio Castro select CLK_RCAR_GEN3_CPG 94906e0a4aSFabrizio Castro 95c8a53fa1SMarian-Cristian Rotariuconfig CLK_R8A774E1 96c8a53fa1SMarian-Cristian Rotariu bool "RZ/G2H clock support" if COMPILE_TEST 97c8a53fa1SMarian-Cristian Rotariu select CLK_RCAR_GEN3_CPG 98c8a53fa1SMarian-Cristian Rotariu 9980978a4bSGeert Uytterhoevenconfig CLK_R8A7778 100371dd373SGeert Uytterhoeven bool "R-Car M1A clock support" if COMPILE_TEST 10180978a4bSGeert Uytterhoeven select CLK_RENESAS_CPG_MSTP 10280978a4bSGeert Uytterhoeven 10380978a4bSGeert Uytterhoevenconfig CLK_R8A7779 104371dd373SGeert Uytterhoeven bool "R-Car H1 clock support" if COMPILE_TEST 10580978a4bSGeert Uytterhoeven select CLK_RENESAS_CPG_MSTP 10680978a4bSGeert Uytterhoeven 10780978a4bSGeert Uytterhoevenconfig CLK_R8A7790 108371dd373SGeert Uytterhoeven bool "R-Car H2 clock support" if COMPILE_TEST 109d4e59f10SGeert Uytterhoeven select CLK_RCAR_GEN2_CPG 11080978a4bSGeert Uytterhoeven 11180978a4bSGeert Uytterhoevenconfig CLK_R8A7791 112371dd373SGeert Uytterhoeven bool "R-Car M2-W/N clock support" if COMPILE_TEST 1136449ab81SGeert Uytterhoeven select CLK_RCAR_GEN2_CPG 11480978a4bSGeert Uytterhoeven 11580978a4bSGeert Uytterhoevenconfig CLK_R8A7792 116371dd373SGeert Uytterhoeven bool "R-Car V2H clock support" if COMPILE_TEST 117fd3c2f38SGeert Uytterhoeven select CLK_RCAR_GEN2_CPG 11880978a4bSGeert Uytterhoeven 11980978a4bSGeert Uytterhoevenconfig CLK_R8A7794 120371dd373SGeert Uytterhoeven bool "R-Car E2 clock support" if COMPILE_TEST 1212d75588aSGeert Uytterhoeven select CLK_RCAR_GEN2_CPG 12280978a4bSGeert Uytterhoeven 12380978a4bSGeert Uytterhoevenconfig CLK_R8A7795 124371dd373SGeert Uytterhoeven bool "R-Car H3 clock support" if COMPILE_TEST 12580978a4bSGeert Uytterhoeven select CLK_RCAR_GEN3_CPG 12680978a4bSGeert Uytterhoeven 12792d1ebaeSGeert Uytterhoevenconfig CLK_R8A77960 128371dd373SGeert Uytterhoeven bool "R-Car M3-W clock support" if COMPILE_TEST 12980978a4bSGeert Uytterhoeven select CLK_RCAR_GEN3_CPG 13080978a4bSGeert Uytterhoeven 1312ba738d5SGeert Uytterhoevenconfig CLK_R8A77961 1322ba738d5SGeert Uytterhoeven bool "R-Car M3-W+ clock support" if COMPILE_TEST 1332ba738d5SGeert Uytterhoeven select CLK_RCAR_GEN3_CPG 1342ba738d5SGeert Uytterhoeven 1357ce36da9SJacopo Mondiconfig CLK_R8A77965 1367ce36da9SJacopo Mondi bool "R-Car M3-N clock support" if COMPILE_TEST 1377ce36da9SJacopo Mondi select CLK_RCAR_GEN3_CPG 1387ce36da9SJacopo Mondi 1398d46e28fSSergei Shtylyovconfig CLK_R8A77970 1408d46e28fSSergei Shtylyov bool "R-Car V3M clock support" if COMPILE_TEST 1418d46e28fSSergei Shtylyov select CLK_RCAR_GEN3_CPG 1428d46e28fSSergei Shtylyov 143ce15783cSSergei Shtylyovconfig CLK_R8A77980 144ce15783cSSergei Shtylyov bool "R-Car V3H clock support" if COMPILE_TEST 145ce15783cSSergei Shtylyov select CLK_RCAR_GEN3_CPG 146ce15783cSSergei Shtylyov 1473570a2afSYoshihiro Shimodaconfig CLK_R8A77990 1483570a2afSYoshihiro Shimoda bool "R-Car E3 clock support" if COMPILE_TEST 1493570a2afSYoshihiro Shimoda select CLK_RCAR_GEN3_CPG 1503570a2afSYoshihiro Shimoda 151d71e851dSGeert Uytterhoevenconfig CLK_R8A77995 152d71e851dSGeert Uytterhoeven bool "R-Car D3 clock support" if COMPILE_TEST 153d71e851dSGeert Uytterhoeven select CLK_RCAR_GEN3_CPG 154d71e851dSGeert Uytterhoeven 15517bcc803SYoshihiro Shimodaconfig CLK_R8A779A0 15617bcc803SYoshihiro Shimoda bool "R-Car V3U clock support" if COMPILE_TEST 157470e3f0dSYoshihiro Shimoda select CLK_RCAR_GEN4_CPG 15817bcc803SYoshihiro Shimoda 15924aaff6aSYoshihiro Shimodaconfig CLK_R8A779F0 16024aaff6aSYoshihiro Shimoda bool "R-Car S4-8 clock support" if COMPILE_TEST 16124aaff6aSYoshihiro Shimoda select CLK_RCAR_GEN4_CPG 16224aaff6aSYoshihiro Shimoda 1630ab55cf1SYoshihiro Shimodaconfig CLK_R8A779G0 1640ab55cf1SYoshihiro Shimoda bool "R-Car V4H clock support" if COMPILE_TEST 1650ab55cf1SYoshihiro Shimoda select CLK_RCAR_GEN4_CPG 1660ab55cf1SYoshihiro Shimoda 1674c3d8852SMichel Polletconfig CLK_R9A06G032 168e8425dd5SGeert Uytterhoeven bool "RZ/N1D clock support" if COMPILE_TEST 1694c3d8852SMichel Pollet 170c8b08822SBiju Dasconfig CLK_R9A07G043 171c8b08822SBiju Das bool "RZ/G2UL clock support" if COMPILE_TEST 172c8b08822SBiju Das select CLK_RZG2L 173c8b08822SBiju Das 17417f0ff3dSLad Prabhakarconfig CLK_R9A07G044 17517f0ff3dSLad Prabhakar bool "RZ/G2L clock support" if COMPILE_TEST 17617f0ff3dSLad Prabhakar select CLK_RZG2L 17717f0ff3dSLad Prabhakar 178a1bcf50aSBiju Dasconfig CLK_R9A07G054 179a1bcf50aSBiju Das bool "RZ/V2L clock support" if COMPILE_TEST 180a1bcf50aSBiju Das select CLK_RZG2L 181a1bcf50aSBiju Das 1821dd65bb0SPhil Edworthyconfig CLK_R9A09G011 1831dd65bb0SPhil Edworthy bool "RZ/V2M clock support" if COMPILE_TEST 1841dd65bb0SPhil Edworthy select CLK_RZG2L 1851dd65bb0SPhil Edworthy 18680978a4bSGeert Uytterhoevenconfig CLK_SH73A0 187371dd373SGeert Uytterhoeven bool "SH-Mobile AG5 clock support" if COMPILE_TEST 18880978a4bSGeert Uytterhoeven select CLK_RENESAS_CPG_MSTP 18980978a4bSGeert Uytterhoeven select CLK_RENESAS_DIV6 19080978a4bSGeert Uytterhoeven 19180978a4bSGeert Uytterhoeven 19280978a4bSGeert Uytterhoeven# Family 1938bb67d87SWolfram Sangconfig CLK_RCAR_CPG_LIB 1948bb67d87SWolfram Sang bool "CPG/MSSR library functions" if COMPILE_TEST 1958bb67d87SWolfram Sang 19680978a4bSGeert Uytterhoevenconfig CLK_RCAR_GEN2_CPG 197371dd373SGeert Uytterhoeven bool "R-Car Gen2 CPG clock support" if COMPILE_TEST 19880978a4bSGeert Uytterhoeven select CLK_RENESAS_CPG_MSSR 19980978a4bSGeert Uytterhoeven 20080978a4bSGeert Uytterhoevenconfig CLK_RCAR_GEN3_CPG 20115d683e6SLad Prabhakar bool "R-Car Gen3 and RZ/G2 CPG clock support" if COMPILE_TEST 2028bb67d87SWolfram Sang select CLK_RCAR_CPG_LIB 20380978a4bSGeert Uytterhoeven select CLK_RENESAS_CPG_MSSR 20480978a4bSGeert Uytterhoeven 205470e3f0dSYoshihiro Shimodaconfig CLK_RCAR_GEN4_CPG 206470e3f0dSYoshihiro Shimoda bool "R-Car Gen4 clock support" if COMPILE_TEST 207470e3f0dSYoshihiro Shimoda select CLK_RCAR_CPG_LIB 208470e3f0dSYoshihiro Shimoda select CLK_RENESAS_CPG_MSSR 209470e3f0dSYoshihiro Shimoda 210311accb6SYoshihiro Shimodaconfig CLK_RCAR_USB2_CLOCK_SEL 211311accb6SYoshihiro Shimoda bool "Renesas R-Car USB2 clock selector support" 212311accb6SYoshihiro Shimoda depends on ARCH_RENESAS || COMPILE_TEST 2131ab4f439SYoshihiro Shimoda select RESET_CONTROLLER 214311accb6SYoshihiro Shimoda help 215311accb6SYoshihiro Shimoda This is a driver for R-Car USB2 clock selector 21680978a4bSGeert Uytterhoeven 217ef3c613cSLad Prabhakarconfig CLK_RZG2L 218c8b08822SBiju Das bool "Renesas RZ/{G2L,G2UL,V2L} family clock support" if COMPILE_TEST 219ef3c613cSLad Prabhakar select RESET_CONTROLLER 220ef3c613cSLad Prabhakar 22180978a4bSGeert Uytterhoeven# Generic 222a5bd7f7aSGeert Uytterhoevenconfig CLK_RENESAS_CPG_MSSR 223371dd373SGeert Uytterhoeven bool "CPG/MSSR clock support" if COMPILE_TEST 22480978a4bSGeert Uytterhoeven select CLK_RENESAS_DIV6 225a5bd7f7aSGeert Uytterhoeven 226a5bd7f7aSGeert Uytterhoevenconfig CLK_RENESAS_CPG_MSTP 227371dd373SGeert Uytterhoeven bool "MSTP clock support" if COMPILE_TEST 22880978a4bSGeert Uytterhoeven 22980978a4bSGeert Uytterhoevenconfig CLK_RENESAS_DIV6 23080978a4bSGeert Uytterhoeven bool "DIV6 clock support" if COMPILE_TEST 23180978a4bSGeert Uytterhoeven 23280978a4bSGeert Uytterhoevenendif # CLK_RENESAS 233