xref: /openbmc/linux/drivers/power/reset/Kconfig (revision 56bbd862)
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 || COMPILE_TEST
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 || MIPS || COMPILE_TEST
62	depends on MFD_SYSCON
63	default ARCH_BRCMSTB
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_GPIO
71	bool "GPIO power-off driver"
72	depends on OF_GPIO
73	help
74	  This driver supports turning off your board via a GPIO line.
75	  If your board needs a GPIO high/low to power down, say Y and
76	  create a binding in your devicetree.
77
78config POWER_RESET_GPIO_RESTART
79	bool "GPIO restart driver"
80	depends on OF_GPIO
81	help
82	  This driver supports restarting your board via a GPIO line.
83	  If your board needs a GPIO high/low to restart, say Y and
84	  create a binding in your devicetree.
85
86config POWER_RESET_HISI
87	bool "Hisilicon power-off driver"
88	depends on ARCH_HISI
89	help
90	  Reboot support for Hisilicon boards.
91
92config POWER_RESET_IMX
93	bool "IMX6 power-off driver"
94	depends on POWER_RESET && SOC_IMX6
95	help
96	  This driver support power off external PMIC by PMIC_ON_REQ on i.mx6
97	  boards.If you want to use other pin to control external power,please
98	  say N here or disable in dts to make sure pm_power_off never be
99	  overwrote wrongly by this driver.
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_PIIX4_POWEROFF
108	tristate "Intel PIIX4 power-off driver"
109	depends on PCI
110	depends on MIPS || COMPILE_TEST
111	help
112	  This driver supports powering off a system using the Intel PIIX4
113	  southbridge, for example the MIPS Malta development board. The
114	  southbridge SOff state is entered in response to a request to
115	  power off the system.
116
117config POWER_RESET_LTC2952
118	bool "LTC2952 PowerPath power-off driver"
119	depends on OF_GPIO
120	help
121	  This driver supports an external powerdown trigger and board power
122	  down via the LTC2952. Bindings are made in the device tree.
123
124config POWER_RESET_QNAP
125	bool "QNAP power-off driver"
126	depends on OF_GPIO && PLAT_ORION
127	help
128	  This driver supports turning off QNAP NAS devices by sending
129	  commands to the microcontroller which controls the main power.
130
131	  Say Y if you have a QNAP NAS.
132
133config POWER_RESET_RESTART
134	bool "Restart power-off driver"
135	help
136	  Some boards don't actually have the ability to power off.
137	  Instead they restart, and u-boot holds the SoC until the
138	  user presses a key. u-boot then boots into Linux.
139
140config POWER_RESET_ST
141	bool "ST restart driver"
142	depends on ARCH_STI
143	help
144	  Reset support for STMicroelectronics boards.
145
146config POWER_RESET_VERSATILE
147	bool "ARM Versatile family reboot driver"
148	depends on ARM
149	depends on MFD_SYSCON
150	depends on OF
151	help
152	  Power off and restart support for ARM Versatile family of
153	  reference boards.
154
155config POWER_RESET_VEXPRESS
156	bool "ARM Versatile Express power-off and reset driver"
157	depends on ARM || ARM64
158	depends on VEXPRESS_CONFIG
159	help
160	  Power off and reset support for the ARM Ltd. Versatile
161	  Express boards.
162
163config POWER_RESET_XGENE
164	bool "APM SoC X-Gene reset driver"
165	depends on ARM64
166	help
167	  Reboot support for the APM SoC X-Gene Eval boards.
168
169config POWER_RESET_KEYSTONE
170	bool "Keystone reset driver"
171	depends on ARCH_KEYSTONE || COMPILE_TEST
172	depends on HAS_IOMEM
173	select MFD_SYSCON
174	help
175	  Reboot support for the KEYSTONE SoCs.
176
177config POWER_RESET_SYSCON
178	bool "Generic SYSCON regmap reset driver"
179	depends on OF
180	depends on HAS_IOMEM
181	select MFD_SYSCON
182	help
183	  Reboot support for generic SYSCON mapped register reset.
184
185config POWER_RESET_SYSCON_POWEROFF
186	bool "Generic SYSCON regmap poweroff driver"
187	depends on OF
188	depends on HAS_IOMEM
189	select MFD_SYSCON
190	help
191	  Poweroff support for generic SYSCON mapped register poweroff.
192
193config POWER_RESET_RMOBILE
194	tristate "Renesas R-Mobile reset driver"
195	depends on ARCH_RMOBILE || COMPILE_TEST
196	depends on HAS_IOMEM
197	help
198	  Reboot support for Renesas R-Mobile and SH-Mobile SoCs.
199
200config POWER_RESET_ZX
201	tristate "ZTE SoCs reset driver"
202	depends on ARCH_ZX || COMPILE_TEST
203	depends on HAS_IOMEM
204	help
205	  Reboot support for ZTE SoCs.
206
207config REBOOT_MODE
208	tristate
209
210config SYSCON_REBOOT_MODE
211	tristate "Generic SYSCON regmap reboot mode driver"
212	depends on OF
213	depends on MFD_SYSCON
214	select REBOOT_MODE
215	help
216	  Say y here will enable reboot mode driver. This will
217	  get reboot mode arguments and store it in SYSCON mapped
218	  register, then the bootloader can read it to take different
219	  action according to the mode.
220
221endif
222
223