Merge "ipq806x: Enabled HW Watchdog"

This commit is contained in:
Linux Build Service Account 2018-02-12 10:12:15 -08:00 committed by Gerrit - the friendly Code Review server
commit bfa4e09dd3
2 changed files with 9 additions and 1 deletions

View file

@ -30,6 +30,7 @@
#include "ipq806x.h"
#include "qca_common.h"
#include <asm/arch-qca-common/scm.h>
#include <watchdog.h>
#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;

View file

@ -85,7 +85,7 @@
#undef CONFIG_BOARD_EARLY_INIT_F
#undef CONFIG_HW_WATCHDOG
#define CONFIG_HW_WATCHDOG
/* Environment */
#define CONFIG_MSM_PCOMM