[U-Boot] [PATCH 1/3] board: engicam: Add watchdog support on Engicam

Shyam Saini shyam.saini at amarulasolutions.com
Wed Feb 6 07:53:35 UTC 2019


This patch adds watchdog support for engicam imx6 family
of boards.

Signed-off-by: Shyam Saini <shyam.saini at amarulasolutions.com>
---
 board/engicam/common/board.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/board/engicam/common/board.c b/board/engicam/common/board.c
index 5dccb17cb271..7486f0ac2d9c 100644
--- a/board/engicam/common/board.c
+++ b/board/engicam/common/board.c
@@ -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;
 }
 
-- 
2.11.0



More information about the U-Boot mailing list