Kconfig 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. config PINCTRL_MTK
  2. bool "MediaTek Pinctrl Support"
  3. depends on OF
  4. select PINMUX
  5. select GENERIC_PINCONF
  6. select GPIOLIB
  7. select OF_GPIO
  8. config PINCTRL_MTK_V2
  9. bool "MediaTek Pinctrl Support V2"
  10. depends on OF
  11. select PINMUX
  12. select GENERIC_PINCONF
  13. select GPIOLIB
  14. select OF_GPIO
  15. config EINT_MTK
  16. bool "MediaTek External Interrupt driver that is based on PINCTRL_MTK_V2"
  17. depends on PINCTRL_MTK_MOORE || PINCTRL_MTK_PARIS
  18. select IRQ_DOMAIN
  19. help
  20. Say yes here to enable support for MediaTek External Interrupt
  21. (EINT) driver based on PINCTRL_MTK version 2.
  22. This driver is combined with MediaTek Pinctrl driver version 2
  23. so PINCTRL_MTK_V2 shall be set first.
  24. config PINCTRL_MTK_PARIS
  25. bool "MediaTek Paris Core that implements vendor binding"
  26. depends on OF
  27. select PINCTRL_MTK_V2
  28. select EINT_MTK
  29. config PINCTRL_MTK_MOORE
  30. bool "MediaTek Moore Core that implements generic binding"
  31. depends on OF
  32. select GENERIC_PINCTRL_GROUPS
  33. select GENERIC_PINMUX_FUNCTIONS
  34. select PINCTRL_MTK_V2
  35. select EINT_MTK
  36. if ARCH_MEDIATEK || COMPILE_TEST
  37. # For ARMv7 SoCs
  38. config PINCTRL_MT2701
  39. bool "Mediatek MT2701 pin control"
  40. depends on MACH_MT7623 || MACH_MT2701 || COMPILE_TEST
  41. depends on OF
  42. default MACH_MT2701
  43. select PINCTRL_MTK
  44. config PINCTRL_MT8135
  45. bool "Mediatek MT8135 pin control"
  46. depends on MACH_MT8135 || COMPILE_TEST
  47. depends on OF
  48. default MACH_MT8135
  49. select PINCTRL_MTK
  50. config PINCTRL_MT8127
  51. bool "Mediatek MT8127 pin control"
  52. depends on MACH_MT8127 || COMPILE_TEST
  53. depends on OF
  54. default MACH_MT8127
  55. select PINCTRL_MTK
  56. # For ARMv8 SoCs
  57. config PINCTRL_MT8167
  58. bool "Mediatek MT8167 pin control" if COMPILE_TEST && !ARCH_MT8167
  59. depends on OF
  60. default ARCH_MT8167
  61. select PINCTRL_MTK
  62. config PINCTRL_MT8168
  63. bool "Mediatek MT8168 pin control" if COMPILE_TEST && !ARCH_MT8168
  64. depends on OF
  65. default ARCH_MT8168
  66. select PINCTRL_MTK
  67. config PINCTRL_MT8173
  68. bool "Mediatek MT8173 pin control"
  69. depends on OF
  70. depends on ARM64 || COMPILE_TEST
  71. default ARM64 && ARCH_MEDIATEK
  72. select PINCTRL_MTK
  73. config PINCTRL_MT8183
  74. bool "Mediatek MT8183 pin control"
  75. depends on OF
  76. depends on ARM64 || COMPILE_TEST
  77. default ARM64 && ARCH_MEDIATEK
  78. select PINCTRL_MTK
  79. # For PMIC
  80. config PINCTRL_MT6397
  81. bool "Mediatek MT6397 pin control"
  82. depends on MFD_MT6397 || COMPILE_TEST
  83. depends on OF
  84. default MFD_MT6397
  85. select PINCTRL_MTK
  86. # For pintcrl command debug
  87. config PINCTRL_MTK_DEBUG
  88. bool "Mediatek pin control common debug"
  89. depends on OF
  90. default ARM64 && ARCH_MEDIATEK
  91. select PINCTRL_MTK
  92. help
  93. Say yes here to enable support for MediaTek pinctrl debug command.
  94. It can provide gpio status debug shell command.
  95. We also can use these shell command to change gpio status.
  96. endif
  97. if !ARCH_MEDIATEK
  98. config PINCTRL_MT6739
  99. bool "Mediatek MT6739 pin control"
  100. default n
  101. depends on MACH_MT6739
  102. select PINCTRL_MTK_PARIS
  103. config PINCTRL_MT6765
  104. bool "Mediatek MT6765 pin control"
  105. default n
  106. depends on MACH_MT6765
  107. select PINCTRL_MTK_PARIS
  108. config PINCTRL_MT6768
  109. bool "Mediatek MT6768 pin control"
  110. default n
  111. depends on MACH_MT6768
  112. select PINCTRL_MTK_PARIS
  113. config PINCTRL_MT6771
  114. bool "Mediatek MT6771 pin control"
  115. default n
  116. depends on MACH_MT6771
  117. select PINCTRL_MTK_PARIS
  118. config PINCTRL_MT6833
  119. bool "Mediatek MT6833 pin control"
  120. default n
  121. depends on MACH_MT6833
  122. select PINCTRL_MTK_PARIS
  123. config PINCTRL_MT6853
  124. bool "Mediatek MT6853 pin control"
  125. default n
  126. depends on MACH_MT6853
  127. select PINCTRL_MTK_PARIS
  128. config PINCTRL_MT6873
  129. bool "Mediatek MT6873 pin control"
  130. default n
  131. depends on MACH_MT6873
  132. select PINCTRL_MTK_PARIS
  133. config PINCTRL_MT6885
  134. bool "Mediatek MT6885 pin control"
  135. default n
  136. depends on MACH_MT6885 || MACH_MT6893
  137. select PINCTRL_MTK_PARIS
  138. config PINCTRL_MT6785
  139. bool "Mediatek MT6785 pin control"
  140. default n
  141. depends on MACH_MT6785
  142. select PINCTRL_MTK_PARIS
  143. endif