Kconfig 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  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_ATC260X
  36. tristate "Actions Semi ATC260x PMIC power-off driver"
  37. depends on MFD_ATC260X
  38. help
  39. This driver provides power-off and restart support for a system
  40. through Actions Semi ATC260x series PMICs.
  41. config POWER_RESET_AXXIA
  42. bool "LSI Axxia reset driver"
  43. depends on ARCH_AXXIA
  44. help
  45. This driver supports restart for Axxia SoC.
  46. Say Y if you have an Axxia family SoC.
  47. config POWER_RESET_BRCMKONA
  48. bool "Broadcom Kona reset driver"
  49. depends on ARM || COMPILE_TEST
  50. default ARCH_BCM_MOBILE
  51. help
  52. This driver provides restart support for Broadcom Kona chips.
  53. Say Y here if you have a Broadcom Kona-based board and you wish
  54. to have restart support.
  55. config POWER_RESET_BRCMSTB
  56. bool "Broadcom STB reset driver"
  57. depends on ARM || ARM64 || MIPS || COMPILE_TEST
  58. depends on MFD_SYSCON
  59. default ARCH_BRCMSTB || BMIPS_GENERIC
  60. help
  61. This driver provides restart support for Broadcom STB boards.
  62. Say Y here if you have a Broadcom STB board and you wish
  63. to have restart support.
  64. config POWER_RESET_GEMINI_POWEROFF
  65. bool "Cortina Gemini power-off driver"
  66. depends on ARCH_GEMINI || COMPILE_TEST
  67. depends on OF && HAS_IOMEM
  68. default ARCH_GEMINI
  69. help
  70. This driver supports turning off the Cortina Gemini SoC.
  71. Select this if you're building a kernel with Gemini SoC support.
  72. config POWER_RESET_GPIO
  73. bool "GPIO power-off driver"
  74. depends on OF_GPIO
  75. help
  76. This driver supports turning off your board via a GPIO line.
  77. If your board needs a GPIO high/low to power down, say Y and
  78. create a binding in your devicetree.
  79. config POWER_RESET_GPIO_RESTART
  80. bool "GPIO restart driver"
  81. depends on OF_GPIO
  82. help
  83. This driver supports restarting your board via a GPIO line.
  84. If your board needs a GPIO high/low to restart, say Y and
  85. create a binding in your devicetree.
  86. config POWER_RESET_HISI
  87. bool "Hisilicon power-off driver"
  88. depends on ARCH_HISI
  89. help
  90. Reboot support for Hisilicon boards.
  91. config POWER_RESET_LINKSTATION
  92. tristate "Buffalo LinkStation power-off driver"
  93. depends on ARCH_MVEBU || COMPILE_TEST
  94. depends on OF_MDIO && PHYLIB
  95. help
  96. This driver supports turning off some Buffalo LinkStations by
  97. setting an output pin at the ethernet PHY to the correct state.
  98. It also makes the device compatible with the WoL function.
  99. Say Y here if you have a Buffalo LinkStation LS421D/E.
  100. config POWER_RESET_MSM
  101. tristate "Qualcomm MSM power-off driver"
  102. depends on ARCH_QCOM
  103. help
  104. Power off and restart support for Qualcomm boards.
  105. config POWER_RESET_QCOM_DOWNLOAD_MODE
  106. tristate "MSM download mode driver"
  107. depends on ARCH_QCOM
  108. help
  109. MSM boards support booting to special download modes after a restart.
  110. These modes could be a normal restart, restarting into a
  111. ramdump collection mode (CrashDump), or restarting into "emergency
  112. download mode".
  113. config POWER_RESET_QCOM_DOWNLOAD_MODE_DEFAULT
  114. bool "MSM download mode enabled by default"
  115. help
  116. A device with "download mode" enabled will upon an unexpected
  117. warm-restart enter a special debug mode that allows the user to
  118. "download" memory content over USB for offline postmortem analysis.
  119. The feature can be enabled/disabled on the kernel command line.
  120. Say Y here to enable "download mode" by default.
  121. config POWER_RESET_QCOM_PON
  122. tristate "Qualcomm power-on driver"
  123. depends on ARCH_QCOM
  124. depends on MFD_SPMI_PMIC
  125. select REBOOT_MODE
  126. help
  127. Power On support for Qualcomm boards.
  128. If you have a Qualcomm platform and need support for
  129. power-on and reboot reason, Say Y.
  130. If unsure, Say N.
  131. config POWER_RESET_QCOM_REBOOT_REASON
  132. tristate "MSM reboot mode driver"
  133. depends on ARCH_QCOM
  134. help
  135. Support for setting reboot reason on MSM boards.
  136. This feature supports commands such as "reboot bootloader"
  137. to boot the MSM board to fastboot mode.
  138. If unsure, say Y.
  139. config POWER_RESET_OCELOT_RESET
  140. bool "Microsemi Ocelot reset driver"
  141. depends on MSCC_OCELOT || ARCH_SPARX5 || COMPILE_TEST
  142. select MFD_SYSCON
  143. help
  144. This driver supports restart for Microsemi Ocelot SoC and similar.
  145. config POWER_RESET_OXNAS
  146. bool "OXNAS SoC restart driver"
  147. depends on ARCH_OXNAS
  148. default MACH_OX820
  149. help
  150. Restart support for OXNAS/PLXTECH OX820 SoC.
  151. config POWER_RESET_PIIX4_POWEROFF
  152. tristate "Intel PIIX4 power-off driver"
  153. depends on PCI
  154. depends on MIPS || COMPILE_TEST
  155. help
  156. This driver supports powering off a system using the Intel PIIX4
  157. southbridge, for example the MIPS Malta development board. The
  158. southbridge SOff state is entered in response to a request to
  159. power off the system.
  160. config POWER_RESET_LTC2952
  161. bool "LTC2952 PowerPath power-off driver"
  162. depends on OF_GPIO
  163. help
  164. This driver supports an external powerdown trigger and board power
  165. down via the LTC2952. Bindings are made in the device tree.
  166. config POWER_RESET_MT6323
  167. bool "MediaTek MT6323 power-off driver"
  168. depends on MFD_MT6397
  169. help
  170. The power-off driver is responsible for externally shutdown down
  171. the power of a remote MediaTek SoC MT6323 is connected to through
  172. controlling a tiny circuit BBPU inside MT6323 RTC.
  173. Say Y if you have a board where MT6323 could be found.
  174. config POWER_RESET_QNAP
  175. bool "QNAP power-off driver"
  176. depends on OF_GPIO && PLAT_ORION
  177. help
  178. This driver supports turning off QNAP NAS devices by sending
  179. commands to the microcontroller which controls the main power.
  180. Say Y if you have a QNAP NAS.
  181. config POWER_RESET_REGULATOR
  182. bool "Regulator subsystem power-off driver"
  183. depends on OF && REGULATOR
  184. help
  185. This driver supports turning off your board by disabling a
  186. power regulator defined in the devicetree.
  187. config POWER_RESET_RESTART
  188. bool "Restart power-off driver"
  189. help
  190. Some boards don't actually have the ability to power off.
  191. Instead they restart, and u-boot holds the SoC until the
  192. user presses a key. u-boot then boots into Linux.
  193. config POWER_RESET_ST
  194. bool "ST restart driver"
  195. depends on ARCH_STI
  196. help
  197. Reset support for STMicroelectronics boards.
  198. config POWER_RESET_TPS65086
  199. bool "TPS65086 restart driver"
  200. depends on MFD_TPS65086
  201. help
  202. This driver adds support for resetting the TPS65086 PMIC on restart.
  203. config POWER_RESET_VERSATILE
  204. bool "ARM Versatile family reboot driver"
  205. depends on ARM
  206. depends on MFD_SYSCON
  207. depends on OF
  208. help
  209. Power off and restart support for ARM Versatile family of
  210. reference boards.
  211. config POWER_RESET_VEXPRESS
  212. bool "ARM Versatile Express power-off and reset driver"
  213. depends on ARM || ARM64
  214. depends on VEXPRESS_CONFIG=y
  215. help
  216. Power off and reset support for the ARM Ltd. Versatile
  217. Express boards.
  218. config POWER_RESET_XGENE
  219. bool "APM SoC X-Gene reset driver"
  220. depends on ARM64
  221. help
  222. Reboot support for the APM SoC X-Gene Eval boards.
  223. config POWER_RESET_KEYSTONE
  224. bool "Keystone reset driver"
  225. depends on ARCH_KEYSTONE || COMPILE_TEST
  226. depends on HAS_IOMEM
  227. select MFD_SYSCON
  228. help
  229. Reboot support for the KEYSTONE SoCs.
  230. config POWER_RESET_SYSCON
  231. bool "Generic SYSCON regmap reset driver"
  232. depends on OF
  233. depends on HAS_IOMEM
  234. select MFD_SYSCON
  235. help
  236. Reboot support for generic SYSCON mapped register reset.
  237. config POWER_RESET_SYSCON_POWEROFF
  238. bool "Generic SYSCON regmap poweroff driver"
  239. depends on OF
  240. depends on HAS_IOMEM
  241. select MFD_SYSCON
  242. help
  243. Poweroff support for generic SYSCON mapped register poweroff.
  244. config POWER_RESET_RMOBILE
  245. tristate "Renesas R-Mobile reset driver"
  246. depends on ARCH_RMOBILE || COMPILE_TEST
  247. depends on HAS_IOMEM
  248. help
  249. Reboot support for Renesas R-Mobile and SH-Mobile SoCs.
  250. config REBOOT_MODE
  251. tristate
  252. config SYSCON_REBOOT_MODE
  253. tristate "Generic SYSCON regmap reboot mode driver"
  254. depends on OF
  255. depends on MFD_SYSCON
  256. select REBOOT_MODE
  257. help
  258. Say y here will enable reboot mode driver. This will
  259. get reboot mode arguments and store it in SYSCON mapped
  260. register, then the bootloader can read it to take different
  261. action according to the mode.
  262. config POWER_RESET_SC27XX
  263. tristate "Spreadtrum SC27xx PMIC power-off driver"
  264. depends on MFD_SC27XX_PMIC || COMPILE_TEST
  265. help
  266. This driver supports powering off a system through
  267. Spreadtrum SC27xx series PMICs. The SC27xx series
  268. PMICs includes the SC2720, SC2721, SC2723, SC2730
  269. and SC2731 chips.
  270. config NVMEM_REBOOT_MODE
  271. tristate "Generic NVMEM reboot mode driver"
  272. depends on OF
  273. select REBOOT_MODE
  274. help
  275. Say y here will enable reboot mode driver. This will
  276. get reboot mode arguments and store it in a NVMEM cell,
  277. then the bootloader can read it and take different
  278. action according to the mode.
  279. config POWER_RESET_QCOM_VM
  280. tristate "Qualcomm Technologies, Inc. MSM VM power-off driver"
  281. depends on OF
  282. help
  283. Power off and restart support for Qualcomm Technologies, Inc. virtual
  284. machine. This driver supports virtual machine power down and restart.
  285. Say Y here if you have a MSM virtual machine and wish to enable
  286. restart driver.
  287. config POWER_MLXBF
  288. tristate "Mellanox BlueField power handling driver"
  289. depends on (GPIO_MLXBF2 || GPIO_MLXBF3) && ACPI
  290. help
  291. This driver supports reset or low power mode handling for Mellanox BlueField.
  292. endif