Skip to content
Snippets Groups Projects
Commit 8640c984 authored by Stefano Babic's avatar Stefano Babic Committed by Albert ARIBAUD
Browse files

MX31: qong: add watchdog


Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
parent 2cf36ae7
No related branches found
No related tags found
No related merge requests found
......@@ -30,9 +30,17 @@
#include <fsl_pmic.h>
#include <mxc_gpio.h>
#include "qong_fpga.h"
#include <watchdog.h>
DECLARE_GLOBAL_DATA_PTR;
#ifdef CONFIG_HW_WATCHDOG
void hw_watchdog_reset(void)
{
mxc_hw_watchdog_reset();
}
#endif
int dram_init (void)
{
/* dram_init must store complete ramsize in gd->ram_size */
......@@ -202,6 +210,10 @@ int board_late_init(void)
pmic_reg_write(REG_POWER_CTL0, val | COINCHEN);
pmic_reg_write(REG_INT_STATUS1, RTCRSTI);
#ifdef CONFIG_HW_WATCHDOG
mxc_hw_watchdog_enable();
#endif
return 0;
}
......
......@@ -52,6 +52,7 @@
#define CONFIG_SYS_MX31_UART1 1
#define CONFIG_MXC_GPIO
#define CONFIG_HW_WATCHDOG
#define CONFIG_MXC_SPI
#define CONFIG_DEFAULT_SPI_BUS 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment