Kconfig 2.6 KB

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