summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/arch-mx31/imx-regs.h
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2011-09-21 03:29:17 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-09-30 22:01:00 +0200
commit610b53e29bf848b545dd9b0a79b692741ff93807 (patch)
tree0dd362b6b809c569c7d558caa063117779f029b9 /arch/arm/include/asm/arch-mx31/imx-regs.h
parent419adbfbcba2f818d84eec6ed3f70173a4d67efa (diff)
downloadtalos-obmc-uboot-610b53e29bf848b545dd9b0a79b692741ff93807.tar.gz
talos-obmc-uboot-610b53e29bf848b545dd9b0a79b692741ff93807.zip
MX31: Disable watchdog during low-power modes
Turn on the watchdog WDZST bit so that watchdog timer does not count during low power modes. Prior to applying this patch mx31pdk board got watchdog resets because when it booted in the Linux prompt and there was no activity, the system entered into idle mode while watchdog timer was still active. Fix this by disabling watchdog timer during idle mode. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'arch/arm/include/asm/arch-mx31/imx-regs.h')
-rw-r--r--arch/arm/include/asm/arch-mx31/imx-regs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mx31/imx-regs.h b/arch/arm/include/asm/arch-mx31/imx-regs.h
index 2064870f44..0dcd9fe7eb 100644
--- a/arch/arm/include/asm/arch-mx31/imx-regs.h
+++ b/arch/arm/include/asm/arch-mx31/imx-regs.h
@@ -71,6 +71,8 @@ struct cspi_regs {
/* Watchdog Timer (WDOG) registers */
#define WDOG_ENABLE (1 << 2)
#define WDOG_WT_SHIFT 8
+#define WDOG_WDZST (1 << 0)
+
struct wdog_regs {
u16 wcr; /* Control */
u16 wsr; /* Service */
OpenPOWER on IntegriCloud