xref: /openbmc/linux/drivers/power/reset/Kconfig (revision 1804569d)
1menuconfig POWER_RESET
2	bool "Board level reset or power off"
3	help
4	  Provides a number of drivers which either reset a complete board
5	  or shut it down, by manipulating the main power supply on the board.
6
7	  Say Y here to enable board reset and power off
8
9if POWER_RESET
10
11config POWER_RESET_AS3722
12	bool "ams AS3722 power-off driver"
13	depends on MFD_AS3722
14	help
15	  This driver supports turning off board via a ams AS3722 power-off.
16
17config POWER_RESET_AT91_POWEROFF
18	tristate "Atmel AT91 poweroff driver"
19	depends on ARCH_AT91
20	default SOC_AT91SAM9 || SOC_SAMA5
21	help
22	  This driver supports poweroff for Atmel AT91SAM9 and SAMA5
23	  SoCs
24
25config POWER_RESET_AT91_RESET
26	tristate "Atmel AT91 reset driver"
27	depends on ARCH_AT91
28	default SOC_AT91SAM9 || SOC_SAMA5
29	help
30	  This driver supports restart for Atmel AT91SAM9 and SAMA5
31	  SoCs
32
33config POWER_RESET_AT91_SAMA5D2_SHDWC
34	tristate "Atmel AT91 SAMA5D2-Compatible shutdown controller driver"
35	depends on ARCH_AT91
36	default SOC_SAMA5
37	help
38	  This driver supports the alternate shutdown controller for some Atmel
39	  SAMA5 SoCs. It is present for example on SAMA5D2 SoC.
40
41config 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
47	  Say Y if you have an Axxia family SoC.
48
49config POWER_RESET_BRCMKONA
50	bool "Broadcom Kona reset driver"
51	depends on ARM || COMPILE_TEST
52	default ARCH_BCM_MOBILE
53	help
54	  This driver provides restart support for Broadcom Kona chips.
55
56	  Say Y here if you have a Broadcom Kona-based board and you wish
57	  to have restart support.
58
59config POWER_RESET_BRCMSTB
60	bool "Broadcom STB reset driver"
61	depends on ARM || ARM64 || MIPS || COMPILE_TEST
62	depends on MFD_SYSCON
63	default ARCH_BRCMSTB || BMIPS_GENERIC
64	help
65	  This driver provides restart support for Broadcom STB boards.
66
67	  Say Y here if you have a Broadcom STB board and you wish
68	  to have restart support.
69
70config POWER_RESET_GEMINI_POWEROFF
71	bool "Cortina Gemini power-off driver"
72	depends on ARCH_GEMINI || COMPILE_TEST
73	depends on OF && HAS_IOMEM
74	default ARCH_GEMINI
75	help
76	  This driver supports turning off the Cortina Gemini SoC.
77	  Select this if you're building a kernel with Gemini SoC support.
78
79config POWER_RESET_GPIO
80	bool "GPIO power-off driver"
81	depends on OF_GPIO
82	help
83	  This driver supports turning off your board via a GPIO line.
84	  If your board needs a GPIO high/low to power down, say Y and
85	  create a binding in your devicetree.
86
87config POWER_RESET_GPIO_RESTART
88	bool "GPIO restart driver"
89	depends on OF_GPIO
90	help
91	  This driver supports restarting your board via a GPIO line.
92	  If your board needs a GPIO high/low to restart, say Y and
93	  create a binding in your devicetree.
94
95config POWER_RESET_HISI
96	bool "Hisilicon power-off driver"
97	depends on ARCH_HISI
98	help
99	  Reboot support for Hisilicon boards.
100
101config POWER_RESET_MSM
102	bool "Qualcomm MSM power-off driver"
103	depends on ARCH_QCOM
104	help
105	  Power off and restart support for Qualcomm boards.
106
107config POWER_RESET_QCOM_PON
108	tristate "Qualcomm power-on driver"
109	depends on ARCH_QCOM
110	depends on MFD_SPMI_PMIC
111	select REBOOT_MODE
112	help
113	  Power On support for Qualcomm boards.
114	  If you have a Qualcomm platform and need support for
115	  power-on and reboot reason, Say Y.
116	  If unsure, Say N.
117
118config POWER_RESET_OCELOT_RESET
119	bool "Microsemi Ocelot reset driver"
120	depends on MSCC_OCELOT || COMPILE_TEST
121	select MFD_SYSCON
122	help
123	  This driver supports restart for Microsemi Ocelot SoC.
124
125config POWER_RESET_PIIX4_POWEROFF
126	tristate "Intel PIIX4 power-off driver"
127	depends on PCI
128	depends on MIPS || COMPILE_TEST
129	help
130	  This driver supports powering off a system using the Intel PIIX4
131	  southbridge, for example the MIPS Malta development board. The
132	  southbridge SOff state is entered in response to a request to
133	  power off the system.
134
135config POWER_RESET_LTC2952
136	bool "LTC2952 PowerPath power-off driver"
137	depends on OF_GPIO
138	help
139	  This driver supports an external powerdown trigger and board power
140	  down via the LTC2952. Bindings are made in the device tree.
141
142config POWER_RESET_QNAP
143	bool "QNAP power-off driver"
144	depends on OF_GPIO && PLAT_ORION
145	help
146	  This driver supports turning off QNAP NAS devices by sending
147	  commands to the microcontroller which controls the main power.
148
149	  Say Y if you have a QNAP NAS.
150
151config POWER_RESET_RESTART
152	bool "Restart power-off driver"
153	help
154	  Some boards don't actually have the ability to power off.
155	  Instead they restart, and u-boot holds the SoC until the
156	  user presses a key. u-boot then boots into Linux.
157
158config POWER_RESET_ST
159	bool "ST restart driver"
160	depends on ARCH_STI
161	help
162	  Reset support for STMicroelectronics boards.
163
164config POWER_RESET_VERSATILE
165	bool "ARM Versatile family reboot driver"
166	depends on ARM
167	depends on MFD_SYSCON
168	depends on OF
169	help
170	  Power off and restart support for ARM Versatile family of
171	  reference boards.
172
173config POWER_RESET_VEXPRESS
174	bool "ARM Versatile Express power-off and reset driver"
175	depends on ARM || ARM64
176	depends on VEXPRESS_CONFIG
177	help
178	  Power off and reset support for the ARM Ltd. Versatile
179	  Express boards.
180
181config POWER_RESET_XGENE
182	bool "APM SoC X-Gene reset driver"
183	depends on ARM64
184	help
185	  Reboot support for the APM SoC X-Gene Eval boards.
186
187config POWER_RESET_KEYSTONE
188	bool "Keystone reset driver"
189	depends on ARCH_KEYSTONE || COMPILE_TEST
190	depends on HAS_IOMEM
191	select MFD_SYSCON
192	help
193	  Reboot support for the KEYSTONE SoCs.
194
195config POWER_RESET_SYSCON
196	bool "Generic SYSCON regmap reset driver"
197	depends on OF
198	depends on HAS_IOMEM
199	select MFD_SYSCON
200	help
201	  Reboot support for generic SYSCON mapped register reset.
202
203config POWER_RESET_SYSCON_POWEROFF
204	bool "Generic SYSCON regmap poweroff driver"
205	depends on OF
206	depends on HAS_IOMEM
207	select MFD_SYSCON
208	help
209	  Poweroff support for generic SYSCON mapped register poweroff.
210
211config POWER_RESET_RMOBILE
212	tristate "Renesas R-Mobile reset driver"
213	depends on ARCH_RMOBILE || COMPILE_TEST
214	depends on HAS_IOMEM
215	help
216	  Reboot support for Renesas R-Mobile and SH-Mobile SoCs.
217
218config POWER_RESET_ZX
219	tristate "ZTE SoCs reset driver"
220	depends on ARCH_ZX || COMPILE_TEST
221	depends on HAS_IOMEM
222	help
223	  Reboot support for ZTE SoCs.
224
225config REBOOT_MODE
226	tristate
227
228config SYSCON_REBOOT_MODE
229	tristate "Generic SYSCON regmap reboot mode driver"
230	depends on OF
231	depends on MFD_SYSCON
232	select REBOOT_MODE
233	help
234	  Say y here will enable reboot mode driver. This will
235	  get reboot mode arguments and store it in SYSCON mapped
236	  register, then the bootloader can read it to take different
237	  action according to the mode.
238
239config POWER_RESET_SC27XX
240	bool "Spreadtrum SC27xx PMIC power-off driver"
241	depends on MFD_SC27XX_PMIC || COMPILE_TEST
242	help
243	  This driver supports powering off a system through
244	  Spreadtrum SC27xx series PMICs. The SC27xx series
245	  PMICs includes the SC2720, SC2721, SC2723, SC2730
246	  and SC2731 chips.
247
248endif
249
250