David Brown | 87fa28e | 2011-01-04 17:02:48 -0800 | [diff] [blame] | 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. |
David Brown | 87fa28e | 2011-01-04 17:02:48 -0800 | [diff] [blame] | 11 | */ |
| 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 Brown | b83ce58 | 2011-01-12 12:55:16 -0800 | [diff] [blame] | 22 | #define cpu_is_msm8960() 0 |
David Brown | 87fa28e | 2011-01-04 17:02:48 -0800 | [diff] [blame] | 23 | |
| 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 Brown | b83ce58 | 2011-01-12 12:55:16 -0800 | [diff] [blame] | 44 | #ifdef CONFIG_ARCH_MSM8960 |
| 45 | # undef cpu_is_msm8960 |
| 46 | # define cpu_is_msm8960() 1 |
| 47 | #endif |
| 48 | |
David Brown | 87fa28e | 2011-01-04 17:02:48 -0800 | [diff] [blame] | 49 | #endif |