xref: /openbmc/linux/arch/powerpc/include/asm/cpu_setup.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1*76b71988SChristophe Leroy /* SPDX-License-Identifier: GPL-2.0-or-later */
2*76b71988SChristophe Leroy /*
3*76b71988SChristophe Leroy  * Copyright (C) 2020 IBM Corporation
4*76b71988SChristophe Leroy  */
5*76b71988SChristophe Leroy 
6*76b71988SChristophe Leroy #ifndef _ASM_POWERPC_CPU_SETUP_H
7*76b71988SChristophe Leroy #define _ASM_POWERPC_CPU_SETUP_H
8*76b71988SChristophe Leroy void __setup_cpu_power7(unsigned long offset, struct cpu_spec *spec);
9*76b71988SChristophe Leroy void __setup_cpu_power8(unsigned long offset, struct cpu_spec *spec);
10*76b71988SChristophe Leroy void __setup_cpu_power9(unsigned long offset, struct cpu_spec *spec);
11*76b71988SChristophe Leroy void __setup_cpu_power10(unsigned long offset, struct cpu_spec *spec);
12*76b71988SChristophe Leroy void __restore_cpu_power7(void);
13*76b71988SChristophe Leroy void __restore_cpu_power8(void);
14*76b71988SChristophe Leroy void __restore_cpu_power9(void);
15*76b71988SChristophe Leroy void __restore_cpu_power10(void);
16*76b71988SChristophe Leroy 
17*76b71988SChristophe Leroy void __setup_cpu_e500v1(unsigned long offset, struct cpu_spec *spec);
18*76b71988SChristophe Leroy void __setup_cpu_e500v2(unsigned long offset, struct cpu_spec *spec);
19*76b71988SChristophe Leroy void __setup_cpu_e500mc(unsigned long offset, struct cpu_spec *spec);
20*76b71988SChristophe Leroy void __setup_cpu_440ep(unsigned long offset, struct cpu_spec *spec);
21*76b71988SChristophe Leroy void __setup_cpu_440epx(unsigned long offset, struct cpu_spec *spec);
22*76b71988SChristophe Leroy void __setup_cpu_440gx(unsigned long offset, struct cpu_spec *spec);
23*76b71988SChristophe Leroy void __setup_cpu_440grx(unsigned long offset, struct cpu_spec *spec);
24*76b71988SChristophe Leroy void __setup_cpu_440spe(unsigned long offset, struct cpu_spec *spec);
25*76b71988SChristophe Leroy void __setup_cpu_440x5(unsigned long offset, struct cpu_spec *spec);
26*76b71988SChristophe Leroy void __setup_cpu_460ex(unsigned long offset, struct cpu_spec *spec);
27*76b71988SChristophe Leroy void __setup_cpu_460gt(unsigned long offset, struct cpu_spec *spec);
28*76b71988SChristophe Leroy void __setup_cpu_460sx(unsigned long offset, struct cpu_spec *spec);
29*76b71988SChristophe Leroy void __setup_cpu_apm821xx(unsigned long offset, struct cpu_spec *spec);
30*76b71988SChristophe Leroy void __setup_cpu_603(unsigned long offset, struct cpu_spec *spec);
31*76b71988SChristophe Leroy void __setup_cpu_604(unsigned long offset, struct cpu_spec *spec);
32*76b71988SChristophe Leroy void __setup_cpu_750(unsigned long offset, struct cpu_spec *spec);
33*76b71988SChristophe Leroy void __setup_cpu_750cx(unsigned long offset, struct cpu_spec *spec);
34*76b71988SChristophe Leroy void __setup_cpu_750fx(unsigned long offset, struct cpu_spec *spec);
35*76b71988SChristophe Leroy void __setup_cpu_7400(unsigned long offset, struct cpu_spec *spec);
36*76b71988SChristophe Leroy void __setup_cpu_7410(unsigned long offset, struct cpu_spec *spec);
37*76b71988SChristophe Leroy void __setup_cpu_745x(unsigned long offset, struct cpu_spec *spec);
38*76b71988SChristophe Leroy 
39*76b71988SChristophe Leroy void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec *spec);
40*76b71988SChristophe Leroy void __setup_cpu_ppc970MP(unsigned long offset, struct cpu_spec *spec);
41*76b71988SChristophe Leroy void __setup_cpu_pa6t(unsigned long offset, struct cpu_spec *spec);
42*76b71988SChristophe Leroy void __restore_cpu_pa6t(void);
43*76b71988SChristophe Leroy void __restore_cpu_ppc970(void);
44*76b71988SChristophe Leroy 
45*76b71988SChristophe Leroy void __setup_cpu_e5500(unsigned long offset, struct cpu_spec *spec);
46*76b71988SChristophe Leroy void __setup_cpu_e6500(unsigned long offset, struct cpu_spec *spec);
47*76b71988SChristophe Leroy void __restore_cpu_e5500(void);
48*76b71988SChristophe Leroy void __restore_cpu_e6500(void);
49*76b71988SChristophe Leroy #endif /* _ASM_POWERPC_CPU_SETUP_H */
50