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