Kconfig 7.1 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0-only
2 3 4 5 6 7 8 9
menuconfig POWER_RESET
	bool "Board level reset or power off"
	help
	  Provides a number of drivers which either reset a complete board
	  or shut it down, by manipulating the main power supply on the board.

	  Say Y here to enable board reset and power off

10 11
if POWER_RESET

12 13
config POWER_RESET_AS3722
	bool "ams AS3722 power-off driver"
14
	depends on MFD_AS3722
15 16 17
	help
	  This driver supports turning off board via a ams AS3722 power-off.

18
config POWER_RESET_AT91_POWEROFF
19
	tristate "Atmel AT91 poweroff driver"
20
	depends on ARCH_AT91
21 22 23 24 25
	default SOC_AT91SAM9 || SOC_SAMA5
	help
	  This driver supports poweroff for Atmel AT91SAM9 and SAMA5
	  SoCs

26
config POWER_RESET_AT91_RESET
27
	tristate "Atmel AT91 reset driver"
28
	depends on ARCH_AT91
29 30 31 32 33
	default SOC_AT91SAM9 || SOC_SAMA5
	help
	  This driver supports restart for Atmel AT91SAM9 and SAMA5
	  SoCs

34 35
config POWER_RESET_AT91_SAMA5D2_SHDWC
	tristate "Atmel AT91 SAMA5D2-Compatible shutdown controller driver"
36
	depends on ARCH_AT91
37 38 39 40 41
	default SOC_SAMA5
	help
	  This driver supports the alternate shutdown controller for some Atmel
	  SAMA5 SoCs. It is present for example on SAMA5D2 SoC.

42 43
config POWER_RESET_AXXIA
	bool "LSI Axxia reset driver"
44
	depends on ARCH_AXXIA
45 46 47 48 49
	help
	  This driver supports restart for Axxia SoC.

	  Say Y if you have an Axxia family SoC.

50 51 52 53 54 55 56 57 58 59
config POWER_RESET_BRCMKONA
	bool "Broadcom Kona reset driver"
	depends on ARM || COMPILE_TEST
	default ARCH_BCM_MOBILE
	help
	  This driver provides restart support for Broadcom Kona chips.

	  Say Y here if you have a Broadcom Kona-based board and you wish
	  to have restart support.

60
config POWER_RESET_BRCMSTB
61
	bool "Broadcom STB reset driver"
62
	depends on ARM || ARM64 || MIPS || COMPILE_TEST
63
	depends on MFD_SYSCON
64
	default ARCH_BRCMSTB || BMIPS_GENERIC
65
	help
66
	  This driver provides restart support for Broadcom STB boards.
67

68
	  Say Y here if you have a Broadcom STB board and you wish
69 70
	  to have restart support.

71 72 73 74 75 76 77 78 79
config POWER_RESET_GEMINI_POWEROFF
	bool "Cortina Gemini power-off driver"
	depends on ARCH_GEMINI || COMPILE_TEST
	depends on OF && HAS_IOMEM
	default ARCH_GEMINI
	help
	  This driver supports turning off the Cortina Gemini SoC.
	  Select this if you're building a kernel with Gemini SoC support.

80 81
config POWER_RESET_GPIO
	bool "GPIO power-off driver"
82
	depends on OF_GPIO
83 84 85 86
	help
	  This driver supports turning off your board via a GPIO line.
	  If your board needs a GPIO high/low to power down, say Y and
	  create a binding in your devicetree.
87

88 89
config POWER_RESET_GPIO_RESTART
	bool "GPIO restart driver"
90
	depends on OF_GPIO
91 92 93 94 95
	help
	  This driver supports restarting your board via a GPIO line.
	  If your board needs a GPIO high/low to restart, say Y and
	  create a binding in your devicetree.

96 97
config POWER_RESET_HISI
	bool "Hisilicon power-off driver"
98
	depends on ARCH_HISI
99 100 101
	help
	  Reboot support for Hisilicon boards.

102 103
config POWER_RESET_MSM
	bool "Qualcomm MSM power-off driver"
104
	depends on ARCH_QCOM
105 106 107
	help
	  Power off and restart support for Qualcomm boards.

108 109 110 111 112 113 114 115 116 117 118
config POWER_RESET_QCOM_PON
	tristate "Qualcomm power-on driver"
	depends on ARCH_QCOM
	depends on MFD_SPMI_PMIC
	select REBOOT_MODE
	help
	  Power On support for Qualcomm boards.
	  If you have a Qualcomm platform and need support for
	  power-on and reboot reason, Say Y.
	  If unsure, Say N.

119 120 121 122 123 124 125
config POWER_RESET_OCELOT_RESET
	bool "Microsemi Ocelot reset driver"
	depends on MSCC_OCELOT || COMPILE_TEST
	select MFD_SYSCON
	help
	  This driver supports restart for Microsemi Ocelot SoC.

