xref: /linux/drivers/reset/Kconfig (revision 9fd565971072d2d7158e15178f84b0273e294e70)
1# SPDX-License-Identifier: GPL-2.0-only
2config ARCH_HAS_RESET_CONTROLLER
3	bool
4
5menuconfig RESET_CONTROLLER
6	bool "Reset Controller Support"
7	default y if ARCH_HAS_RESET_CONTROLLER
8	help
9	  Generic Reset Controller support.
10
11	  This framework is designed to abstract reset handling of devices
12	  via GPIOs or SoC-internal reset controller modules.
13
14	  If unsure, say no.
15
16if RESET_CONTROLLER
17
18config RESET_A10SR
19	tristate "Altera Arria10 System Resource Reset"
20	depends on MFD_ALTERA_A10SR || COMPILE_TEST
21	help
22	  This option enables support for the external reset functions for
23	  peripheral PHYs on the Altera Arria10 System Resource Chip.
24
25config RESET_ASPEED
26	tristate "ASPEED Reset Driver"
27	depends on ARCH_ASPEED || COMPILE_TEST
28	select AUXILIARY_BUS
29	help
30	  This enables the reset controller driver for AST2700.
31
32config RESET_ATH79
33	bool "AR71xx Reset Driver" if COMPILE_TEST
34	default ATH79
35	help
36	  This enables the ATH79 reset controller driver that supports the
37	  AR71xx SoC reset controller.
38
39config RESET_AXS10X
40	bool "AXS10x Reset Driver" if COMPILE_TEST
41	default ARC_PLAT_AXS10X
42	help
43	  This enables the reset controller driver for AXS10x.
44
45config RESET_BCM6345
46	bool "BCM6345 Reset Controller"
47	depends on BMIPS_GENERIC || COMPILE_TEST
48	default BMIPS_GENERIC
49	help
50	  This enables the reset controller driver for BCM6345 SoCs.
51
52config RESET_BERLIN
53	tristate "Berlin Reset Driver"
54	depends on ARCH_BERLIN || COMPILE_TEST
55	default m if ARCH_BERLIN
56	help
57	  This enables the reset controller driver for Marvell Berlin SoCs.
58
59config RESET_BRCMSTB
60	tristate "Broadcom STB reset controller"
61	depends on ARCH_BRCMSTB || ARCH_BCM2835 || COMPILE_TEST
62	default ARCH_BRCMSTB || ARCH_BCM2835
63	help
64	  This enables the reset controller driver for Broadcom STB SoCs using
65	  a SUN_TOP_CTRL_SW_INIT style controller.
66
67config RESET_BRCMSTB_RESCAL
68	tristate "Broadcom STB RESCAL reset controller"
69	depends on HAS_IOMEM
70	depends on ARCH_BRCMSTB || ARCH_BCM2835 || COMPILE_TEST
71	default ARCH_BRCMSTB || ARCH_BCM2835
72	help
73	  This enables the RESCAL reset controller for SATA, PCIe0, or PCIe1 on
74	  BCM7216 or the BCM2712.
75
76config RESET_DR1V90
77	tristate "Anlogic DR1V90 reset controller"
78	depends on ARCH_ANLOGIC || COMPILE_TEST
79	depends on ANLOGIC_DR1V90_CRU
80	select AUXILIARY_BUS
81	default ARCH_ANLOGIC
82	help
83	  This enables the reset controller driver for Anlogic DR1V90 SoCs
84	  provided by the CRU unit.
85
86config RESET_EIC7700
87	bool "Reset controller driver for ESWIN SoCs"
88	depends on ARCH_ESWIN || COMPILE_TEST
89	default ARCH_ESWIN
90	help
91	  This enables the reset controller driver for ESWIN SoCs. This driver is
92	  specific to ESWIN SoCs and should only be enabled if using such hardware.
93	  The driver supports eic7700 series chips and provides functionality for
94	  asserting and deasserting resets on the chip.
95
96config RESET_EIC7700_HSP
97	tristate "EIC7700 HSP Reset controller"
98	depends on ARCH_ESWIN || COMPILE_TEST
99	select AUXILIARY_BUS
100	help
101	  This enables the HSP reset controller driver for ESWIN SoCs. This
102	  driver is specific to ESWIN SoCs and should only be enabled if using
103	  such hardware.
104	  The driver supports EIC7700 series chips and provides functionality
105	  for asserting and deasserting resets on the chip.
106
107config RESET_EYEQ
108	bool "Mobileye EyeQ reset controller"
109	depends on EYEQ || COMPILE_TEST
110	select AUXILIARY_BUS
111	default EYEQ
112	help
113	  This enables the Mobileye EyeQ reset controller, used in EyeQ5, EyeQ6L
114	  and EyeQ6H SoCs.
115
116	  It has one or more domains, with a varying number of resets in each.
117	  Registers are located in a shared register region called OLB. EyeQ6H
118	  has multiple reset instances.
119
120config RESET_GPIO
121	tristate "GPIO reset controller"
122	depends on GPIOLIB
123	select AUXILIARY_BUS
124	help
125	  This enables a generic reset controller for resets attached via
126	  GPIOs.  Typically for OF platforms this driver expects "reset-gpios"
127	  property.
128
129	  If compiled as module, it will be called reset-gpio.
130
131config RESET_HSDK
132	bool "Synopsys HSDK Reset Driver"
133	depends on HAS_IOMEM
134	depends on ARC_SOC_HSDK || COMPILE_TEST
135	help
136	  This enables the reset controller driver for HSDK board.
137
138config RESET_IMX_SCU
139	tristate "i.MX8Q Reset Driver"
140	depends on IMX_SCU && HAVE_ARM_SMCCC
141	depends on (ARM64 && ARCH_MXC) || COMPILE_TEST
142	help
143          This enables the reset controller driver for i.MX8QM/i.MX8QXP
144
145config RESET_IMX7
146	tristate "i.MX7/8 Reset Driver"
147	depends on HAS_IOMEM
148	depends on SOC_IMX7D || (ARM64 && ARCH_MXC) || COMPILE_TEST
149	default y if SOC_IMX7D
150	select MFD_SYSCON
151	help
152	  This enables the reset controller driver for i.MX7 SoCs.
153
154config RESET_IMX8MP_AUDIOMIX
155	tristate "i.MX8MP AudioMix Reset Driver"
156	depends on ARCH_MXC || COMPILE_TEST
157	select AUXILIARY_BUS
158	default CLK_IMX8MP
159	help
160	  This enables the reset controller driver for i.MX8MP AudioMix
161
162config RESET_INTEL_GW
163	bool "Intel Reset Controller Driver"
164	depends on X86 || COMPILE_TEST
165	depends on OF && HAS_IOMEM
166	select REGMAP_MMIO
167	help
168	  This enables the reset controller driver for Intel Gateway SoCs.
169	  Say Y to control the reset signals provided by reset controller.
170	  Otherwise, say N.
171
172config RESET_K210
173	bool "Reset controller driver for Canaan Kendryte K210 SoC"
174	depends on (SOC_CANAAN_K210 || COMPILE_TEST) && OF
175	select MFD_SYSCON
176	default SOC_CANAAN_K210
177	help
178	  Support for the Canaan Kendryte K210 RISC-V SoC reset controller.
179	  Say Y if you want to control reset signals provided by this
180	  controller.
181
182config RESET_K230
183	tristate "Reset controller driver for Canaan Kendryte K230 SoC"
184	depends on ARCH_CANAAN || COMPILE_TEST
185	default ARCH_CANAAN
186	help
187	  Support for the Canaan Kendryte K230 RISC-V SoC reset controller.
188	  Say Y if you want to control reset signals provided by this
189	  controller.
190
191config RESET_LANTIQ
192	bool "Lantiq XWAY Reset Driver" if COMPILE_TEST
193	default SOC_TYPE_XWAY
194	help
195	  This enables the reset controller driver for Lantiq / Intel XWAY SoCs.
196
197config RESET_LPC18XX
198	bool "LPC18xx/43xx Reset Driver" if COMPILE_TEST
199	default ARCH_LPC18XX
200	help
201	  This enables the reset controller driver for NXP LPC18xx/43xx SoCs.
202
203config RESET_MCHP_SPARX5
204	tristate "Microchip Sparx5 reset driver"
205	depends on ARCH_SPARX5 || ARCH_LAN969X || SOC_LAN966 || MCHP_LAN966X_PCI || COMPILE_TEST
206	default y if SPARX5_SWITCH
207	select MFD_SYSCON
208	help
209	  This driver supports switch core reset for the Microchip Sparx5 SoC.
210
211config RESET_NPCM
212	bool "NPCM BMC Reset Driver" if COMPILE_TEST
213	default ARCH_NPCM
214	select AUXILIARY_BUS
215	help
216	  This enables the reset controller driver for Nuvoton NPCM
217	  BMC SoCs.
218
219config RESET_NUVOTON_MA35D1
220	bool "Nuvoton MA35D1 Reset Driver"
221	depends on ARCH_MA35 || COMPILE_TEST
222	default ARCH_MA35
223	help
224	  This enables the reset controller driver for Nuvoton MA35D1 SoC.
225
226config RESET_PISTACHIO
227	bool "Pistachio Reset Driver"
228	depends on MIPS || COMPILE_TEST
229	help
230	  This enables the reset driver for ImgTec Pistachio SoCs.
231
232config RESET_POLARFIRE_SOC
233	bool "Microchip PolarFire SoC (MPFS) Reset Driver"
234	depends on MCHP_CLK_MPFS
235	depends on MFD_SYSCON
236	select AUXILIARY_BUS
237	default MCHP_CLK_MPFS
238	help
239	  This driver supports peripheral reset for the Microchip PolarFire SoC
240
241config RESET_QCOM_AOSS
242	tristate "Qcom AOSS Reset Driver"
243	depends on ARCH_QCOM || COMPILE_TEST
244	help
245	  This enables the AOSS (always on subsystem) reset driver
246	  for Qualcomm SDM845 SoCs. Say Y if you want to control
247	  reset signals provided by AOSS for Modem, Venus, ADSP,
248	  GPU, Camera, Wireless, Display subsystem. Otherwise, say N.
249
250config RESET_QCOM_PDC
251	tristate "Qualcomm PDC Reset Driver"
252	depends on ARCH_QCOM || COMPILE_TEST
253	help
254	  This enables the PDC (Power Domain Controller) reset driver
255	  for Qualcomm Technologies Inc SDM845 SoCs. Say Y if you want
256	  to control reset signals provided by PDC for Modem, Compute,
257	  Display, GPU, Debug, AOP, Sensors, Audio, SP and APPS.
258
259config RESET_RASPBERRYPI
260	tristate "Raspberry Pi 4 Firmware Reset Driver"
261	depends on RASPBERRYPI_FIRMWARE || (RASPBERRYPI_FIRMWARE=n && COMPILE_TEST)
262	default USB_XHCI_PCI
263	help
264	  Raspberry Pi 4's co-processor controls some of the board's HW
265	  initialization process, but it's up to Linux to trigger it when
266	  relevant. This driver provides a reset controller capable of
267	  interfacing with RPi4's co-processor and model these firmware
268	  initialization routines as reset lines.
269
270config RESET_RZG2L_USBPHY_CTRL
271	tristate "Renesas RZ/G2L USBPHY control driver"
272	depends on ARCH_RZG2L || COMPILE_TEST
273	select MFD_SYSCON
274	help
275	  Support for USBPHY Control found on RZ/G2L family. It mainly
276	  controls reset and power down of the USB/PHY.
277
278config RESET_RZV2H_USB2PHY
279	tristate "Renesas RZ/V2H(P) (and similar SoCs) USB2PHY Reset driver"
280	depends on ARCH_RENESAS || COMPILE_TEST
281	select AUXILIARY_BUS
282	select REGMAP_MMIO
283	help
284	  Support for USB2PHY Port reset Control found on the RZ/V2H(P) SoC
285	  (and similar SoCs).
286
287config RESET_SCMI
288	tristate "Reset driver controlled via ARM SCMI interface"
289	depends on ARM_SCMI_PROTOCOL || COMPILE_TEST
290	default ARM_SCMI_PROTOCOL
291	help
292	  This driver provides support for reset signal/domains that are
293	  controlled by firmware that implements the SCMI interface.
294
295	  This driver uses SCMI Message Protocol to interact with the
296	  firmware controlling all the reset signals.
297
298config RESET_SIMPLE
299	bool "Simple Reset Controller Driver" if COMPILE_TEST || EXPERT
300	default ARCH_ASPEED || ARCH_BCMBCA || ARCH_BITMAIN || ARCH_REALTEK || ARCH_SOPHGO || ARCH_STM32 || (ARCH_INTEL_SOCFPGA && ARM64) || ARCH_SUNXI || ARC
301	depends on HAS_IOMEM
302	help
303	  This enables a simple reset controller driver for reset lines that
304	  that can be asserted and deasserted by toggling bits in a contiguous,
305	  exclusive register space.
306
307	  Currently this driver supports:
308	   - Altera SoCFPGAs
309	   - ASPEED BMC SoCs
310	   - Bitmain BM1880 SoC
311	   - Realtek SoCs
312	   - RCC reset controller in STM32 MCUs
313	   - Allwinner SoCs
314	   - SiFive FU740 SoCs
315	   - Sophgo SoCs
316
317config RESET_SKY1
318	bool "Cix Sky1 reset controller"
319	depends on ARCH_CIX || COMPILE_TEST
320	select REGMAP_MMIO
321	help
322	  This enables the reset controller for Cix Sky1.
323
324config RESET_SKY1_AUDSS
325	tristate "Cix Sky1 Audio Subsystem reset controller"
326	depends on ARCH_CIX || COMPILE_TEST
327	select AUXILIARY_BUS
328	default CLK_SKY1_AUDSS
329	help
330	  Support for block-level software reset lines in the Cix Sky1
331	  Audio Subsystem (AUDSS) Clock and Reset Unit. Sixteen reset
332	  outputs for audio peripherals are controlled through the CRU
333	  register map. The driver binds as an auxiliary device from
334	  the AUDSS clock driver. Say M or Y here if you want to build
335	  this driver.
336
337config RESET_SOCFPGA
338	bool "SoCFPGA Reset Driver" if COMPILE_TEST && (!ARM || !ARCH_INTEL_SOCFPGA)
339	default ARM && ARCH_INTEL_SOCFPGA
340	select RESET_SIMPLE
341	help
342	  This enables the reset driver for the SoCFPGA ARMv7 platforms. This
343	  driver gets initialized early during platform init calls.
344
345config RESET_SUNPLUS
346	bool "Sunplus SoCs Reset Driver" if COMPILE_TEST
347	default ARCH_SUNPLUS
348	help
349	  This enables the reset driver support for Sunplus SoCs.
350	  The reset lines that can be asserted and deasserted by toggling bits
351	  in a contiguous, exclusive register space. The register is HIWORD_MASKED,
352	  which means each register holds 16 reset lines.
353
354config RESET_SUNXI
355	bool "Allwinner SoCs Reset Driver" if COMPILE_TEST && !ARCH_SUNXI
356	default ARCH_SUNXI
357	select RESET_SIMPLE
358	help
359	  This enables the reset driver for Allwinner SoCs.
360
361config RESET_TENSTORRENT_ATLANTIS
362	tristate "Tenstorrent atlantis reset driver"
363	depends on ARCH_TENSTORRENT || COMPILE_TEST
364	select AUXILIARY_BUS
365	default ARCH_TENSTORRENT
366	help
367	  This enables the driver for the reset controller
368	  present in the Tenstorrent Atlantis SoC.
369	  Enable this option to be able to use hardware
370	  resets on Atalantis based systems.
371
372config RESET_TH1520
373	tristate "T-HEAD TH1520 reset controller"
374	depends on ARCH_THEAD || COMPILE_TEST
375	select REGMAP_MMIO
376	help
377	  This driver provides support for the T-HEAD TH1520 SoC reset controller,
378	  which manages hardware reset lines for SoC components such as the GPU.
379	  Enable this option if you need to control hardware resets on TH1520-based
380	  systems.
381
382config RESET_TI_SCI
383	tristate "TI System Control Interface (TI-SCI) reset driver"
384	depends on TI_SCI_PROTOCOL || (COMPILE_TEST && TI_SCI_PROTOCOL=n)
385	help
386	  This enables the reset driver support over TI System Control Interface
387	  available on some new TI's SoCs. If you wish to use reset resources
388	  managed by the TI System Controller, say Y here. Otherwise, say N.
389
390config RESET_TI_SYSCON
391	tristate "TI SYSCON Reset Driver"
392	depends on HAS_IOMEM
393	select MFD_SYSCON
394	help
395	  This enables the reset driver support for TI devices with
396	  memory-mapped reset registers as part of a syscon device node. If
397	  you wish to use the reset framework for such memory-mapped devices,
398	  say Y here. Otherwise, say N.
399
400config RESET_TI_TPS380X
401	tristate "TI TPS380x Reset Driver"
402	select GPIOLIB
403	help
404	  This enables the reset driver support for TI TPS380x devices. If
405	  you wish to use the reset framework for such devices, say Y here.
406	  Otherwise, say N.
407
408config RESET_TN48M_CPLD
409	tristate "Delta Networks TN48M switch CPLD reset controller"
410	depends on MFD_TN48M_CPLD || COMPILE_TEST
411	default MFD_TN48M_CPLD
412	help
413	  This enables the reset controller driver for the Delta TN48M CPLD.
414	  It provides reset signals for Armada 7040 and 385 SoC-s, Alleycat 3X
415	  switch MAC-s, Alaska OOB ethernet PHY, Quad Alaska ethernet PHY-s and
416	  Microchip PD69200 PoE PSE controller.
417
418	  This driver can also be built as a module. If so, the module will be
419	  called reset-tn48m.
420
421config RESET_UNIPHIER
422	tristate "Reset controller driver for UniPhier SoCs"
423	depends on ARCH_UNIPHIER || COMPILE_TEST
424	depends on OF && MFD_SYSCON
425	default ARCH_UNIPHIER
426	help
427	  Support for reset controllers on UniPhier SoCs.
428	  Say Y if you want to control reset signals provided by System Control
429	  block, Media I/O block, Peripheral Block.
430
431config RESET_UNIPHIER_GLUE
432	tristate "Reset driver in glue layer for UniPhier SoCs"
433	depends on (ARCH_UNIPHIER || COMPILE_TEST) && OF
434	default ARCH_UNIPHIER
435	select RESET_SIMPLE
436	help
437	  Support for peripheral core reset included in its own glue layer
438	  on UniPhier SoCs. Say Y if you want to control reset signals
439	  provided by the glue layer.
440
441config RESET_ZYNQ
442	bool "ZYNQ Reset Driver" if COMPILE_TEST
443	default ARCH_ZYNQ
444	help
445	  This enables the reset controller driver for Xilinx Zynq SoCs.
446
447config RESET_ZYNQMP
448	bool "ZYNQMP Reset Driver" if COMPILE_TEST
449	default ARCH_ZYNQMP
450	help
451	  This enables the reset controller driver for Xilinx ZynqMP SoCs.
452
453source "drivers/reset/amlogic/Kconfig"
454source "drivers/reset/hisilicon/Kconfig"
455source "drivers/reset/spacemit/Kconfig"
456source "drivers/reset/starfive/Kconfig"
457source "drivers/reset/sti/Kconfig"
458source "drivers/reset/tegra/Kconfig"
459
460endif
461