blob: 0308b7b77f7a46cbbb53fc2eec6243264f41d727 [file] [log] [blame]
David Brown87fa28e2011-01-04 17:02:48 -08001/* 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.
David Brown87fa28e2011-01-04 17:02:48 -080011 */
12
13#ifndef __ARCH_ARM_MACH_MSM_CPU_H__
14#define __ARCH_ARM_MACH_MSM_CPU_H__
15
16/* TODO: For now, only one CPU can be compiled at a time. */
17
18#define cpu_is_msm7x01() 0
19#define cpu_is_msm7x30() 0
20#define cpu_is_qsd8x50() 0
21#define cpu_is_msm8x60() 0
David Brownb83ce582011-01-12 12:55:16 -080022#define cpu_is_msm8960() 0
David Brown87fa28e2011-01-04 17:02:48 -080023
24#ifdef CONFIG_ARCH_MSM7X00A
25# undef cpu_is_msm7x01
26# define cpu_is_msm7x01() 1
27#endif
28
29#ifdef CONFIG_ARCH_MSM7X30
30# undef cpu_is_msm7x30
31# define cpu_is_msm7x30() 1
32#endif
33
34#ifdef CONFIG_ARCH_QSD8X50
35# undef cpu_is_qsd8x50
36# define cpu_is_qsd8x50() 1
37#endif
38
39#ifdef CONFIG_ARCH_MSM8X60
40# undef cpu_is_msm8x60
41# define cpu_is_msm8x60() 1
42#endif
43
David Brownb83ce582011-01-12 12:55:16 -080044#ifdef CONFIG_ARCH_MSM8960
45# undef cpu_is_msm8960
46# define cpu_is_msm8960() 1
47#endif
48
David Brown87fa28e2011-01-04 17:02:48 -080049#endif