126 127 128 129 130 131 132 133 134 135
config POWER_RESET_PIIX4_POWEROFF
	tristate "Intel PIIX4 power-off driver"
	depends on PCI
	depends on MIPS || COMPILE_TEST
	help
	  This driver supports powering off a system using the Intel PIIX4
	  southbridge, for example the MIPS Malta development board. The
	  southbridge SOff state is entered in response to a request to
	  power off the system.

136 137
config POWER_RESET_LTC2952
	bool "LTC2952 PowerPath power-off driver"
138
	depends on OF_GPIO
139 140 141 142
	help
	  This driver supports an external powerdown trigger and board power
	  down via the LTC2952. Bindings are made in the device tree.

143 144
config POWER_RESET_QNAP
	bool "QNAP power-off driver"
145
	depends on OF_GPIO && PLAT_ORION
146 147 148 149 150
	help
	  This driver supports turning off QNAP NAS devices by sending
	  commands to the microcontroller which controls the main power.

	  Say Y if you have a QNAP NAS.
151 152 153 154 155 156 157

config POWER_RESET_RESTART
	bool "Restart power-off driver"
	help
	  Some boards don't actually have the ability to power off.
	  Instead they restart, and u-boot holds the SoC until the
	  user presses a key. u-boot then boots into Linux.
158

159
config POWER_RESET_ST
160
	bool "ST restart driver"
161
	depends on ARCH_STI
162
	help
163
	  Reset support for STMicroelectronics boards.
164

165 166 167 168 169 170 171 172 173
config POWER_RESET_VERSATILE
	bool "ARM Versatile family reboot driver"
	depends on ARM
	depends on MFD_SYSCON
	depends on OF
	help
	  Power off and restart support for ARM Versatile family of
	  reference boards.

174
config POWER_RESET_VEXPRESS
175 176
	bool "ARM Versatile Express power-off and reset driver"
	depends on ARM || ARM64
177
	depends on VEXPRESS_CONFIG
178 179 180
	help
	  Power off and reset support for the ARM Ltd. Versatile
	  Express boards.
181 182 183 184 185 186

config POWER_RESET_XGENE
	bool "APM SoC X-Gene reset driver"
	depends on ARM64
	help
	  Reboot support for the APM SoC X-Gene Eval boards.
187 188 189

config POWER_RESET_KEYSTONE
	bool "Keystone reset driver"
190 191
	depends on ARCH_KEYSTONE || COMPILE_TEST
	depends on HAS_IOMEM
192 193 194 195
	select MFD_SYSCON
	help
	  Reboot support for the KEYSTONE SoCs.

196 197
config POWER_RESET_SYSCON
	bool "Generic SYSCON regmap reset driver"
198
	depends on OF
199
	depends on HAS_IOMEM
200
	select MFD_SYSCON
201 202
	help
	  Reboot support for generic SYSCON mapped register reset.
203

204 205 206
config POWER_RESET_SYSCON_POWEROFF
	bool "Generic SYSCON regmap poweroff driver"
	depends on OF
207
	depends on HAS_IOMEM
208 209 210 211
	select MFD_SYSCON
	help
	  Poweroff support for generic SYSCON mapped register poweroff.

212 213 214
config POWER_RESET_RMOBILE
	tristate "Renesas R-Mobile reset driver"
	depends on ARCH_RMOBILE || COMPILE_TEST
215
	depends on HAS_IOMEM
216 217 218
	help
	  Reboot support for Renesas R-Mobile and SH-Mobile SoCs.

219 220 221 222 223 224 225
config POWER_RESET_ZX
	tristate "ZTE SoCs reset driver"
	depends on ARCH_ZX || COMPILE_TEST
	depends on HAS_IOMEM
	help
	  Reboot support for ZTE SoCs.

A
Andy Yan 已提交
226 227 228 229 230 231
config REBOOT_MODE
	tristate

config SYSCON_REBOOT_MODE
	tristate "Generic SYSCON regmap reboot mode driver"
	depends on OF
232
	depends on MFD_SYSCON
A
Andy Yan 已提交
233 234 235 236 237 238 239
	select REBOOT_MODE
	help
	  Say y here will enable reboot mode driver. This will
	  get reboot mode arguments and store it in SYSCON mapped
	  register, then the bootloader can read it to take different
	  action according to the mode.

240 241 242 243 244 245 246 247 248
config POWER_RESET_SC27XX
	bool "Spreadtrum SC27xx PMIC power-off driver"
	depends on MFD_SC27XX_PMIC || COMPILE_TEST
	help
	  This driver supports powering off a system through
	  Spreadtrum SC27xx series PMICs. The SC27xx series
	  PMICs includes the SC2720, SC2721, SC2723, SC2730
	  and SC2731 chips.

249 250
config NVMEM_REBOOT_MODE
	tristate "Generic NVMEM reboot mode driver"
251
	depends on OF
252 253 254 255 256 257 258
	select REBOOT_MODE
	help
	  Say y here will enable reboot mode driver. This will
	  get reboot mode arguments and store it in a NVMEM cell,
	  then the bootloader can read it and take different
	  action according to the mode.

259
endif
260