Merge git://git.kernel.org/pub/scm/linux/kernel/git/nico/orion into fixes
[pandora-kernel.git] / arch / arm / mach-msm / include / mach / cpu.h
1 /* 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  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15  * 02110-1301, USA.
16  */
17
18 #ifndef __ARCH_ARM_MACH_MSM_CPU_H__
19 #define __ARCH_ARM_MACH_MSM_CPU_H__
20
21 /* TODO: For now, only one CPU can be compiled at a time. */
22
23 #define cpu_is_msm7x01()        0
24 #define cpu_is_msm7x30()        0
25 #define cpu_is_qsd8x50()        0
26 #define cpu_is_msm8x60()        0
27 #define cpu_is_msm8960()        0
28
29 #ifdef CONFIG_ARCH_MSM7X00A
30 # undef cpu_is_msm7x01
31 # define cpu_is_msm7x01()       1
32 #endif
33
34 #ifdef CONFIG_ARCH_MSM7X30
35 # undef cpu_is_msm7x30
36 # define cpu_is_msm7x30()       1
37 #endif
38
39 #ifdef CONFIG_ARCH_QSD8X50
40 # undef cpu_is_qsd8x50
41 # define cpu_is_qsd8x50()       1
42 #endif
43
44 #ifdef CONFIG_ARCH_MSM8X60
45 # undef cpu_is_msm8x60
46 # define cpu_is_msm8x60()       1
47 #endif
48
49 #ifdef CONFIG_ARCH_MSM8960
50 # undef cpu_is_msm8960
51 # define cpu_is_msm8960()       1
52 #endif
53
54 #endif