blob: a638b7093cf3ee0106fea46e45f5cbf761180057 [file] [log] [blame]
Russell Kinga09e64f2008-08-05 16:14:15 +01001/* arch/arm/mach-msm/include/mach/system.h
2 *
3 * Copyright (C) 2007 Google, Inc.
4 *
5 * This software is licensed under the terms of the GNU General Public
6 * License version 2, as published by the Free Software Foundation, and
7 * may be copied, distributed, and modified under those terms.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 */
15
16#include <mach/hardware.h>
17
18void arch_idle(void);
19
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070020#if defined(CONFIG_MSM_NATIVE_RESTART) || defined(CONFIG_ARCH_FSM9XXX)
21void arch_reset(char mode, const char *cmd);
22#else
Russell Kingbe093be2009-03-19 16:20:24 +000023static inline void arch_reset(char mode, const char *cmd)
Russell Kinga09e64f2008-08-05 16:14:15 +010024{
25 for (;;) ; /* depends on IPC w/ other core */
26}
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070027#endif
Brian Swetland2eb44eb2008-09-29 16:00:48 -070028
29/* low level hardware reset hook -- for example, hitting the
30 * PSHOLD line on the PMIC to hard reset the system
31 */
32extern void (*msm_hw_reset_hook)(void);
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070033
34void msm_set_i2c_mux(bool gpio, int *gpio_clk, int *gpio_dat);
35