mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-08 02:07:55 +01:00
Merge "ipq806x: Enabled HW Watchdog"
This commit is contained in:
commit
bfa4e09dd3
2 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@
|
|||
|
||||
#undef CONFIG_BOARD_EARLY_INIT_F
|
||||
|
||||
#undef CONFIG_HW_WATCHDOG
|
||||
#define CONFIG_HW_WATCHDOG
|
||||
|
||||
/* Environment */
|
||||
#define CONFIG_MSM_PCOMM
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue