Kconfig 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. # SPDX-License-Identifier: GPL-2.0
  2. config CLK_RENESAS
  3. bool "Renesas SoC clock support" if COMPILE_TEST && !ARCH_RENESAS
  4. default y if ARCH_RENESAS
  5. select CLK_EMEV2 if ARCH_EMEV2
  6. select CLK_RZA1 if ARCH_R7S72100
  7. select CLK_R7S9210 if ARCH_R7S9210
  8. select CLK_R8A73A4 if ARCH_R8A73A4
  9. select CLK_R8A7740 if ARCH_R8A7740
  10. select CLK_R8A7743 if ARCH_R8A7743 || ARCH_R8A7744
  11. select CLK_R8A7745 if ARCH_R8A7745
  12. select CLK_R8A77470 if ARCH_R8A77470
  13. select CLK_R8A774A1 if ARCH_R8A774A1
  14. select CLK_R8A774C0 if ARCH_R8A774C0
  15. select CLK_R8A7778 if ARCH_R8A7778
  16. select CLK_R8A7779 if ARCH_R8A7779
  17. select CLK_R8A7790 if ARCH_R8A7790
  18. select CLK_R8A7791 if ARCH_R8A7791 || ARCH_R8A7793
  19. select CLK_R8A7792 if ARCH_R8A7792
  20. select CLK_R8A7794 if ARCH_R8A7794
  21. select CLK_R8A7795 if ARCH_R8A7795
  22. select CLK_R8A7796 if ARCH_R8A7796
  23. select CLK_R8A77965 if ARCH_R8A77965
  24. select CLK_R8A77970 if ARCH_R8A77970
  25. select CLK_R8A77980 if ARCH_R8A77980
  26. select CLK_R8A77990 if ARCH_R8A77990
  27. select CLK_R8A77995 if ARCH_R8A77995
  28. select CLK_R9A06G032 if ARCH_R9A06G032
  29. select CLK_SH73A0 if ARCH_SH73A0
  30. if CLK_RENESAS
  31. config CLK_RENESAS_LEGACY
  32. bool "Legacy DT clock support"
  33. depends on CLK_R8A7790 || CLK_R8A7791 || CLK_R8A7792 || CLK_R8A7794
  34. help
  35. Enable backward compatibility with old device trees describing a
  36. hierarchical representation of the various CPG and MSTP clocks.
  37. Say Y if you want your kernel to work with old DTBs.
  38. It is safe to say N if you use the DTS that is supplied with the
  39. current kernel source tree.
  40. # SoC
  41. config CLK_EMEV2
  42. bool "Emma Mobile EV2 clock support" if COMPILE_TEST
  43. config CLK_RZA1
  44. bool "RZ/A1H clock support" if COMPILE_TEST
  45. select CLK_RENESAS_CPG_MSTP
  46. config CLK_R7S9210
  47. bool "RZ/A2 clock support" if COMPILE_TEST
  48. select CLK_RENESAS_CPG_MSSR
  49. config CLK_R8A73A4
  50. bool "R-Mobile APE6 clock support" if COMPILE_TEST
  51. select CLK_RENESAS_CPG_MSTP
  52. select CLK_RENESAS_DIV6
  53. config CLK_R8A7740
  54. bool "R-Mobile A1 clock support" if COMPILE_TEST
  55. select CLK_RENESAS_CPG_MSTP
  56. select CLK_RENESAS_DIV6
  57. config CLK_R8A7743
  58. bool "RZ/G1M clock support" if COMPILE_TEST
  59. select CLK_RCAR_GEN2_CPG
  60. config CLK_R8A7745
  61. bool "RZ/G1E clock support" if COMPILE_TEST
  62. select CLK_RCAR_GEN2_CPG
  63. config CLK_R8A77470
  64. bool "RZ/G1C clock support" if COMPILE_TEST
  65. select CLK_RCAR_GEN2_CPG
  66. config CLK_R8A774A1
  67. bool "RZ/G2M clock support" if COMPILE_TEST
  68. select CLK_RCAR_GEN3_CPG
  69. config CLK_R8A774C0
  70. bool "RZ/G2E clock support" if COMPILE_TEST
  71. select CLK_RCAR_GEN3_CPG
  72. config CLK_R8A7778
  73. bool "R-Car M1A clock support" if COMPILE_TEST
  74. select CLK_RENESAS_CPG_MSTP
  75. config CLK_R8A7779
  76. bool "R-Car H1 clock support" if COMPILE_TEST
  77. select CLK_RENESAS_CPG_MSTP
  78. config CLK_R8A7790
  79. bool "R-Car H2 clock support" if COMPILE_TEST
  80. select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
  81. select CLK_RCAR_GEN2_CPG
  82. select CLK_RENESAS_DIV6
  83. config CLK_R8A7791
  84. bool "R-Car M2-W/N clock support" if COMPILE_TEST
  85. select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
  86. select CLK_RCAR_GEN2_CPG
  87. select CLK_RENESAS_DIV6
  88. config CLK_R8A7792
  89. bool "R-Car V2H clock support" if COMPILE_TEST
  90. select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
  91. select CLK_RCAR_GEN2_CPG
  92. config CLK_R8A7794
  93. bool "R-Car E2 clock support" if COMPILE_TEST
  94. select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
  95. select CLK_RCAR_GEN2_CPG
  96. select CLK_RENESAS_DIV6
  97. config CLK_R8A7795
  98. bool "R-Car H3 clock support" if COMPILE_TEST
  99. select CLK_RCAR_GEN3_CPG
  100. config CLK_R8A7796
  101. bool "R-Car M3-W clock support" if COMPILE_TEST
  102. select CLK_RCAR_GEN3_CPG
  103. config CLK_R8A77965
  104. bool "R-Car M3-N clock support" if COMPILE_TEST
  105. select CLK_RCAR_GEN3_CPG
  106. config CLK_R8A77970
  107. bool "R-Car V3M clock support" if COMPILE_TEST
  108. select CLK_RCAR_GEN3_CPG
  109. config CLK_R8A77980
  110. bool "R-Car V3H clock support" if COMPILE_TEST
  111. select CLK_RCAR_GEN3_CPG
  112. config CLK_R8A77990
  113. bool "R-Car E3 clock support" if COMPILE_TEST
  114. select CLK_RCAR_GEN3_CPG
  115. config CLK_R8A77995
  116. bool "R-Car D3 clock support" if COMPILE_TEST
  117. select CLK_RCAR_GEN3_CPG
  118. config CLK_R9A06G032
  119. bool "Renesas R9A06G032 clock driver"
  120. help
  121. This is a driver for R9A06G032 clocks
  122. config CLK_SH73A0
  123. bool "SH-Mobile AG5 clock support" if COMPILE_TEST
  124. select CLK_RENESAS_CPG_MSTP
  125. select CLK_RENESAS_DIV6
  126. # Family
  127. config CLK_RCAR_GEN2
  128. bool "R-Car Gen2 legacy clock support" if COMPILE_TEST
  129. select CLK_RENESAS_CPG_MSTP
  130. select CLK_RENESAS_DIV6
  131. config CLK_RCAR_GEN2_CPG
  132. bool "R-Car Gen2 CPG clock support" if COMPILE_TEST
  133. select CLK_RENESAS_CPG_MSSR
  134. config CLK_RCAR_GEN3_CPG
  135. bool "R-Car Gen3 CPG clock support" if COMPILE_TEST
  136. select CLK_RENESAS_CPG_MSSR
  137. config CLK_RCAR_USB2_CLOCK_SEL
  138. bool "Renesas R-Car USB2 clock selector support"
  139. depends on ARCH_RENESAS || COMPILE_TEST
  140. help
  141. This is a driver for R-Car USB2 clock selector
  142. # Generic
  143. config CLK_RENESAS_CPG_MSSR
  144. bool "CPG/MSSR clock support" if COMPILE_TEST
  145. select CLK_RENESAS_DIV6
  146. config CLK_RENESAS_CPG_MSTP
  147. bool "MSTP clock support" if COMPILE_TEST
  148. config CLK_RENESAS_DIV6
  149. bool "DIV6 clock support" if COMPILE_TEST
  150. endif # CLK_RENESAS