Duy Truong | 790f06d | 2013-02-13 16:38:12 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2011, The Linux Foundation. All rights reserved. |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 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 Ohlstein | dd0dd9b | 2012-05-29 17:47:21 -0700 | [diff] [blame] | 20 | #if defined(CONFIG_MSM_NATIVE_RESTART) |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 21 | void msm_set_restart_mode(int mode); |
Jeff Ohlstein | dd0dd9b | 2012-05-29 17:47:21 -0700 | [diff] [blame] | 22 | void msm_restart(char mode, const char *cmd); |
| 23 | #elif defined(CONFIG_ARCH_FSM9XXX) |
| 24 | void fsm_restart(char mode, const char *cmd); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 25 | #else |
| 26 | #define msm_set_restart_mode(mode) |
| 27 | #endif |
| 28 | |
Abhijeet Dharmapurikar | 6d565fd | 2011-09-15 18:49:56 -0700 | [diff] [blame] | 29 | extern int pmic_reset_irq; |
| 30 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 31 | #endif |
| 32 | |