1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * arch/arm/include/asm/glue-proc.h
5 * Copyright (C) 1997-1999 Russell King
6 * Copyright (C) 2000 Deep Blue Solutions Ltd
8 #ifndef ASM_GLUE_PROC_H
9 #define ASM_GLUE_PROC_H
14 * Work out if we need multiple CPU support
20 * CPU_NAME - the prefix for CPU related functions
23 #ifdef CONFIG_CPU_ARM7TDMI
28 # define CPU_NAME cpu_arm7tdmi
32 #ifdef CONFIG_CPU_ARM720T
37 # define CPU_NAME cpu_arm720
41 #ifdef CONFIG_CPU_ARM740T
46 # define CPU_NAME cpu_arm740
50 #ifdef CONFIG_CPU_ARM9TDMI
55 # define CPU_NAME cpu_arm9tdmi
59 #ifdef CONFIG_CPU_ARM920T
64 # define CPU_NAME cpu_arm920
68 #ifdef CONFIG_CPU_ARM922T
73 # define CPU_NAME cpu_arm922
77 #ifdef CONFIG_CPU_FA526
82 # define CPU_NAME cpu_fa526
86 #ifdef CONFIG_CPU_ARM925T
91 # define CPU_NAME cpu_arm925
95 #ifdef CONFIG_CPU_ARM926T
100 # define CPU_NAME cpu_arm926
104 #ifdef CONFIG_CPU_ARM940T
109 # define CPU_NAME cpu_arm940
113 #ifdef CONFIG_CPU_ARM946E
118 # define CPU_NAME cpu_arm946
122 #ifdef CONFIG_CPU_SA110
127 # define CPU_NAME cpu_sa110
131 #ifdef CONFIG_CPU_SA1100
136 # define CPU_NAME cpu_sa1100
140 #ifdef CONFIG_CPU_ARM1020
145 # define CPU_NAME cpu_arm1020
149 #ifdef CONFIG_CPU_ARM1020E
154 # define CPU_NAME cpu_arm1020e
158 #ifdef CONFIG_CPU_ARM1022
163 # define CPU_NAME cpu_arm1022
167 #ifdef CONFIG_CPU_ARM1026
172 # define CPU_NAME cpu_arm1026
176 #ifdef CONFIG_CPU_XSCALE
181 # define CPU_NAME cpu_xscale
185 #ifdef CONFIG_CPU_XSC3
190 # define CPU_NAME cpu_xsc3
194 #ifdef CONFIG_CPU_MOHAWK
199 # define CPU_NAME cpu_mohawk
203 #ifdef CONFIG_CPU_FEROCEON
208 # define CPU_NAME cpu_feroceon
212 #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V6K)
217 # define CPU_NAME cpu_v6
221 #ifdef CONFIG_CPU_V7M
226 # define CPU_NAME cpu_v7m
230 #ifdef CONFIG_CPU_PJ4B
235 # define CPU_NAME cpu_pj4b
241 * Cortex-A9 needs a different suspend/resume function, so we need
242 * multiple CPU support for ARMv7 anyway.
249 #define cpu_proc_init __glue(CPU_NAME,_proc_init)
250 #define cpu_proc_fin __glue(CPU_NAME,_proc_fin)
251 #define cpu_reset __glue(CPU_NAME,_reset)
252 #define cpu_do_idle __glue(CPU_NAME,_do_idle)
253 #define cpu_dcache_clean_area __glue(CPU_NAME,_dcache_clean_area)
254 #define cpu_do_switch_mm __glue(CPU_NAME,_switch_mm)
255 #define cpu_set_pte_ext __glue(CPU_NAME,_set_pte_ext)
256 #define cpu_suspend_size __glue(CPU_NAME,_suspend_size)
257 #define cpu_do_suspend __glue(CPU_NAME,_do_suspend)
258 #define cpu_do_resume __glue(CPU_NAME,_do_resume)