2 * arch/arm/include/asm/glue-proc.h
4 * Copyright (C) 1997-1999 Russell King
5 * Copyright (C) 2000 Deep Blue Solutions Ltd
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.
11 #ifndef ASM_GLUE_PROC_H
12 #define ASM_GLUE_PROC_H
17 * Work out if we need multiple CPU support
23 * CPU_NAME - the prefix for CPU related functions
26 #ifdef CONFIG_CPU_ARM7TDMI
31 # define CPU_NAME cpu_arm7tdmi
35 #ifdef CONFIG_CPU_ARM720T
40 # define CPU_NAME cpu_arm720
44 #ifdef CONFIG_CPU_ARM740T
49 # define CPU_NAME cpu_arm740
53 #ifdef CONFIG_CPU_ARM9TDMI
58 # define CPU_NAME cpu_arm9tdmi
62 #ifdef CONFIG_CPU_ARM920T
67 # define CPU_NAME cpu_arm920
71 #ifdef CONFIG_CPU_ARM922T
76 # define CPU_NAME cpu_arm922
80 #ifdef CONFIG_CPU_FA526
85 # define CPU_NAME cpu_fa526
89 #ifdef CONFIG_CPU_ARM925T
94 # define CPU_NAME cpu_arm925
98 #ifdef CONFIG_CPU_ARM926T
103 # define CPU_NAME cpu_arm926
107 #ifdef CONFIG_CPU_ARM940T
112 # define CPU_NAME cpu_arm940
116 #ifdef CONFIG_CPU_ARM946E
121 # define CPU_NAME cpu_arm946
125 #ifdef CONFIG_CPU_SA110
130 # define CPU_NAME cpu_sa110
134 #ifdef CONFIG_CPU_SA1100
139 # define CPU_NAME cpu_sa1100
143 #ifdef CONFIG_CPU_ARM1020
148 # define CPU_NAME cpu_arm1020
152 #ifdef CONFIG_CPU_ARM1020E
157 # define CPU_NAME cpu_arm1020e
161 #ifdef CONFIG_CPU_ARM1022
166 # define CPU_NAME cpu_arm1022
170 #ifdef CONFIG_CPU_ARM1026
175 # define CPU_NAME cpu_arm1026
179 #ifdef CONFIG_CPU_XSCALE
184 # define CPU_NAME cpu_xscale
188 #ifdef CONFIG_CPU_XSC3
193 # define CPU_NAME cpu_xsc3
197 #ifdef CONFIG_CPU_MOHAWK
202 # define CPU_NAME cpu_mohawk
206 #ifdef CONFIG_CPU_FEROCEON
211 # define CPU_NAME cpu_feroceon
215 #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V6K)
220 # define CPU_NAME cpu_v6
224 #ifdef CONFIG_CPU_V7M
229 # define CPU_NAME cpu_v7m
233 #ifdef CONFIG_CPU_PJ4B
238 # define CPU_NAME cpu_pj4b
244 * Cortex-A9 needs a different suspend/resume function, so we need
245 * multiple CPU support for ARMv7 anyway.
252 #define cpu_proc_init __glue(CPU_NAME,_proc_init)
253 #define cpu_proc_fin __glue(CPU_NAME,_proc_fin)
254 #define cpu_reset __glue(CPU_NAME,_reset)
255 #define cpu_do_idle __glue(CPU_NAME,_do_idle)
256 #define cpu_dcache_clean_area __glue(CPU_NAME,_dcache_clean_area)
257 #define cpu_do_switch_mm __glue(CPU_NAME,_switch_mm)
258 #define cpu_set_pte_ext __glue(CPU_NAME,_set_pte_ext)
259 #define cpu_suspend_size __glue(CPU_NAME,_suspend_size)
260 #define cpu_do_suspend __glue(CPU_NAME,_do_suspend)
261 #define cpu_do_resume __glue(CPU_NAME,_do_resume)