2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2009-03-27 22:26:42 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2008
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
|
2018-10-09 18:46:40 +00:00
|
|
|
obj-$(CONFIG_WDT_AT91) += at91sam9_wdt.o
|
2018-07-21 17:47:03 +00:00
|
|
|
ifneq (,$(filter $(SOC), mx25 mx31 mx35 mx5 mx6 mx7 vf610))
|
2013-10-17 08:34:57 +00:00
|
|
|
obj-y += imx_watchdog.o
|
2018-10-18 10:27:45 +00:00
|
|
|
else
|
|
|
|
obj-$(CONFIG_IMX_WATCHDOG) += imx_watchdog.o
|
2012-10-22 15:19:01 +00:00
|
|
|
endif
|
2013-10-17 08:34:57 +00:00
|
|
|
obj-$(CONFIG_S5P) += s5p_wdt.o
|
|
|
|
obj-$(CONFIG_XILINX_TB_WATCHDOG) += xilinx_tb_wdt.o
|
|
|
|
obj-$(CONFIG_OMAP_WATCHDOG) += omap_wdt.o
|
2014-06-10 06:10:21 +00:00
|
|
|
obj-$(CONFIG_DESIGNWARE_WATCHDOG) += designware_wdt.o
|
2017-02-22 08:21:48 +00:00
|
|
|
obj-$(CONFIG_ULP_WATCHDOG) += ulp_wdog.o
|
2019-06-09 01:46:21 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)WDT) += wdt-uclass.o
|
2017-04-17 19:00:21 +00:00
|
|
|
obj-$(CONFIG_WDT_SANDBOX) += sandbox_wdt.o
|
sandbox: add SIGALRM-based watchdog device
In order to test that U-Boot actually maintains the watchdog device(s)
during long-running busy-loops, such as those where we wait for the
user to stop autoboot, we need a watchdog device that actually does
something during those loops; we cannot test that behaviour via the DM
test framework.
So introduce a relatively simple watchdog device which is simply based
on calling the host OS' alarm() function; that has the nice property
that a new call to alarm() simply sets a new deadline, and alarm(0)
cancels any existing alarm. These properties are precisely what we
need to implement start/reset/stop. We install our own handler so that
we get a known message printed if and when the watchdog fires, and by
just invoking that handler directly, we get expire_now for free.
The actual calls to the various OS functions (alarm, signal, raise)
need to be done in os.c, and since the driver code cannot get access
to the values of SIGALRM or SIG_DFL (that would require including a
host header, and that's only os.c which can do that), we cannot simply
do trivial wrappers for signal() and raise(), but instead create
specialized functions just for use by this driver.
Apart from enabling this driver for sandbox{,64}_defconfig, also
enable the wdt command which was useful for hand-testing this new
driver (especially with running u-boot under strace).
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
2022-09-27 09:54:04 +00:00
|
|
|
obj-$(CONFIG_WDT_ALARM_SANDBOX) += sandbox_alarm-wdt.o
|
2022-01-12 18:55:15 +00:00
|
|
|
obj-$(CONFIG_WDT_APPLE) += apple_wdt.o
|
2018-04-24 15:21:30 +00:00
|
|
|
obj-$(CONFIG_WDT_ARMADA_37XX) += armada-37xx-wdt.o
|
2017-04-17 19:00:22 +00:00
|
|
|
obj-$(CONFIG_WDT_ASPEED) += ast_wdt.o
|
2020-12-14 05:54:25 +00:00
|
|
|
obj-$(CONFIG_WDT_AST2600) += ast2600_wdt.o
|
2017-05-16 16:29:09 +00:00
|
|
|
obj-$(CONFIG_WDT_BCM6345) += bcm6345_wdt.o
|
2021-03-05 03:32:58 +00:00
|
|
|
obj-$(CONFIG_WDT_BOOKE) += booke_wdt.o
|
2020-01-30 20:34:57 +00:00
|
|
|
obj-$(CONFIG_WDT_CORTINA) += cortina_wdt.o
|
2017-06-09 17:28:41 +00:00
|
|
|
obj-$(CONFIG_WDT_ORION) += orion_wdt.o
|
2018-02-21 15:50:20 +00:00
|
|
|
obj-$(CONFIG_WDT_CDNS) += cdns_wdt.o
|
2021-08-19 09:57:04 +00:00
|
|
|
obj-$(CONFIG_WDT_GPIO) += gpio_wdt.o
|
2022-05-02 16:41:07 +00:00
|
|
|
obj-$(CONFIG_WDT_MAX6370) += max6370_wdt.o
|
2022-06-13 14:00:56 +00:00
|
|
|
obj-$(CONFIG_WDT_MESON_GXBB) += meson_gxbb_wdt.o
|
2023-04-03 08:27:39 +00:00
|
|
|
obj-$(CONFIG_WDT_MPC8xxx) += mpc8xxx_wdt.o
|
2020-11-12 08:36:28 +00:00
|
|
|
obj-$(CONFIG_WDT_MT7620) += mt7620_wdt.o
|
2018-10-04 11:39:07 +00:00
|
|
|
obj-$(CONFIG_WDT_MT7621) += mt7621_wdt.o
|
2018-11-15 02:07:57 +00:00
|
|
|
obj-$(CONFIG_WDT_MTK) += mtk_wdt.o
|
2022-04-01 09:59:39 +00:00
|
|
|
obj-$(CONFIG_WDT_NPCM) += npcm_wdt.o
|
2019-10-21 23:09:36 +00:00
|
|
|
obj-$(CONFIG_WDT_OCTEONTX) += octeontx_wdt.o
|
2019-07-31 16:24:06 +00:00
|
|
|
obj-$(CONFIG_WDT_OMAP3) += omap_wdt.o
|
2020-07-10 08:55:18 +00:00
|
|
|
obj-$(CONFIG_WDT_SBSA) += sbsa_gwdt.o
|
2020-06-23 11:15:08 +00:00
|
|
|
obj-$(CONFIG_WDT_K3_RTI) += rti_wdt.o
|
2021-11-15 22:45:43 +00:00
|
|
|
obj-$(CONFIG_WDT_SL28CPLD) += sl28cpld-wdt.o
|
2019-05-07 03:16:09 +00:00
|
|
|
obj-$(CONFIG_WDT_SP805) += sp805_wdt.o
|
2019-04-30 15:26:22 +00:00
|
|
|
obj-$(CONFIG_WDT_STM32MP) += stm32mp_wdt.o
|
2021-08-22 18:53:27 +00:00
|
|
|
obj-$(CONFIG_WDT_SUNXI) += sunxi_wdt.o
|
2019-06-21 10:28:08 +00:00
|
|
|
obj-$(CONFIG_WDT_TANGIER) += tangier_wdt.o
|
2020-03-11 09:06:04 +00:00
|
|
|
obj-$(CONFIG_WDT_XILINX) += xilinx_wwdt.o
|