Skip to content
Snippets Groups Projects
Commit 14a380a8 authored by Stefan Roese's avatar Stefan Roese Committed by Stefano Babic
Browse files

common/board_f.c: Enable IMX watchdog in init_func_watchdog_init()


Without this patch, the IMX watchdog will not be initialized. And therefor
not active. This patch fixes this by calling hw_watchdog_init() also when
CONFIG_IMX_WATCHDOG is defined.

Signed-off-by: default avatarStefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Acked-by: default avatarHeiko Schocher <hs@denx.de>
parent 9d16c52f
Branches
Tags
No related merge requests found
...@@ -111,7 +111,8 @@ static int init_func_watchdog_init(void) ...@@ -111,7 +111,8 @@ static int init_func_watchdog_init(void)
{ {
# if defined(CONFIG_HW_WATCHDOG) && (defined(CONFIG_BLACKFIN) || \ # if defined(CONFIG_HW_WATCHDOG) && (defined(CONFIG_BLACKFIN) || \
defined(CONFIG_M68K) || defined(CONFIG_MICROBLAZE) || \ defined(CONFIG_M68K) || defined(CONFIG_MICROBLAZE) || \
defined(CONFIG_SH) || defined(CONFIG_AT91SAM9_WATCHDOG)) defined(CONFIG_SH) || defined(CONFIG_AT91SAM9_WATCHDOG) || \
defined(CONFIG_IMX_WATCHDOG))
hw_watchdog_init(); hw_watchdog_init();
# endif # endif
puts(" Watchdog enabled\n"); puts(" Watchdog enabled\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment