xref: /openbmc/u-boot/arch/mips/include/asm/cpu-features.h (revision 23ff8633fd8ca75d2ffd4595b9c72bb1a5fdbd20)
1*23ff8633SDaniel Schwierzeck /*
2*23ff8633SDaniel Schwierzeck  * Copyright (C) 2003, 2004 Ralf Baechle
3*23ff8633SDaniel Schwierzeck  * Copyright (C) 2004  Maciej W. Rozycki
4*23ff8633SDaniel Schwierzeck  *
5*23ff8633SDaniel Schwierzeck  * SPDX-License-Identifier:	GPL-2.0
6*23ff8633SDaniel Schwierzeck  */
7*23ff8633SDaniel Schwierzeck #ifndef __ASM_CPU_FEATURES_H
8*23ff8633SDaniel Schwierzeck #define __ASM_CPU_FEATURES_H
9*23ff8633SDaniel Schwierzeck 
10*23ff8633SDaniel Schwierzeck #include <cpu-feature-overrides.h>
11*23ff8633SDaniel Schwierzeck 
12*23ff8633SDaniel Schwierzeck #ifdef CONFIG_32BIT
13*23ff8633SDaniel Schwierzeck # ifndef cpu_has_64bits
14*23ff8633SDaniel Schwierzeck # define cpu_has_64bits			0
15*23ff8633SDaniel Schwierzeck # endif
16*23ff8633SDaniel Schwierzeck # ifndef cpu_has_64bit_addresses
17*23ff8633SDaniel Schwierzeck # define cpu_has_64bit_addresses	0
18*23ff8633SDaniel Schwierzeck # endif
19*23ff8633SDaniel Schwierzeck #endif
20*23ff8633SDaniel Schwierzeck 
21*23ff8633SDaniel Schwierzeck #ifdef CONFIG_64BIT
22*23ff8633SDaniel Schwierzeck # ifndef cpu_has_64bits
23*23ff8633SDaniel Schwierzeck # define cpu_has_64bits			1
24*23ff8633SDaniel Schwierzeck # endif
25*23ff8633SDaniel Schwierzeck # ifndef cpu_has_64bit_addresses
26*23ff8633SDaniel Schwierzeck # define cpu_has_64bit_addresses	1
27*23ff8633SDaniel Schwierzeck # endif
28*23ff8633SDaniel Schwierzeck #endif
29*23ff8633SDaniel Schwierzeck 
30*23ff8633SDaniel Schwierzeck #endif /* __ASM_CPU_FEATURES_H */
31