From aed7548448951f1b25102306f7a149cc33b3a10c Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Thu, 7 Feb 2013 02:10:28 +0000 Subject: 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 --- include/configs/a3m071.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/configs/a3m071.h') diff --git a/include/configs/a3m071.h b/include/configs/a3m071.h index d8559d805ac..13f32267e92 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 -- cgit v1.2.3