aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-mips/cpu-features.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-07-14 03:34:18 -0400
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 14:31:51 -0400
commit8f40611d2b184ca5d525075d273854929cf8d1d0 (patch)
tree962ef8dfa515cee330f506dc4ceac83670d0f84e /include/asm-mips/cpu-features.h
parent699dbc90e8c7baecae197fb331773f505a46a1eb (diff)
Detect the MIPS R2 vectored interrupt, external interrupt controller
options and the precense of the MT ASE. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/cpu-features.h')
-rw-r--r--include/asm-mips/cpu-features.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/asm-mips/cpu-features.h b/include/asm-mips/cpu-features.h
index bb2212cf460a..698c21125a5c 100644
--- a/include/asm-mips/cpu-features.h
+++ b/include/asm-mips/cpu-features.h
@@ -109,6 +109,14 @@
109#define cpu_has_dsp (cpu_data[0].ases & MIPS_ASE_DSP) 109#define cpu_has_dsp (cpu_data[0].ases & MIPS_ASE_DSP)
110#endif 110#endif
111 111
112#ifdef CONFIG_MIPS_MT
113#ifndef cpu_has_mipsmt
114# define cpu_has_mipsmt (cpu_data[0].ases & MIPS_ASE_MIPSMT)
115#endif
116#else
117# define cpu_has_mipsmt 0
118#endif
119
112#ifdef CONFIG_32BIT 120#ifdef CONFIG_32BIT
113# ifndef cpu_has_nofpuex 121# ifndef cpu_has_nofpuex
114# define cpu_has_nofpuex (cpu_data[0].options & MIPS_CPU_NOFPUEX) 122# define cpu_has_nofpuex (cpu_data[0].options & MIPS_CPU_NOFPUEX)
@@ -145,6 +153,22 @@
145# endif 153# endif
146#endif 154#endif
147 155
156#ifdef CONFIG_CPU_MIPSR2
157# if defined(CONFIG_CPU_MIPSR2_IRQ_VI) && !defined(cpu_has_vint)
158# define cpu_has_vint (cpu_data[0].options & MIPS_CPU_VINT)
159# else
160# define cpu_has_vint 0
161# endif
162# if defined(CONFIG_CPU_MIPSR2_IRQ_EI) && !defined(cpu_has_veic)
163# define cpu_has_veic (cpu_data[0].options & MIPS_CPU_VEIC)
164# else
165# define cpu_has_veic 0
166# endif
167#else
168# define cpu_has_vint 0
169# define cpu_has_veic 0
170#endif
171
148#ifndef cpu_has_subset_pcaches 172#ifndef cpu_has_subset_pcaches
149#define cpu_has_subset_pcaches (cpu_data[0].options & MIPS_CPU_SUBSET_CACHES) 173#define cpu_has_subset_pcaches (cpu_data[0].options & MIPS_CPU_SUBSET_CACHES)
150#endif 174#endif