tizen 2.4 release
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / include / soc / sprd / system.h
1 /*
2  * Copyright (C) 2012 Spreadtrum Communications Inc.
3  *
4  * This software is licensed under the terms of the GNU General Public
5  * License version 2, as published by the Free Software Foundation, and
6  * may be copied, distributed, and modified under those terms.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  */
13
14 #ifndef __ASM_ARCH_SYSTEM_H
15 #define __ASM_ARCH_SYSTEM_H __FILE__
16
17 #include <soc/sprd/hardware.h>
18 #include <soc/sprd/sys_reset.h>
19
20 static inline void arch_idle(void)
21 {
22 }
23
24 static inline void arch_reset(char mode, const char *cmd)
25 {
26         sprd_set_reboot_mode(cmd);
27         sprd_turnon_watchdog(50);
28 }
29
30 #endif