This patch disable watchdog when autoboot aborted by user.
Change-Id: I76699c9ca22123a49ebd3e9d5239301252bd53b9
Signed-off-by: Dongil Park <dongil01.park@samsung.com>
#include <menu.h>
#include <post.h>
#include <u-boot/sha256.h>
+#if defined(CONFIG_S5P6818_WATCHDOG)
+#include <watchdog.h>
+#endif
DECLARE_GLOBAL_DATA_PTR;
disable_ctrlc(prev); /* restore Control C checking */
#endif
}
+#if defined(CONFIG_S5P6818_WATCHDOG)
+ else {
+ /* We should stop watchdog in case of abort */
+ watchdog_reset();
+ }
+#endif
#ifdef CONFIG_MENUKEY
if (menukey == CONFIG_MENUKEY) {