xref: /linux/arch/mips/include/asm/mach-ralink/mt7620/cpu-feature-overrides.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1*d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
29852ba6aSGabor Juhos /*
39852ba6aSGabor Juhos  * Ralink MT7620 specific CPU feature overrides
49852ba6aSGabor Juhos  *
59852ba6aSGabor Juhos  * Copyright (C) 2008-2009 Gabor Juhos <juhosg@openwrt.org>
69852ba6aSGabor Juhos  * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
79852ba6aSGabor Juhos  *
89852ba6aSGabor Juhos  * This file was derived from: include/asm-mips/cpu-features.h
99852ba6aSGabor Juhos  *	Copyright (C) 2003, 2004 Ralf Baechle
109852ba6aSGabor Juhos  *	Copyright (C) 2004 Maciej W. Rozycki
119852ba6aSGabor Juhos  */
129852ba6aSGabor Juhos #ifndef _MT7620_CPU_FEATURE_OVERRIDES_H
139852ba6aSGabor Juhos #define _MT7620_CPU_FEATURE_OVERRIDES_H
149852ba6aSGabor Juhos 
159852ba6aSGabor Juhos #define cpu_has_tlb		1
169852ba6aSGabor Juhos #define cpu_has_4kex		1
179852ba6aSGabor Juhos #define cpu_has_3k_cache	0
189852ba6aSGabor Juhos #define cpu_has_4k_cache	1
199852ba6aSGabor Juhos #define cpu_has_sb1_cache	0
209852ba6aSGabor Juhos #define cpu_has_fpu		0
219852ba6aSGabor Juhos #define cpu_has_32fpr		0
229852ba6aSGabor Juhos #define cpu_has_counter		1
239852ba6aSGabor Juhos #define cpu_has_watch		1
249852ba6aSGabor Juhos #define cpu_has_divec		1
259852ba6aSGabor Juhos 
269852ba6aSGabor Juhos #define cpu_has_prefetch	1
279852ba6aSGabor Juhos #define cpu_has_ejtag		1
289852ba6aSGabor Juhos #define cpu_has_llsc		1
299852ba6aSGabor Juhos 
309852ba6aSGabor Juhos #define cpu_has_mips16		1
319852ba6aSGabor Juhos #define cpu_has_mdmx		0
329852ba6aSGabor Juhos #define cpu_has_mips3d		0
339852ba6aSGabor Juhos #define cpu_has_smartmips	0
349852ba6aSGabor Juhos 
359852ba6aSGabor Juhos #define cpu_has_mips32r1	1
369852ba6aSGabor Juhos #define cpu_has_mips32r2	1
379852ba6aSGabor Juhos #define cpu_has_mips64r1	0
389852ba6aSGabor Juhos #define cpu_has_mips64r2	0
399852ba6aSGabor Juhos 
409852ba6aSGabor Juhos #define cpu_has_dsp		1
419852ba6aSGabor Juhos #define cpu_has_dsp2		0
429852ba6aSGabor Juhos #define cpu_has_mipsmt		0
439852ba6aSGabor Juhos 
449852ba6aSGabor Juhos #define cpu_has_64bits		0
459852ba6aSGabor Juhos #define cpu_has_64bit_zero_reg	0
469852ba6aSGabor Juhos #define cpu_has_64bit_gp_regs	0
479852ba6aSGabor Juhos 
489852ba6aSGabor Juhos #define cpu_dcache_line_size()	32
499852ba6aSGabor Juhos #define cpu_icache_line_size()	32
509852ba6aSGabor Juhos 
519852ba6aSGabor Juhos #endif /* _MT7620_CPU_FEATURE_OVERRIDES_H */
52