From a87141b204cb6c69ed3ad0c6f9e570e71319315d Mon Sep 17 00:00:00 2001 From: Antony Arun T Date: Mon, 12 Feb 2018 11:14:25 +0530 Subject: [PATCH] ipq806x: Enabled HW Watchdog Change-Id: I0850c1082be7dcbd1301acca5ed345d6db72aa2e Signed-off-by: Antony Arun T --- board/qca/arm/ipq806x/ipq806x.c | 8 ++++++++ include/configs/ipq806x.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/board/qca/arm/ipq806x/ipq806x.c b/board/qca/arm/ipq806x/ipq806x.c index 0851f82d4e..c96a7557d9 100644 --- a/board/qca/arm/ipq806x/ipq806x.c +++ b/board/qca/arm/ipq806x/ipq806x.c @@ -30,6 +30,7 @@ #include "ipq806x.h" #include "qca_common.h" #include +#include #define DLOAD_MAGIC_COOKIE_1 0xE47B337D #define DLOAD_MAGIC_COOKIE_2 0x0501CAB0 @@ -179,6 +180,13 @@ void reset_cpu(unsigned long a) while(1); } +#ifdef CONFIG_HW_WATCHDOG +void hw_watchdog_reset(void) +{ + writel(1, APCS_WDT0_RST); +} +#endif + int board_mmc_init(bd_t *bis) { int node, gpio_node; diff --git a/include/configs/ipq806x.h b/include/configs/ipq806x.h index 0d68e9f235..0411103043 100644 --- a/include/configs/ipq806x.h +++ b/include/configs/ipq806x.h @@ -85,7 +85,7 @@ #undef CONFIG_BOARD_EARLY_INIT_F -#undef CONFIG_HW_WATCHDOG +#define CONFIG_HW_WATCHDOG /* Environment */ #define CONFIG_MSM_PCOMM