glue-proc.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. /*
  2. * arch/arm/include/asm/glue-proc.h
  3. *
  4. * Copyright (C) 1997-1999 Russell King
  5. * Copyright (C) 2000 Deep Blue Solutions Ltd
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef ASM_GLUE_PROC_H
  12. #define ASM_GLUE_PROC_H
  13. #include <asm/glue.h>
  14. /*
  15. * Work out if we need multiple CPU support
  16. */
  17. #undef MULTI_CPU
  18. #undef CPU_NAME
  19. /*
  20. * CPU_NAME - the prefix for CPU related functions
  21. */
  22. #ifdef CONFIG_CPU_ARM7TDMI
  23. # ifdef CPU_NAME
  24. # undef MULTI_CPU
  25. # define MULTI_CPU
  26. # else
  27. # define CPU_NAME cpu_arm7tdmi
  28. # endif
  29. #endif
  30. #ifdef CONFIG_CPU_ARM720T
  31. # ifdef CPU_NAME
  32. # undef MULTI_CPU
  33. # define MULTI_CPU
  34. # else
  35. # define CPU_NAME cpu_arm720
  36. # endif
  37. #endif
  38. #ifdef CONFIG_CPU_ARM740T
  39. # ifdef CPU_NAME
  40. # undef MULTI_CPU
  41. # define MULTI_CPU
  42. # else
  43. # define CPU_NAME cpu_arm740
  44. # endif
  45. #endif
  46. #ifdef CONFIG_CPU_ARM9TDMI
  47. # ifdef CPU_NAME
  48. # undef MULTI_CPU
  49. # define MULTI_CPU
  50. # else
  51. # define CPU_NAME cpu_arm9tdmi
  52. # endif
  53. #endif
  54. #ifdef CONFIG_CPU_ARM920T
  55. # ifdef CPU_NAME
  56. # undef MULTI_CPU
  57. # define MULTI_CPU
  58. # else
  59. # define CPU_NAME cpu_arm920
  60. # endif
  61. #endif
  62. #ifdef CONFIG_CPU_ARM922T
  63. # ifdef CPU_NAME
  64. # undef MULTI_CPU
  65. # define MULTI_CPU
  66. # else
  67. # define CPU_NAME cpu_arm922
  68. # endif
  69. #endif
  70. #ifdef CONFIG_CPU_FA526
  71. # ifdef CPU_NAME
  72. # undef MULTI_CPU
  73. # define MULTI_CPU
  74. # else
  75. # define CPU_NAME cpu_fa526
  76. # endif
  77. #endif
  78. #ifdef CONFIG_CPU_ARM925T
  79. # ifdef CPU_NAME
  80. # undef MULTI_CPU
  81. # define MULTI_CPU
  82. # else
  83. # define CPU_NAME cpu_arm925
  84. # endif
  85. #endif
  86. #ifdef CONFIG_CPU_ARM926T
  87. # ifdef CPU_NAME
  88. # undef MULTI_CPU
  89. # define MULTI_CPU
  90. # else
  91. # define CPU_NAME cpu_arm926
  92. # endif
  93. #endif
  94. #ifdef CONFIG_CPU_ARM940T
  95. # ifdef CPU_NAME
  96. # undef MULTI_CPU
  97. # define MULTI_CPU
  98. # else
  99. # define CPU_NAME cpu_arm940
  100. # endif
  101. #endif
  102. #ifdef CONFIG_CPU_ARM946E
  103. # ifdef CPU_NAME
  104. # undef MULTI_CPU
  105. # define MULTI_CPU
  106. # else
  107. # define CPU_NAME cpu_arm946
  108. # endif
  109. #endif
  110. #ifdef CONFIG_CPU_SA110
  111. # ifdef CPU_NAME
  112. # undef MULTI_CPU
  113. # define MULTI_CPU
  114. # else
  115. # define CPU_NAME cpu_sa110
  116. # endif
  117. #endif
  118. #ifdef CONFIG_CPU_SA1100
  119. # ifdef CPU_NAME
  120. # undef MULTI_CPU
  121. # define MULTI_CPU
  122. # else
  123. # define CPU_NAME cpu_sa1100
  124. # endif
  125. #endif
  126. #ifdef CONFIG_CPU_ARM1020
  127. # ifdef CPU_NAME
  128. # undef MULTI_CPU
  129. # define MULTI_CPU
  130. # else
  131. # define CPU_NAME cpu_arm1020
  132. # endif
  133. #endif
  134. #ifdef CONFIG_CPU_ARM1020E
  135. # ifdef CPU_NAME
  136. # undef MULTI_CPU
  137. # define MULTI_CPU
  138. # else
  139. # define CPU_NAME cpu_arm1020e
  140. # endif
  141. #endif
  142. #ifdef CONFIG_CPU_ARM1022
  143. # ifdef CPU_NAME
  144. # undef MULTI_CPU
  145. # define MULTI_CPU
  146. # else
  147. # define CPU_NAME cpu_arm1022
  148. # endif
  149. #endif
  150. #ifdef CONFIG_CPU_ARM1026
  151. # ifdef CPU_NAME
  152. # undef MULTI_CPU
  153. # define MULTI_CPU
  154. # else
  155. # define CPU_NAME cpu_arm1026
  156. # endif
  157. #endif
  158. #ifdef CONFIG_CPU_XSCALE
  159. # ifdef CPU_NAME
  160. # undef MULTI_CPU
  161. # define MULTI_CPU
  162. # else
  163. # define CPU_NAME cpu_xscale
  164. # endif
  165. #endif
  166. #ifdef CONFIG_CPU_XSC3
  167. # ifdef CPU_NAME
  168. # undef MULTI_CPU
  169. # define MULTI_CPU
  170. # else
  171. # define CPU_NAME cpu_xsc3
  172. # endif
  173. #endif
  174. #ifdef CONFIG_CPU_MOHAWK
  175. # ifdef CPU_NAME
  176. # undef MULTI_CPU
  177. # define MULTI_CPU
  178. # else
  179. # define CPU_NAME cpu_mohawk
  180. # endif
  181. #endif
  182. #ifdef CONFIG_CPU_FEROCEON
  183. # ifdef CPU_NAME
  184. # undef MULTI_CPU
  185. # define MULTI_CPU
  186. # else
  187. # define CPU_NAME cpu_feroceon
  188. # endif
  189. #endif
  190. #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V6K)
  191. # ifdef CPU_NAME
  192. # undef MULTI_CPU
  193. # define MULTI_CPU
  194. # else
  195. # define CPU_NAME cpu_v6
  196. # endif
  197. #endif
  198. #ifdef CONFIG_CPU_V7M
  199. # ifdef CPU_NAME
  200. # undef MULTI_CPU
  201. # define MULTI_CPU
  202. # else
  203. # define CPU_NAME cpu_v7m
  204. # endif
  205. #endif
  206. #ifdef CONFIG_CPU_PJ4B
  207. # ifdef CPU_NAME
  208. # undef MULTI_CPU
  209. # define MULTI_CPU
  210. # else
  211. # define CPU_NAME cpu_pj4b
  212. # endif
  213. #endif
  214. #ifdef CONFIG_CPU_V7
  215. /*
  216. * Cortex-A9 needs a different suspend/resume function, so we need
  217. * multiple CPU support for ARMv7 anyway.
  218. */
  219. # undef MULTI_CPU
  220. # define MULTI_CPU
  221. #endif
  222. #ifndef MULTI_CPU
  223. #define cpu_proc_init __glue(CPU_NAME,_proc_init)
  224. #define cpu_proc_fin __glue(CPU_NAME,_proc_fin)
  225. #define cpu_reset __glue(CPU_NAME,_reset)
  226. #define cpu_do_idle __glue(CPU_NAME,_do_idle)
  227. #define cpu_dcache_clean_area __glue(CPU_NAME,_dcache_clean_area)
  228. #define cpu_do_switch_mm __glue(CPU_NAME,_switch_mm)
  229. #define cpu_set_pte_ext __glue(CPU_NAME,_set_pte_ext)
  230. #define cpu_suspend_size __glue(CPU_NAME,_suspend_size)
  231. #define cpu_do_suspend __glue(CPU_NAME,_do_suspend)
  232. #define cpu_do_resume __glue(CPU_NAME,_do_resume)
  233. #endif
  234. #endif