]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: engicam: Add watchdog support on Engicam
authorShyam Saini <shyam.saini@amarulasolutions.com>
Wed, 6 Feb 2019 07:53:35 +0000 (13:23 +0530)
committerStefano Babic <sbabic@denx.de>
Wed, 13 Mar 2019 08:14:35 +0000 (09:14 +0100)
This patch adds watchdog support for engicam imx6 family
of boards.

Signed-off-by: Shyam Saini <shyam.saini@amarulasolutions.com>
board/engicam/common/board.c

index 5dccb17cb27114396b116c5071c5293ccd2c2cf1..7486f0ac2d9cfaa6a0f65e7ed8d2076466fdaf88 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <mmc.h>
 #include <asm/arch/sys_proto.h>
+#include <watchdog.h>
 
 #include "board.h"
 
@@ -88,6 +89,10 @@ int board_late_init(void)
 
        setenv_fdt_file();
 
+#ifdef CONFIG_HW_WATCHDOG
+       hw_watchdog_init();
+#endif
+
        return 0;
 }