Kconfig 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. menuconfig POWER_RESET
  3. bool "Board level reset or power off"
  4. help
  5. Provides a number of drivers which either reset a complete board
  6. or shut it down, by manipulating the main power supply on the board.
  7. Say Y here to enable board reset and power off
  8. if POWER_RESET
  9. config POWER_RESET_AS3722
  10. bool "ams AS3722 power-off driver"
  11. depends on MFD_AS3722
  12. help
  13. This driver supports turning off board via a ams AS3722 power-off.
  14. config POWER_RESET_AT91_POWEROFF
  15. tristate "Atmel AT91 poweroff driver"
  16. depends on ARCH_AT91
  17. default SOC_AT91SAM9 || SOC_SAMA5
  18. help
  19. This driver supports poweroff for Atmel AT91SAM9 and SAMA5
  20. SoCs
  21. config POWER_RESET_AT91_RESET
  22. tristate "Atmel AT91 reset driver"
  23. depends on ARCH_AT91
  24. default SOC_AT91SAM9 || SOC_SAM9X60 || SOC_SAMA5
  25. help
  26. This driver supports restart for Atmel AT91SAM9 and SAMA5
  27. SoCs
  28. config POWER_RESET_AT91_SAMA5D2_SHDWC
  29. tristate "Atmel AT91 SAMA5D2-Compatible shutdown controller driver"
  30. depends on ARCH_AT91
  31. default SOC_SAM9X60 || SOC_SAMA5
  32. help
  33. This driver supports the alternate shutdown controller for some Atmel
  34. SAMA5 SoCs. It is present for example on SAMA5D2 SoC.
  35. config POWER_RESET_AXXIA
  36. bool "LSI Axxia reset driver"
  37. depends on ARCH_AXXIA
  38. help
  39. This driver supports restart for Axxia SoC.
  40. Say Y if you have an Axxia family SoC.
  41. config POWER_RESET_BRCMKONA
  42. bool "Broadcom Kona reset driver"
  43. depends on ARM || COMPILE_TEST
  44. default ARCH_BCM_MOBILE
  45. help
  46. This driver provides restart support for Broadcom Kona chips.
  47. Say Y here if you have a Broadcom Kona-based board and you wish
  48. to have restart support.
  49. config POWER_RESET_BRCMSTB
  50. bool "Broadcom STB reset driver"
  51. depends on ARM || ARM64 || MIPS || COMPILE_TEST
  52. depends on MFD_SYSCON
  53. default ARCH_BRCMSTB || BMIPS_GENERIC
  54. help
  55. This driver provides restart support for Broadcom STB boards.
  56. Say Y here if you have a Broadcom STB board and you wish
  57. to have restart support.
  58. config POWER_RESET_GEMINI_POWEROFF
  59. bool "Cortina Gemini power-off driver"
  60. depends on ARCH_GEMINI || COMPILE_TEST
  61. depends on OF && HAS_IOMEM
  62. default ARCH_GEMINI
  63. help
  64. This driver supports turning off the Cortina Gemini SoC.
  65. Select this if you're building a kernel with Gemini SoC support.
  66. config POWER_RESET_GPIO
  67. bool "GPIO power-off driver"
  68. depends on OF_GPIO
  69. help
  70. This driver supports turning off your board via a GPIO line.
  71. If your board needs a GPIO high/low to power down, say Y and
  72. create a binding in your devicetree.
  73. config POWER_RESET_GPIO_RESTART
  74. bool "GPIO restart driver"
  75. depends on OF_GPIO
  76. help
  77. This driver supports restarting your board via a GPIO line.
  78. If your board needs a GPIO high/low to restart, say Y and
  79. create a binding in your devicetree.
  80. config POWER_RESET_HISI
  81. bool "Hisilicon power-off driver"
  82. depends on ARCH_HISI
  83. help
  84. Reboot support for Hisilicon boards.
  85. config POWER_RESET_LINKSTATION
  86. tristate "Buffalo LinkStation power-off driver"
  87. depends on ARCH_MVEBU || COMPILE_TEST
  88. depends on OF_MDIO && PHYLIB
  89. help
  90. This driver supports turning off some Buffalo LinkStations by
  91. setting an output pin at the ethernet PHY to the correct state.
  92. It also makes the device compatible with the WoL function.
  93. Say Y here if you have a Buffalo LinkStation LS421D/E.
  94. config POWER_RESET_MSM
  95. bool "Qualcomm MSM power-off driver"
  96. depends on ARCH_QCOM
  97. help
  98. Power off and restart support for Qualcomm boards.
  99. config POWER_RESET_QCOM_PON
  100. tristate "Qualcomm power-on driver"
  101. depends on ARCH_QCOM
  102. depends on MFD_SPMI_PMIC
  103. select REBOOT_MODE
  104. help
  105. Power On support for Qualcomm boards.
  106. If you have a Qualcomm platform and need support for
  107. power-on and reboot reason, Say Y.
  108. If unsure, Say N.
  109. config POWER_RESET_OCELOT_RESET
  110. bool "Microsemi Ocelot reset driver"
  111. depends on MSCC_OCELOT || ARCH_SPARX5 || COMPILE_TEST
  112. select MFD_SYSCON
  113. help
  114. This driver supports restart for Microsemi Ocelot SoC and similar.
  115. config POWER_RESET_OXNAS
  116. bool "OXNAS SoC restart driver"
  117. depends on ARCH_OXNAS
  118. default MACH_OX820
  119. help
  120. Restart support for OXNAS/PLXTECH OX820 SoC.
  121. config POWER_RESET_PIIX4_POWEROFF
  122. tristate "Intel PIIX4 power-off driver"
  123. depends on PCI
  124. depends on MIPS || COMPILE_TEST
  125. help
  126. This driver supports powering off a system using the Intel PIIX4
  127. southbridge, for example the MIPS Malta development board. The
  128. southbridge SOff state is entered in response to a request to
  129. power off the system.
  130. config POWER_RESET_LTC2952
  131. bool "LTC2952 PowerPath power-off driver"
  132. depends on OF_GPIO
  133. help
  134. This driver supports an external powerdown trigger and board power
  135. down via the LTC2952. Bindings are made in the device tree.
  136. config POWER_RESET_MT6323
  137. bool "MediaTek MT6323 power-off driver"
  138. depends on MFD_MT6397
  139. help
  140. The power-off driver is responsible for externally shutdown down
  141. the power of a remote MediaTek SoC MT6323 is connected to through
  142. controlling a tiny circuit BBPU inside MT6323 RTC.
  143. Say Y if you have a board where MT6323 could be found.
  144. config POWER_RESET_QNAP
  145. bool "QNAP power-off driver"
  146. depends on OF_GPIO && PLAT_ORION
  147. help
  148. This driver supports turning off QNAP NAS devices by sending
  149. commands to the microcontroller which controls the main power.
  150. Say Y if you have a QNAP NAS.
  151. config POWER_RESET_RESTART
  152. bool "Restart power-off driver"
  153. help
  154. Some boards don't actually have the ability to power off.
  155. Instead they restart, and u-boot holds the SoC until the
  156. user presses a key. u-boot then boots into Linux.
  157. config POWER_RESET_ST
  158. bool "ST restart driver"
  159. depends on ARCH_STI
  160. help
  161. Reset support for STMicroelectronics boards.
  162. config POWER_RESET_VERSATILE
  163. bool "ARM Versatile family reboot driver"
  164. depends on ARM
  165. depends on MFD_SYSCON
  166. depends on OF
  167. help
  168. Power off and restart support for ARM Versatile family of
  169. reference boards.
  170. config POWER_RESET_VEXPRESS
  171. bool "ARM Versatile Express power-off and reset driver"
  172. depends on ARM || ARM64
  173. depends on VEXPRESS_CONFIG=y
  174. help
  175. Power off and reset support for the ARM Ltd. Versatile
  176. Express boards.
  177. config POWER_RESET_XGENE
  178. bool "APM SoC X-Gene reset driver"
  179. depends on ARM64
  180. help
  181. Reboot support for the APM SoC X-Gene Eval boards.
  182. config POWER_RESET_KEYSTONE
  183. bool "Keystone reset driver"
  184. depends on ARCH_KEYSTONE || COMPILE_TEST
  185. depends on HAS_IOMEM
  186. select MFD_SYSCON
  187. help
  188. Reboot support for the KEYSTONE SoCs.
  189. config POWER_RESET_SYSCON
  190. bool "Generic SYSCON regmap reset driver"
  191. depends on OF
  192. depends on HAS_IOMEM
  193. select MFD_SYSCON
  194. help
  195. Reboot support for generic SYSCON mapped register reset.
  196. config POWER_RESET_SYSCON_POWEROFF
  197. bool "Generic SYSCON regmap poweroff driver"
  198. depends on OF
  199. depends on HAS_IOMEM
  200. select MFD_SYSCON
  201. help
  202. Poweroff support for generic SYSCON mapped register poweroff.
  203. config POWER_RESET_RMOBILE
  204. tristate "Renesas R-Mobile reset driver"
  205. depends on ARCH_RMOBILE || COMPILE_TEST
  206. depends on HAS_IOMEM
  207. help
  208. Reboot support for Renesas R-Mobile and SH-Mobile SoCs.
  209. config POWER_RESET_ZX
  210. tristate "ZTE SoCs reset driver"
  211. depends on ARCH_ZX || COMPILE_TEST
  212. depends on HAS_IOMEM
  213. help
  214. Reboot support for ZTE SoCs.
  215. config REBOOT_MODE
  216. tristate
  217. config SYSCON_REBOOT_MODE
  218. tristate "Generic SYSCON regmap reboot mode driver"
  219. depends on OF
  220. depends on MFD_SYSCON
  221. select REBOOT_MODE
  222. help
  223. Say y here will enable reboot mode driver. This will
  224. get reboot mode arguments and store it in SYSCON mapped
  225. register, then the bootloader can read it to take different
  226. action according to the mode.
  227. config POWER_RESET_SC27XX
  228. tristate "Spreadtrum SC27xx PMIC power-off driver"
  229. depends on MFD_SC27XX_PMIC || COMPILE_TEST
  230. help
  231. This driver supports powering off a system through
  232. Spreadtrum SC27xx series PMICs. The SC27xx series
  233. PMICs includes the SC2720, SC2721, SC2723, SC2730
  234. and SC2731 chips.
  235. config NVMEM_REBOOT_MODE
  236. tristate "Generic NVMEM reboot mode driver"
  237. depends on OF
  238. select REBOOT_MODE
  239. help
  240. Say y here will enable reboot mode driver. This will
  241. get reboot mode arguments and store it in a NVMEM cell,
  242. then the bootloader can read it and take different
  243. action according to the mode.
  244. endif