blob: b913e3f1dc648eb750c2b563d0805625c0bf46bd [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
2 *
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
14#ifndef _ASM_ARCH_MSM_RESTART_H_
15#define _ASM_ARCH_MSM_RESTART_H_
16
17#define RESTART_NORMAL 0x0
18#define RESTART_DLOAD 0x1
19
Jeff Ohlsteindd0dd9b2012-05-29 17:47:21 -070020#if defined(CONFIG_MSM_NATIVE_RESTART)
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070021void msm_set_restart_mode(int mode);
Jeff Ohlsteindd0dd9b2012-05-29 17:47:21 -070022void msm_restart(char mode, const char *cmd);
23#elif defined(CONFIG_ARCH_FSM9XXX)
24void fsm_restart(char mode, const char *cmd);
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070025#else
26#define msm_set_restart_mode(mode)
27#endif
28
Abhijeet Dharmapurikar6d565fd2011-09-15 18:49:56 -070029extern int pmic_reset_irq;
30
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070031#endif
32