summaryrefslogtreecommitdiff
path: root/include/watchdog.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/watchdog.h')
-rw-r--r--include/watchdog.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/watchdog.h b/include/watchdog.h
index 14fa5fda25..813cc8f2a5 100644
--- a/include/watchdog.h
+++ b/include/watchdog.h
@@ -49,7 +49,13 @@ int init_func_watchdog_reset(void);
*/
#if defined(CONFIG_WATCHDOG)
#if defined(__ASSEMBLY__)
- #define WATCHDOG_RESET bl watchdog_reset
+ /* Don't require the watchdog to be enabled in SPL */
+ #if defined(CONFIG_SPL_BUILD) && \
+ !defined(CONFIG_SPL_WATCHDOG)
+ #define WATCHDOG_RESET /*XXX DO_NOT_DEL_THIS_COMMENT*/
+ #else
+ #define WATCHDOG_RESET bl watchdog_reset
+ #endif
#else
/* Don't require the watchdog to be enabled in SPL */
#if defined(CONFIG_SPL_BUILD) && \