blob: 90bc5653ee332033db1ee4c7fbc914231f157f88 [file] [log] [blame]
maxims@google.com0753bc22017-04-17 12:00:21 -07001menu "Watchdog Timer Support"
Ye Li253531b2017-02-22 16:21:48 +08002
Shreenidhi Shedi42537ca2018-02-21 16:50:20 +01003config WATCHDOG
4 bool "Enable U-Boot watchdog reset"
Christophe Leroy7e00e902020-02-26 16:17:52 +00005 depends on !HW_WATCHDOG
Stefan Roesec2fd0ca2022-08-18 13:22:46 +02006 select CYCLIC
Simon Glass8ada14b2024-07-31 08:44:08 -06007 imply SPL_CYCLIC if SPL
Shreenidhi Shedi42537ca2018-02-21 16:50:20 +01008 help
9 This option enables U-Boot watchdog support where U-Boot is using
10 watchdog_reset function to service watchdog device in U-Boot. Enable
11 this option if you want to service enabled watchdog by U-Boot. Disable
12 this option if you want U-Boot to start watchdog but never service it.
13
Pali Rohár830d29a2021-03-09 14:26:56 +010014config WATCHDOG_AUTOSTART
15 bool "Automatically start watchdog timer"
16 depends on WDT
Heinrich Schuchardt86798ee2021-11-05 19:34:31 +010017 default n if ARCH_SUNXI
Pali Rohár830d29a2021-03-09 14:26:56 +010018 default y
19 help
20 Automatically start watchdog timer and start servicing it during
21 init phase. Enabled by default. Disable this option if you want
22 to compile U-Boot with CONFIG_WDT support but do not want to
23 activate watchdog, like when CONFIG_WDT option is disabled. You
24 would be able to start watchdog manually by 'wdt' command. Useful
25 when you want to have support for 'wdt' command but do not want
26 to have watchdog enabled by default.
27
Heiko Schocherca51ef72019-09-30 09:33:43 +020028config WATCHDOG_TIMEOUT_MSECS
29 int "Watchdog timeout in msec"
Tom Rini8ba59602021-09-09 07:54:50 -040030 default 128000 if ARCH_MX31 || ARCH_MX5 || ARCH_MX6
Heiko Schocherca51ef72019-09-30 09:33:43 +020031 default 128000 if ARCH_MX7 || ARCH_VF610
32 default 30000 if ARCH_SOCFPGA
Samuel Holland93d34fa2021-08-22 13:53:27 -050033 default 16000 if ARCH_SUNXI
Tom Riniad242342023-01-10 11:19:44 -050034 default 5376 if ULP_WATCHDOG
ETIENNE DUBLE89c4fec2023-01-25 10:57:28 +010035 default 15000 if ARCH_BCM283X
Heiko Schocherca51ef72019-09-30 09:33:43 +020036 default 60000
37 help
38 Watchdog timeout in msec
39
Paolo Pisati45a6d232017-02-10 17:28:05 +010040config HW_WATCHDOG
41 bool
42
Patrice Chotardb3134ff2019-04-30 17:26:20 +020043config IMX_WATCHDOG
44 bool "Enable Watchdog Timer support for IMX and LSCH2 of NXP"
Marek Vasut4b969de2019-06-09 03:46:22 +020045 select HW_WATCHDOG if !WDT
Patrice Chotardb3134ff2019-04-30 17:26:20 +020046 help
Michal Simek92a19be2020-03-11 12:26:53 +010047 Select this to enable the IMX and LSCH2 of Layerscape watchdog
48 driver.
Patrice Chotardb3134ff2019-04-30 17:26:20 +020049
Michael Walle95b3d6a2020-09-24 10:09:15 +020050config WATCHDOG_RESET_DISABLE
51 bool "Disable reset watchdog"
52 depends on IMX_WATCHDOG
53 help
54 Disable reset watchdog, which can let WATCHDOG_RESET invalid, so
55 that the watchdog will not be fed in u-boot.
56
Tom Rini897f7062017-05-12 22:33:24 -040057config OMAP_WATCHDOG
58 bool "TI OMAP watchdog driver"
59 depends on ARCH_OMAP2PLUS
60 select HW_WATCHDOG
Tom Rini897f7062017-05-12 22:33:24 -040061 help
62 Say Y here to enable the OMAP3+ watchdog driver.
Felipe Balbi8f8a12d2017-07-05 20:33:20 +030063
Ye Li253531b2017-02-22 16:21:48 +080064config ULP_WATCHDOG
65 bool "i.MX7ULP watchdog"
66 help
67 Say Y here to enable i.MX7ULP watchdog driver.
68
Marek Vasut8941f842019-06-27 00:26:34 +020069config DESIGNWARE_WATCHDOG
70 bool "Designware watchdog timer support"
Tom Rini02854552022-06-15 12:03:46 -040071 depends on WDT
72 default y if ROCKCHIP_RK3399
Marek Vasut8941f842019-06-27 00:26:34 +020073 help
Michal Simek92a19be2020-03-11 12:26:53 +010074 Enable this to support Designware Watchdog Timer IP, present e.g.
75 on Altera SoCFPGA SoCs.
Marek Vasut8941f842019-06-27 00:26:34 +020076
maxims@google.com0753bc22017-04-17 12:00:21 -070077config WDT
78 bool "Enable driver model for watchdog timer drivers"
79 depends on DM
Stefan Roese06985282019-04-11 15:58:44 +020080 imply WATCHDOG
Stefan Roesec2fd0ca2022-08-18 13:22:46 +020081 select CYCLIC
maxims@google.com0753bc22017-04-17 12:00:21 -070082 help
83 Enable driver model for watchdog timer. At the moment the API
84 is very simple and only supports four operations:
Patrice Chotard8d4f91b2019-04-25 12:57:28 +020085 start, stop, reset and expire_now (expire immediately).
maxims@google.com0753bc22017-04-17 12:00:21 -070086 What exactly happens when the timer expires is up to a particular
87 device/driver.
88
Mark Kettenisee327d12022-01-12 19:55:15 +010089config WDT_APPLE
90 bool "Apple watchdog timer support"
91 depends on WDT
92 default y if ARCH_APPLE
93 help
94 Enable support for the watchdog timer on Apple SoCs.
95 The watchdog will perform a full SoC reset resulting in a
96 reboot of the entire system.
97
Marek Behún2b69a672018-04-24 17:21:30 +020098config WDT_ARMADA_37XX
99 bool "Marvell Armada 37xx watchdog timer support"
100 depends on WDT && ARMADA_3700
101 help
Michal Simek92a19be2020-03-11 12:26:53 +0100102 Enable this to support Watchdog Timer on Marvell Armada 37xx SoC.
103 There are 4 possible clocks which can be used on these SoCs. This
104 driver uses the second clock (ID 1), assuming that so will also
105 Linux's driver.
Marek Behún2b69a672018-04-24 17:21:30 +0200106
maxims@google.com1eb0a462017-04-17 12:00:22 -0700107config WDT_ASPEED
108 bool "Aspeed ast2400/ast2500 watchdog timer support"
109 depends on WDT
110 default y if ARCH_ASPEED
111 help
112 Select this to enable watchdog timer for Aspeed ast2500/ast2400 devices.
113 The watchdog timer is stopped when initialized. It performs reset, either
114 full SoC reset or CPU or just some peripherals, based on the flags.
115 It currently does not support Boot Flash Addressing Mode Detection or
116 Second Boot.
117
Chia-Wei, Wang337d95c2020-12-14 13:54:25 +0800118config WDT_AST2600
119 bool "Aspeed AST2600 watchdog timer support"
120 depends on WDT
121 default y if ASPEED_AST2600
122 help
123 Select this to enable watchdog timer for Aspeed ast2500/ast2400 devices.
124 The watchdog timer is stopped when initialized. It performs reset, either
125 full SoC reset or CPU or just some peripherals, based on the flags.
126
Patrice Chotardb3134ff2019-04-30 17:26:20 +0200127config WDT_AT91
128 bool "AT91 watchdog timer support"
129 depends on WDT
130 help
Michal Simek92a19be2020-03-11 12:26:53 +0100131 Select this to enable Microchip watchdog timer, which can be found on
132 some AT91 devices.
Patrice Chotardb3134ff2019-04-30 17:26:20 +0200133
Randolph4350e992024-01-24 14:21:32 +0800134config WDT_ATCWDT200
135 bool "Andes watchdog timer support"
136 depends on WDT
137 help
138 Select this to enable Andes ATCWDT200 watchdog timer
139
Álvaro Fernández Rojas77331932017-05-16 18:29:09 +0200140config WDT_BCM6345
141 bool "BCM6345 watchdog timer support"
William Zhang4dcd23f2022-08-22 11:31:43 -0700142 depends on WDT && (ARCH_BMIPS || BCM6856 || \
William Zhang8c1a9c72022-08-22 11:49:08 -0700143 BCM6858 || BCM63158 || BCM6855)
Álvaro Fernández Rojas77331932017-05-16 18:29:09 +0200144 help
145 Select this to enable watchdog timer for BCM6345 SoCs.
146 The watchdog timer is stopped when initialized.
147 It performs full SoC reset.
148
Chris Packham017af7f2021-03-05 16:32:58 +1300149config WDT_BOOKE
150 bool "PowerPC Book-E watchdog driver"
151 depends on WDT && MPC85xx
152 help
153 Watchdog driver for PowerPC Book-E chips, such as the Freescale
154 MPC85xx SOCs and the IBM PowerPC 440.
155
Patrice Chotardb3134ff2019-04-30 17:26:20 +0200156config WDT_CDNS
157 bool "Cadence watchdog timer support"
158 depends on WDT
159 imply WATCHDOG
160 help
Michal Simek92a19be2020-03-11 12:26:53 +0100161 Select this to enable Cadence watchdog timer, which can be found on some
162 Xilinx Microzed Platform.
Patrice Chotardb3134ff2019-04-30 17:26:20 +0200163
Jason Li7f54b832020-01-30 12:34:57 -0800164config WDT_CORTINA
165 bool "Cortina Access CAxxxx watchdog timer support"
166 depends on WDT
167 help
168 Cortina Access CAxxxx watchdog timer support.
169 This driver support all CPU ISAs supported by Cortina
Michal Simek92a19be2020-03-11 12:26:53 +0100170 Access CAxxxx SoCs.
Jason Li7f54b832020-01-30 12:34:57 -0800171
Fabio Estevam52612182024-09-17 10:55:50 -0300172config WDT_DA9063
173 bool "DA9063 watchdog timer support"
174 depends on WDT && DM_PMIC_DA9063
175 help
176 Enable support for the watchdog timer in Dialog DA9063.
177
Rasmus Villemoes2ac84902021-08-19 11:57:04 +0200178config WDT_GPIO
179 bool "External gpio watchdog support"
180 depends on WDT
181 depends on DM_GPIO
182 help
183 Support for external watchdog fed by toggling a gpio. See
184 doc/device-tree-bindings/watchdog/gpio-wdt.txt for
185 information on how to describe the watchdog in device tree.
186
Pali Rohár0a095fc2022-05-02 18:41:07 +0200187config WDT_MAX6370
188 bool "MAX6370 watchdog timer support"
189 depends on WDT
190 select DM_GPIO
191 help
192 Select this to enable max6370 watchdog timer.
193
Angelo Dureghello9b8bc512023-06-24 22:30:18 +0200194config WDT_MCF
195 bool "ColdFire family watchdog timer support"
196 depends on WDT
197 help
198 Select this to enable ColdFire watchdog timer,
199 which supports mcf52x2 mcf532x mcf523x families.
200
Philippe Boos818055f2022-06-13 16:00:56 +0200201config WDT_MESON_GXBB
202 bool "Amlogic watchdog timer support"
203 depends on WDT
204 help
205 Select this to enable Meson watchdog timer,
206 which can be found on some Amlogic platforms.
207
Christophe Leroy21eaade2023-04-03 10:27:39 +0200208config WDT_MPC8xxx
209 bool "MPC8xxx watchdog timer support"
Christophe Leroy0fd79132023-04-03 10:39:59 +0200210 depends on WDT && (MPC8xx || MPC83xx)
Patrice Chotardb3134ff2019-04-30 17:26:20 +0200211 help
Christophe Leroy21eaade2023-04-03 10:27:39 +0200212 Select this to enable mpc8xxx watchdog timer
Patrice Chotardb3134ff2019-04-30 17:26:20 +0200213
Christophe Leroy26e8ebc2023-04-03 10:27:39 +0200214config WDT_MPC8xxx_BME
215 bool "Enable MPC8xx Bus Monitoring"
216 depends on WDT_MPC8xxx && MPC8xx
217 help
218 Select this to enable mpc8xx Bus Monitor.
219
220config WDT_MPC8xxx_BMT
221 int "MPC8xx Bus Monitor Timing" if WDT_MPC8xxx_BME
222 range 0 255
223 default 255
224 depends on WDT_MPC8xxx
225 help
226 Bus monitor timing. Defines the timeout period, in 8 system clock
227 resolution, for the bus monitor.
228
229 Maximum timeout is 2,040 clocks (255 x 8).
Patrice Chotardb3134ff2019-04-30 17:26:20 +0200230
Weijie Gaobba4ec82020-11-12 16:36:28 +0800231config WDT_MT7620
232 bool "MediaTek MT7620 watchdog timer support"
233 depends on WDT && SOC_MT7620
234 help
235 Select this to enable watchdog timer on MediaTek MT7620 and earlier
236 SoC chips.
237
Patrice Chotardb3134ff2019-04-30 17:26:20 +0200238config WDT_MT7621
239 bool "MediaTek MT7621 watchdog timer support"
Weijie Gaofe3d57a2022-05-20 11:23:19 +0800240 depends on WDT && (SOC_MT7621 || SOC_MT7628)
Patrice Chotardb3134ff2019-04-30 17:26:20 +0200241 help
Michal Simek92a19be2020-03-11 12:26:53 +0100242 Select this to enable Ralink / Mediatek watchdog timer,
243 which can be found on some MediaTek chips.
Patrice Chotardb3134ff2019-04-30 17:26:20 +0200244
245config WDT_MTK
246 bool "MediaTek watchdog timer support"
247 depends on WDT && ARCH_MEDIATEK
248 help
249 Select this to enable watchdog timer for MediaTek SoCs.
250 The watchdog timer is stopped when initialized.
251 It performs full SoC reset.
252
Jim Liue885d092022-04-01 17:59:39 +0800253config WDT_NPCM
254 bool "Nuvoton watchdog timer support"
255 depends on WDT && ARCH_NPCM
256 help
257 This enables Nuvoton npcm7xx/npcm8xx watchdog timer driver,
258 The watchdog timer is stopped when initialized.
259 It performs full SoC reset.
260
Suneel Garapatiaf6ba902019-10-21 16:09:36 -0700261config WDT_OCTEONTX
Stefan Roese1aa2b852022-05-11 09:08:47 +0200262 bool "Octeon core watchdog support"
263 depends on WDT && (ARCH_OCTEON || ARCH_OCTEONTX || ARCH_OCTEONTX2)
Suneel Garapatiaf6ba902019-10-21 16:09:36 -0700264 default y
265 imply WATCHDOG
266 help
Stefan Roese1aa2b852022-05-11 09:08:47 +0200267 This enables the Octeon watchdog driver, which can be found on
268 various Octeon parts such as Octeon II/III and OcteonTX/TX2.
Suneel Garapatiaf6ba902019-10-21 16:09:36 -0700269
Suniel Mahesh7659ea32019-07-31 21:54:06 +0530270config WDT_OMAP3
Michal Simek92a19be2020-03-11 12:26:53 +0100271 bool "TI OMAP watchdog timer support"
272 depends on WDT && ARCH_OMAP2PLUS
273 default y if AM33XX
274 help
Suniel Mahesh7659ea32019-07-31 21:54:06 +0530275 This enables OMAP3+ watchdog timer driver, which can be
276 found on some TI chipsets and inline with driver model.
277
Marek Behún2ab77042017-06-09 19:28:41 +0200278config WDT_ORION
279 bool "Orion watchdog timer support"
280 depends on WDT
Chris Packham8e427ba2019-02-18 10:30:53 +1300281 select CLK
Marek Behún2ab77042017-06-09 19:28:41 +0200282 help
Michal Simek92a19be2020-03-11 12:26:53 +0100283 Select this to enable Orion watchdog timer, which can be found on some
284 Marvell Armada chips.
Marek Behún2ab77042017-06-09 19:28:41 +0200285
Jan Kiszkad388f362020-06-23 13:15:08 +0200286config WDT_K3_RTI
287 bool "Texas Instruments K3 RTI watchdog"
288 depends on WDT && ARCH_K3
289 help
290 Say Y here if you want to include support for the K3 watchdog
291 timer (RTI module) available in the K3 generation of processors.
292
Jan Kiszkaf3efb1d2021-09-18 08:17:55 +0200293if WDT_K3_RTI
294
295config WDT_K3_RTI_LOAD_FW
296 bool "Load watchdog firmware"
297 depends on REMOTEPROC
298 help
299 Automatically load the specified firmware image into the MCU R5F
300 core 0. On the AM65x, this firmware is supposed to handle the expiry
301 of the watchdog timer, typically by resetting the system.
302
303config WDT_K3_RTI_FW_FILE
304 string "Watchdog firmware image file"
305 default "k3-rti-wdt.fw"
306 depends on WDT_K3_RTI_LOAD_FW
307 help
308 Firmware image to be embedded into U-Boot and loaded on watchdog
309 start.
310
311endif
312
Patrice Chotardb3134ff2019-04-30 17:26:20 +0200313config WDT_SANDBOX
314 bool "Enable Watchdog Timer support for Sandbox"
315 depends on SANDBOX && WDT
316 help
317 Enable Watchdog Timer support in Sandbox. This is a dummy device that
318 can be probed and supports all of the methods of WDT, but does not
319 really do anything.
320
Rasmus Villemoes10107ef2022-09-27 11:54:04 +0200321config WDT_ALARM_SANDBOX
322 bool "Enable SIGALRM-based Watchdog Timer support for Sandbox"
323 depends on SANDBOX && WDT
324 help
325 Enable support for a SIGALRM-based watchdog timer in Sandbox. This is
326 a watchdog device based on the host OS' alarm() function, which will
327 kill the sandbox with SIGALRM unless properly maintained.
328
Zhao Qiangf27d73e2020-07-10 16:55:18 +0800329config WDT_SBSA
330 bool "SBSA watchdog timer support"
331 depends on WDT
332 help
333 Select this to enable SBSA watchdog timer.
334 This driver can operate ARM SBSA Generic Watchdog as a single stage.
335 In the single stage mode, when the timeout is reached, your system
336 will be reset by WS1. The first signal (WS0) is ignored.
337
Michael Wallef606c9a2021-11-15 23:45:43 +0100338config WDT_SL28CPLD
339 bool "sl28cpld watchdog timer support"
340 depends on WDT && SL28CPLD
341 help
342 Enable support for the watchdog timer in the Kontron sl28cpld
343 management controller.
344
Qiang Zhao0652d9f2019-05-07 03:16:09 +0000345config WDT_SP805
346 bool "SP805 watchdog timer support"
347 depends on WDT
348 help
Michal Simek92a19be2020-03-11 12:26:53 +0100349 Select this to enable SP805 watchdog timer, which can be found on some
350 nxp layerscape chips.
Qiang Zhao0652d9f2019-05-07 03:16:09 +0000351
Patrice Chotard8c1007a2019-04-30 17:26:22 +0200352config WDT_STM32MP
353 bool "IWDG watchdog driver for STM32 MP's family"
354 depends on WDT
355 imply WATCHDOG
356 help
357 Enable the STM32 watchdog (IWDG) driver. Enable support to
358 configure STM32's on-SoC watchdog.
359
Chanho Parkda264552023-11-06 08:13:16 +0900360config WDT_STARFIVE
361 bool "StarFive watchdog timer support"
362 depends on WDT
363 imply WATCHDOG
364 help
365 Enable support for the watchdog timer of StarFive JH7110 SoC.
366
Samuel Holland93d34fa2021-08-22 13:53:27 -0500367config WDT_SUNXI
368 bool "Allwinner sunxi watchdog timer support"
369 depends on WDT && ARCH_SUNXI
370 default y
371 help
372 Enable support for the watchdog timer in Allwinner sunxi SoCs.
373
ETIENNE DUBLE89c4fec2023-01-25 10:57:28 +0100374config WDT_BCM2835
375 bool "Broadcom 2835 watchdog timer support"
376 depends on WDT && ARCH_BCM283X
377 default y
378 help
379 Enable support for the watchdog timer in Broadcom 283X SoCs such
380 as Raspberry Pi boards.
381
Shreenidhi Shedie0e9caa2018-07-15 02:05:41 +0530382config XILINX_TB_WATCHDOG
383 bool "Xilinx Axi watchdog timer support"
384 depends on WDT
385 imply WATCHDOG
386 help
Michal Simek92a19be2020-03-11 12:26:53 +0100387 Select this to enable Xilinx Axi watchdog timer, which can be found on some
388 Xilinx Microblaze Platforms.
Shreenidhi Shedie0e9caa2018-07-15 02:05:41 +0530389
Ashok Reddy Soma50283582020-03-11 03:06:04 -0600390config WDT_XILINX
391 bool "Xilinx window watchdog timer support"
392 depends on WDT && ARCH_VERSAL
393 select REGMAP
394 imply WATCHDOG
395 help
396 Select this to enable Xilinx window watchdog timer, which can be found on
397 Xilinx Versal Platforms.
398
Andy Shevchenkoc974a3d2019-06-21 13:28:08 +0300399config WDT_TANGIER
400 bool "Intel Tangier watchdog timer support"
401 depends on WDT && INTEL_MID
402 help
403 This enables support for watchdog controller available on
404 Intel Tangier SoC. If you're using a board with Intel Tangier
405 SoC, say Y here.
406
Lionel Debieve0d5990a2023-04-14 15:49:15 +0200407config WDT_ARM_SMC
408 bool "ARM SMC watchdog timer support"
409 depends on WDT && ARM_SMCCC
410 imply WATCHDOG
411 help
412 Select this to enable Arm SMC watchdog timer. This watchdog will manage
413 a watchdog based on ARM SMCCC communication.
414
Marek Vasut6874cb72019-06-09 03:46:21 +0200415config SPL_WDT
416 bool "Enable driver model for watchdog timer drivers in SPL"
417 depends on SPL_DM
Simon Glass8ada14b2024-07-31 08:44:08 -0600418 select SPL_CYCLIC if CYCLIC
Marek Vasut6874cb72019-06-09 03:46:21 +0200419 help
420 Enable driver model for watchdog timer in SPL.
421 This is similar to CONFIG_WDT in U-Boot.
422
Sergei Antonov6e44bb02023-04-12 14:01:58 +0300423config WDT_FTWDT010
424 bool "Faraday Technology ftwdt010 watchdog timer support"
425 depends on WDT
426 imply WATCHDOG
427 help
428 Faraday Technology ftwdt010 watchdog is an architecture independent
429 watchdog. It is usually used in SoC chip design.
Ye Li253531b2017-02-22 16:21:48 +0800430endmenu