blob: a1b19ff85fca9f98866962b86bae3471ac8d52dc [file] [log] [blame]
Duy Truong790f06d2013-02-13 16:38:12 -08001/* Copyright (c) 2010, The Linux Foundation. All rights reserved.
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#include <linux/kexec.h>
14#include <linux/io.h>
15
16#ifdef CONFIG_MSM_WATCHDOG
17#include <mach/msm_iomap.h>
18
19#define WDT0_EN (MSM_TMR_BASE + 0x40)
20#endif
21
22void arch_kexec(void)
23{
24#ifdef CONFIG_MSM_WATCHDOG
25 /* Prevent watchdog from resetting SoC */
26 writel(0, WDT0_EN);
27 pr_crit("KEXEC: MSM Watchdog Exit - Deactivated\n");
28#endif
29 return;
30}