Kconfig 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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 ARCH_BRCMSTB || BMIPS_GENERIC || 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_EP93XX
  65. bool "Cirrus EP93XX reset driver" if COMPILE_TEST
  66. depends on MFD_SYSCON
  67. default ARCH_EP93XX
  68. select AUXILIARY_BUS
  69. help
  70. This driver provides restart support for Cirrus EP93XX SoC.
  71. Say Y here if you have a Cirrus EP93XX SoC and you wish
  72. to have restart support.
  73. config POWER_RESET_GEMINI_POWEROFF
  74. bool "Cortina Gemini power-off driver"
  75. depends on ARCH_GEMINI || COMPILE_TEST
  76. depends on OF && HAS_IOMEM
  77. default ARCH_GEMINI
  78. help
  79. This driver supports turning off the Cortina Gemini SoC.
  80. Select this if you're building a kernel with Gemini SoC support.
  81. config POWER_RESET_GPIO
  82. bool "GPIO power-off driver"
  83. depends on OF_GPIO
  84. help
  85. This driver supports turning off your board via a GPIO line.
  86. If your board needs a GPIO high/low to power down, say Y and
  87. create a binding in your devicetree.
  88. config POWER_RESET_GPIO_RESTART
  89. bool "GPIO restart driver"
  90. depends on OF_GPIO
  91. help
  92. This driver supports restarting your board via a GPIO line.
  93. If your board needs a GPIO high/low to restart, say Y and
  94. create a binding in your devicetree.
  95. config POWER_RESET_HISI
  96. bool "Hisilicon power-off driver"
  97. depends on ARCH_HISI
  98. help
  99. Reboot support for Hisilicon boards.
  100. config POWER_RESET_LINKSTATION
  101. tristate "Buffalo LinkStation power-off driver"
  102. depends on ARCH_MVEBU || COMPILE_TEST
  103. depends on OF_MDIO && PHYLIB
  104. help
  105. This driver supports turning off some Buffalo LinkStations by
  106. setting an output pin at the ethernet PHY to the correct state.
  107. It also makes the device compatible with the WoL function.
  108. Say Y here if you have a Buffalo LinkStation LS421D/E.
  109. config POWER_RESET_MSM
  110. bool "Qualcomm MSM power-off driver"
  111. depends on ARCH_QCOM
  112. help
  113. Power off and restart support for Qualcomm boards.
  114. config POWER_RESET_QCOM_PON
  115. tristate "Qualcomm power-on driver"
  116. depends on ARCH_QCOM
  117. depends on MFD_SPMI_PMIC
  118. select REBOOT_MODE
  119. help
  120. Power On support for Qualcomm boards.
  121. If you have a Qualcomm platform and need support for
  122. power-on and reboot reason, Say Y.
  123. If unsure, Say N.
  124. config POWER_RESET_OCELOT_RESET
  125. bool "Microsemi Ocelot reset driver"
  126. depends on MSCC_OCELOT || ARCH_SPARX5 || COMPILE_TEST
  127. select MFD_SYSCON
  128. help
  129. This driver supports restart for Microsemi Ocelot SoC and similar.
  130. config POWER_RESET_ODROID_GO_ULTRA_POWEROFF
  131. bool "Odroid Go Ultra power-off driver"
  132. depends on ARCH_MESON || COMPILE_TEST
  133. depends on I2C=y && OF
  134. help
  135. This driver supports Power off for Odroid Go Ultra device.
  136. config POWER_RESET_PIIX4_POWEROFF
  137. tristate "Intel PIIX4 power-off driver"
  138. depends on PCI
  139. depends on HAS_IOPORT
  140. depends on MIPS || COMPILE_TEST
  141. help
  142. This driver supports powering off a system using the Intel PIIX4
  143. southbridge, for example the MIPS Malta development board. The
  144. southbridge SOff state is entered in response to a request to
  145. power off the system.
  146. config POWER_RESET_LTC2952
  147. bool "LTC2952 PowerPath power-off driver"
  148. depends on OF_GPIO
  149. help
  150. This driver supports an external powerdown trigger and board power
  151. down via the LTC2952. Bindings are made in the device tree.
  152. config POWER_RESET_MT6323
  153. bool "MediaTek MT6323 power-off driver"
  154. depends on MFD_MT6397
  155. help
  156. The power-off driver is responsible for externally shutdown down
  157. the power of a remote MediaTek SoC MT6323 is connected to through
  158. controlling a tiny circuit BBPU inside MT6323 RTC.
  159. Say Y if you have a board where MT6323 could be found.
  160. config POWER_RESET_QNAP
  161. bool "QNAP power-off driver"
  162. depends on OF_GPIO && PLAT_ORION
  163. help
  164. This driver supports turning off QNAP NAS devices by sending
  165. commands to the microcontroller which controls the main power.
  166. Say Y if you have a QNAP NAS.
  167. config POWER_RESET_REGULATOR
  168. bool "Regulator subsystem power-off driver"
  169. depends on OF && REGULATOR
  170. help
  171. This driver supports turning off your board by disabling a
  172. power regulator defined in the devicetree.
  173. config POWER_RESET_RESTART
  174. bool "Restart power-off driver"
  175. help
  176. Some boards don't actually have the ability to power off.
  177. Instead they restart, and u-boot holds the SoC until the
  178. user presses a key. u-boot then boots into Linux.
  179. config POWER_RESET_ST
  180. bool "ST restart driver"
  181. depends on ARCH_STI
  182. help
  183. Reset support for STMicroelectronics boards.
  184. config POWER_RESET_TPS65086
  185. bool "TPS65086 restart driver"
  186. depends on MFD_TPS65086
  187. help
  188. This driver adds support for resetting the TPS65086 PMIC on restart.
  189. config POWER_RESET_VERSATILE
  190. bool "ARM Versatile family reboot driver"
  191. depends on ARM
  192. depends on MFD_SYSCON
  193. depends on OF
  194. help
  195. Power off and restart support for ARM Versatile family of
  196. reference boards.
  197. config POWER_RESET_VEXPRESS
  198. bool "ARM Versatile Express power-off and reset driver"
  199. depends on ARM || ARM64
  200. depends on VEXPRESS_CONFIG=y
  201. help
  202. Power off and reset support for the ARM Ltd. Versatile
  203. Express boards.
  204. config POWER_RESET_XGENE
  205. bool "APM SoC X-Gene reset driver"
  206. depends on ARM64
  207. help
  208. Reboot support for the APM SoC X-Gene Eval boards.
  209. config POWER_RESET_KEYSTONE
  210. bool "Keystone reset driver"
  211. depends on ARCH_KEYSTONE || COMPILE_TEST
  212. depends on HAS_IOMEM
  213. select MFD_SYSCON
  214. help
  215. Reboot support for the KEYSTONE SoCs.
  216. config POWER_RESET_SYSCON
  217. bool "Generic SYSCON regmap reset driver"
  218. depends on OF
  219. depends on HAS_IOMEM
  220. select MFD_SYSCON
  221. help
  222. Reboot support for generic SYSCON mapped register reset.
  223. config POWER_RESET_SYSCON_POWEROFF
  224. bool "Generic SYSCON regmap poweroff driver"
  225. depends on OF
  226. depends on HAS_IOMEM
  227. select MFD_SYSCON
  228. help
  229. Poweroff support for generic SYSCON mapped register poweroff.
  230. config POWER_RESET_RMOBILE
  231. tristate "Renesas R-Mobile reset driver"
  232. depends on ARCH_RMOBILE || COMPILE_TEST
  233. depends on HAS_IOMEM
  234. help
  235. Reboot support for Renesas R-Mobile and SH-Mobile SoCs.
  236. config REBOOT_MODE
  237. tristate
  238. config SYSCON_REBOOT_MODE
  239. tristate "Generic SYSCON regmap reboot mode driver"
  240. depends on OF
  241. depends on MFD_SYSCON
  242. select REBOOT_MODE
  243. help
  244. Say y here will enable reboot mode driver. This will
  245. get reboot mode arguments and store it in SYSCON mapped
  246. register, then the bootloader can read it to take different
  247. action according to the mode.
  248. config POWER_RESET_SC27XX
  249. tristate "Spreadtrum SC27xx PMIC power-off driver"
  250. depends on MFD_SC27XX_PMIC || COMPILE_TEST
  251. help
  252. This driver supports powering off a system through
  253. Spreadtrum SC27xx series PMICs. The SC27xx series
  254. PMICs includes the SC2720, SC2721, SC2723, SC2730
  255. and SC2731 chips.
  256. config NVMEM_REBOOT_MODE
  257. tristate "Generic NVMEM reboot mode driver"
  258. depends on OF
  259. select REBOOT_MODE
  260. help
  261. Say y here will enable reboot mode driver. This will
  262. get reboot mode arguments and store it in a NVMEM cell,
  263. then the bootloader can read it and take different
  264. action according to the mode.
  265. config POWER_MLXBF
  266. tristate "Mellanox BlueField power handling driver"
  267. depends on (GPIO_MLXBF2 || GPIO_MLXBF3) && ACPI
  268. help
  269. This driver supports reset or low power mode handling for Mellanox BlueField.
  270. endif