1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Erik Theisen, Wave 7 Optics, etheisen@mindspring.com.
8 * Watchdog functions and macros.
16 * Reset the watchdog timer, always returns 0
18 * This function is here since it is shared between board_f() and board_r(),
19 * and the legacy arch/<arch>/board.c code.
21 int init_func_watchdog_reset(void);
23 #if defined(CONFIG_WATCHDOG) || defined(CONFIG_HW_WATCHDOG)
24 #define INIT_FUNC_WATCHDOG_INIT init_func_watchdog_init,
25 #define INIT_FUNC_WATCHDOG_RESET init_func_watchdog_reset,
27 #define INIT_FUNC_WATCHDOG_INIT
28 #define INIT_FUNC_WATCHDOG_RESET
31 #if defined(CONFIG_HW_WATCHDOG) && defined(CONFIG_WATCHDOG)
32 # error "Configuration error: CONFIG_HW_WATCHDOG and CONFIG_WATCHDOG can't be used together."
36 * Prototypes from $(CPU)/cpu.c.
39 #if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG)
40 void hw_watchdog_init(void);
43 #if defined(CONFIG_MPC85xx)
44 void init_85xx_watchdog(void);
46 #endif /* _WATCHDOG_H_ */