f6d60038b897307cac940d87de82d6c3bf56c5e8
[platform/kernel/u-boot.git] / drivers / sysreset / Kconfig
1 #
2 # System reset devices
3 #
4
5 menu "System reset device drivers"
6
7 config SYSRESET
8         bool "Enable support for system reset drivers"
9         depends on DM
10         help
11           Enable system reset drivers which can be used to reset the CPU or
12           board. Each driver can provide a reset method which will be called
13           to effect a reset. The uclass will try all available drivers when
14           reset_walk() is called.
15
16 config SPL_SYSRESET
17         bool "Enable support for system reset drivers in SPL mode"
18         depends on SYSRESET && SPL_DM
19         help
20           Enable system reset drivers which can be used to reset the CPU or
21           board. Each driver can provide a reset method which will be called
22           to effect a reset. The uclass will try all available drivers when
23           reset_walk() is called.
24
25 config TPL_SYSRESET
26         bool "Enable support for system reset drivers in TPL mode"
27         depends on SYSRESET && TPL_DM
28         help
29           Enable system reset drivers which can be used to reset the CPU or
30           board. Each driver can provide a reset method which will be called
31           to effect a reset. The uclass will try all available drivers when
32           reset_walk() is called.
33
34 if SYSRESET
35
36 config SYSRESET_CMD_RESET
37         bool "sysreset implementation of the reset command"
38         default y
39         help
40           Enable sysreset implementation of the reset command.
41
42 if CMD_POWEROFF
43
44 config SYSRESET_CMD_POWEROFF
45         bool "sysreset implementation of the poweroff command"
46         help
47           This should be selected by the appropriate PMIC driver if
48           the poweroff command is enabled.
49
50 endif
51
52 config POWEROFF_GPIO
53         bool "Enable support for GPIO poweroff driver"
54         select DM_GPIO
55         help
56           Support for system poweroff using a GPIO pin. This can be used
57           for systems having a single GPIO to trigger a system poweroff.
58
59 config SYSRESET_GPIO
60         bool "Enable support for GPIO reset driver"
61         select DM_GPIO
62         help
63           Reset support via GPIO pin connected reset logic. This is used for
64           example on Microblaze where reset logic can be controlled via GPIO
65           pin which triggers cpu reset.
66
67 config SYSRESET_MICROBLAZE
68         bool "Enable support for Microblaze soft reset"
69         depends on MICROBLAZE
70         help
71           This is soft reset on Microblaze which does jump to 0x0 address.
72
73 config SYSRESET_OCTEON
74         bool "Enable support for Marvell Octeon SoC family"
75         depends on ARCH_OCTEON
76         help
77           This enables the system reset driver support for Marvell Octeon
78           SoCs.
79
80 config SYSRESET_PSCI
81         bool "Enable support for PSCI System Reset"
82         depends on ARM_PSCI_FW
83         select SPL_ARM_PSCI_FW if SPL
84         help
85           Enable PSCI SYSTEM_RESET function call.  To use this, PSCI firmware
86           must be running on your system.
87
88 config SYSRESET_SBI
89         bool "Enable support for SBI System Reset"
90         depends on RISCV_SMODE && SBI_V02
91         select SYSRESET_CMD_POWEROFF if CMD_POWEROFF
92         help
93           Enable system reset and poweroff via the SBI system reset extension.
94           The extension was introduced in version 0.3 of the SBI specification.
95
96           If the SBI implementation provides the extension, is board specific.
97           The RISC-V platform specification mandates the extension for rich
98           operating system platforms.
99
100 config SYSRESET_SOCFPGA
101         bool "Enable support for Intel SOCFPGA family"
102         depends on ARCH_SOCFPGA && (TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10)
103         help
104           This enables the system reset driver support for Intel SOCFPGA SoCs
105           (Cyclone 5, Arria 5 and Arria 10).
106
107 config SYSRESET_SOCFPGA_SOC64
108         bool "Enable support for Intel SOCFPGA SoC64 family (Stratix10/Agilex)"
109         depends on ARCH_SOCFPGA && TARGET_SOCFPGA_SOC64
110         help
111           This enables the system reset driver support for Intel SOCFPGA
112           SoC64 SoCs.
113
114 config SYSRESET_TI_SCI
115         bool "TI System Control Interface (TI SCI) system reset driver"
116         depends on TI_SCI_PROTOCOL
117         help
118           This enables the system reset driver support over TI System Control
119           Interface available on some new TI's SoCs.
120
121 config SYSRESET_SYSCON
122         bool "Enable support for mfd syscon reboot driver"
123         select REGMAP
124         select SYSCON
125         help
126           Reboot support for generic SYSCON mapped register reset.
127
128 config SYSRESET_WATCHDOG
129         bool "Enable support for watchdog reboot driver"
130         select WDT
131         help
132           Reboot support for generic watchdog reset.
133
134 config SYSRESET_WATCHDOG_AUTO
135         bool "Automatically register first watchdog with sysreset"
136         depends on SYSRESET_WATCHDOG
137         help
138           If enabled, the first watchdog (as selected by the watchdog uclass)
139           will automatically be registered with the watchdog reboot driver.
140
141 config SYSRESET_RESETCTL
142         bool "Enable support for reset controller reboot driver"
143         select DM_RESET
144         help
145           Reboot support using generic reset controller.
146
147 config SYSRESET_X86
148         bool "Enable support for x86 processor reboot driver"
149         depends on X86
150         help
151           Reboot support for generic x86 processor reset.
152
153 config SYSRESET_SPL_X86
154         bool "Enable support for x86 processor reboot driver in SPL"
155         depends on X86
156         help
157           Reboot support for generic x86 processor reset in SPL.
158
159 config SYSRESET_TPL_X86
160         bool "Enable support for x86 processor reboot driver in TPL"
161         depends on X86
162         help
163           Reboot support for generic x86 processor reset in TPL.
164
165 config SYSRESET_MPC83XX
166         bool "Enable support MPC83xx SoC family reboot driver"
167         help
168           Reboot support for NXP MPC83xx SoCs.
169
170 endif
171
172 endmenu