cpu.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. #ifndef __ARCH_ARM_MACH_MSM_CPU_H__
  18. #define __ARCH_ARM_MACH_MSM_CPU_H__
  19. /* TODO: For now, only one CPU can be compiled at a time. */
  20. #define cpu_is_msm7x01() 0
  21. #define cpu_is_msm7x30() 0
  22. #define cpu_is_qsd8x50() 0
  23. #define cpu_is_msm8x60() 0
  24. #define cpu_is_msm8960() 0
  25. #ifdef CONFIG_ARCH_MSM7X00A
  26. # undef cpu_is_msm7x01
  27. # define cpu_is_msm7x01() 1
  28. #endif
  29. #ifdef CONFIG_ARCH_MSM7X30
  30. # undef cpu_is_msm7x30
  31. # define cpu_is_msm7x30() 1
  32. #endif
  33. #ifdef CONFIG_ARCH_QSD8X50
  34. # undef cpu_is_qsd8x50
  35. # define cpu_is_qsd8x50() 1
  36. #endif
  37. #ifdef CONFIG_ARCH_MSM8X60
  38. # undef cpu_is_msm8x60
  39. # define cpu_is_msm8x60() 1
  40. #endif
  41. #ifdef CONFIG_ARCH_MSM8960
  42. # undef cpu_is_msm8960
  43. # define cpu_is_msm8960() 1
  44. #endif
  45. #endif