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