Kconfig 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. config SUNXI_CCU
  2. bool "Clock support for Allwinner SoCs"
  3. depends on ARCH_SUNXI || COMPILE_TEST
  4. select RESET_CONTROLLER
  5. default ARCH_SUNXI
  6. if SUNXI_CCU
  7. # Base clock types
  8. config SUNXI_CCU_DIV
  9. bool
  10. select SUNXI_CCU_MUX
  11. config SUNXI_CCU_FRAC
  12. bool
  13. config SUNXI_CCU_GATE
  14. def_bool y
  15. config SUNXI_CCU_MUX
  16. bool
  17. config SUNXI_CCU_MULT
  18. bool
  19. select SUNXI_CCU_MUX
  20. config SUNXI_CCU_PHASE
  21. bool
  22. # Multi-factor clocks
  23. config SUNXI_CCU_NK
  24. bool
  25. select SUNXI_CCU_GATE
  26. config SUNXI_CCU_NKM
  27. bool
  28. select SUNXI_CCU_GATE
  29. config SUNXI_CCU_NKMP
  30. bool
  31. select SUNXI_CCU_GATE
  32. config SUNXI_CCU_NM
  33. bool
  34. select SUNXI_CCU_FRAC
  35. select SUNXI_CCU_GATE
  36. config SUNXI_CCU_MP
  37. bool
  38. select SUNXI_CCU_GATE
  39. select SUNXI_CCU_MUX
  40. # SoC Drivers
  41. config SUN50I_A64_CCU
  42. bool "Support for the Allwinner A64 CCU"
  43. select SUNXI_CCU_DIV
  44. select SUNXI_CCU_NK
  45. select SUNXI_CCU_NKM
  46. select SUNXI_CCU_NKMP
  47. select SUNXI_CCU_NM
  48. select SUNXI_CCU_MP
  49. select SUNXI_CCU_PHASE
  50. default ARM64 && ARCH_SUNXI
  51. depends on (ARM64 && ARCH_SUNXI) || COMPILE_TEST
  52. config SUN5I_CCU
  53. bool "Support for the Allwinner sun5i family CCM"
  54. select SUNXI_CCU_DIV
  55. select SUNXI_CCU_MULT
  56. select SUNXI_CCU_NK
  57. select SUNXI_CCU_NKM
  58. select SUNXI_CCU_NM
  59. select SUNXI_CCU_MP
  60. select SUNXI_CCU_PHASE
  61. default MACH_SUN5I
  62. depends on MACH_SUN5I || COMPILE_TEST
  63. config SUN6I_A31_CCU
  64. bool "Support for the Allwinner A31/A31s CCU"
  65. select SUNXI_CCU_DIV
  66. select SUNXI_CCU_NK
  67. select SUNXI_CCU_NKM
  68. select SUNXI_CCU_NKMP
  69. select SUNXI_CCU_NM
  70. select SUNXI_CCU_MP
  71. select SUNXI_CCU_PHASE
  72. default MACH_SUN6I
  73. depends on MACH_SUN6I || COMPILE_TEST
  74. config SUN8I_A23_CCU
  75. bool "Support for the Allwinner A23 CCU"
  76. select SUNXI_CCU_DIV
  77. select SUNXI_CCU_MULT
  78. select SUNXI_CCU_NK
  79. select SUNXI_CCU_NKM
  80. select SUNXI_CCU_NKMP
  81. select SUNXI_CCU_NM
  82. select SUNXI_CCU_MP
  83. select SUNXI_CCU_PHASE
  84. default MACH_SUN8I
  85. depends on MACH_SUN8I || COMPILE_TEST
  86. config SUN8I_A33_CCU
  87. bool "Support for the Allwinner A33 CCU"
  88. select SUNXI_CCU_DIV
  89. select SUNXI_CCU_MULT
  90. select SUNXI_CCU_NK
  91. select SUNXI_CCU_NKM
  92. select SUNXI_CCU_NKMP
  93. select SUNXI_CCU_NM
  94. select SUNXI_CCU_MP
  95. select SUNXI_CCU_PHASE
  96. default MACH_SUN8I
  97. depends on MACH_SUN8I || COMPILE_TEST
  98. config SUN8I_H3_CCU
  99. bool "Support for the Allwinner H3 CCU"
  100. select SUNXI_CCU_DIV
  101. select SUNXI_CCU_NK
  102. select SUNXI_CCU_NKM
  103. select SUNXI_CCU_NKMP
  104. select SUNXI_CCU_NM
  105. select SUNXI_CCU_MP
  106. select SUNXI_CCU_PHASE
  107. default MACH_SUN8I || (ARM64 && ARCH_SUNXI)
  108. depends on MACH_SUN8I || (ARM64 && ARCH_SUNXI) || COMPILE_TEST
  109. config SUN8I_V3S_CCU
  110. bool "Support for the Allwinner V3s CCU"
  111. select SUNXI_CCU_DIV
  112. select SUNXI_CCU_NK
  113. select SUNXI_CCU_NKM
  114. select SUNXI_CCU_NKMP
  115. select SUNXI_CCU_NM
  116. select SUNXI_CCU_MP
  117. select SUNXI_CCU_PHASE
  118. default MACH_SUN8I
  119. depends on MACH_SUN8I || COMPILE_TEST
  120. config SUN9I_A80_CCU
  121. bool "Support for the Allwinner A80 CCU"
  122. select SUNXI_CCU_DIV
  123. select SUNXI_CCU_MULT
  124. select SUNXI_CCU_GATE
  125. select SUNXI_CCU_NKMP
  126. select SUNXI_CCU_NM
  127. select SUNXI_CCU_MP
  128. select SUNXI_CCU_PHASE
  129. default MACH_SUN9I
  130. depends on MACH_SUN9I || COMPILE_TEST
  131. config SUN8I_R_CCU
  132. bool "Support for Allwinner SoCs' PRCM CCUs"
  133. select SUNXI_CCU_DIV
  134. select SUNXI_CCU_GATE
  135. default MACH_SUN8I || (ARCH_SUNXI && ARM64)
  136. endif