summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2013-02-07 02:10:28 +0000
committerWolfgang Denk <wd@denx.de>2013-03-09 08:19:21 +0100
commitaed7548448951f1b25102306f7a149cc33b3a10c (patch)
treecfdec4bd4593cde20225839b8c5db1e913fa9296 /include
parentd4451d3503e630fa0d70a58dcfc759e07a9017d1 (diff)
downloadtalos-obmc-uboot-aed7548448951f1b25102306f7a149cc33b3a10c.tar.gz
talos-obmc-uboot-aed7548448951f1b25102306f7a149cc33b3a10c.zip
mpc5200: a4m2k: Implement custom "dynamic" watchdog support
This patch adds a custom U-Boot command "wdogtoggle" which enables the external hardware watchdog toggling via an GPIO pin on the a4m2k board. After issuing this commands, the watchdog will be serviced by U-Boot so that the user can use all U-Boot commands from the prompt. Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include')
-rw-r--r--include/configs/a3m071.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/a3m071.h b/include/configs/a3m071.h
index d8559d805a..13f32267e9 100644
--- a/include/configs/a3m071.h
+++ b/include/configs/a3m071.h
@@ -166,6 +166,11 @@
#define CONFIG_SYS_GPS_PORT_CONFIG_2 0x1005C005
#endif
+#define CONFIG_WDOG_GPIO_PIN GPIO_WKUP_7
+#if defined(CONFIG_A4M2K) && !defined(CONFIG_SPL_BUILD)
+#define CONFIG_HW_WATCHDOG /* Use external HW-Watchdog */
+#endif
+
/*
* Configuration matrix
* MSB LSB
OpenPOWER on IntegriCloud