cpu-feature-overrides.h 2.0 KB
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 2003, 2004 Chris Dearman
 * Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org)
 */
#ifndef __ASM_MACH_MIPS_CPU_FEATURE_OVERRIDES_H
#define __ASM_MACH_MIPS_CPU_FEATURE_OVERRIDES_H


/*
 * CPU feature overrides for MIPS boards
 */
16
#ifdef CONFIG_CPU_MIPS32
L
Linus Torvalds 已提交
17 18
#define cpu_has_tlb		1
#define cpu_has_4kex		1
K
Kumba 已提交
19
#define cpu_has_4k_cache	1
L
Linus Torvalds 已提交
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
/* #define cpu_has_fpu		? */
/* #define cpu_has_32fpr	? */
#define cpu_has_counter		1
/* #define cpu_has_watch	? */
#define cpu_has_divec		1
#define cpu_has_vce		0
/* #define cpu_has_cache_cdex_p	? */
/* #define cpu_has_cache_cdex_s	? */
/* #define cpu_has_prefetch	? */
#define cpu_has_mcheck		1
/* #define cpu_has_ejtag	? */
#define cpu_has_llsc		1
/* #define cpu_has_vtag_icache	? */
/* #define cpu_has_dc_aliases	? */
/* #define cpu_has_ic_fills_f_dc ? */
35
#define cpu_has_clo_clz		1
L
Linus Torvalds 已提交
36 37 38
#define cpu_has_nofpuex		0
/* #define cpu_has_64bits	? */
/* #define cpu_has_64bit_zero_reg ? */
39
/* #define cpu_has_inclusive_pcaches ? */
40
#define cpu_icache_snoops_remote_store 1
L
Linus Torvalds 已提交
41 42
#endif

43
#ifdef CONFIG_CPU_MIPS64
L
Linus Torvalds 已提交
44 45
#define cpu_has_tlb		1
#define cpu_has_4kex		1
K
Kumba 已提交
46
#define cpu_has_4k_cache	1
L
Linus Torvalds 已提交
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
/* #define cpu_has_fpu		? */
/* #define cpu_has_32fpr	? */
#define cpu_has_counter		1
/* #define cpu_has_watch	? */
#define cpu_has_divec		1
#define cpu_has_vce		0
/* #define cpu_has_cache_cdex_p	? */
/* #define cpu_has_cache_cdex_s	? */
/* #define cpu_has_prefetch	? */
#define cpu_has_mcheck		1
/* #define cpu_has_ejtag	? */
#define cpu_has_llsc		1
/* #define cpu_has_vtag_icache	? */
/* #define cpu_has_dc_aliases	? */
/* #define cpu_has_ic_fills_f_dc ? */
62
#define cpu_has_clo_clz		1
L
Linus Torvalds 已提交
63 64 65
#define cpu_has_nofpuex		0
/* #define cpu_has_64bits	? */
/* #define cpu_has_64bit_zero_reg ? */
66
/* #define cpu_has_inclusive_pcaches ? */
67
#define cpu_icache_snoops_remote_store 1
L
Linus Torvalds 已提交
68 69 70
#endif

#endif /* __ASM_MACH_MIPS_CPU_FEATURE_OVERRIDES_H */