diff options
author | Jayachandran C <jayachandranc@netlogicmicro.com> | 2011-11-15 19:21:20 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-12-07 17:04:55 -0500 |
commit | a3d4fb2d2a4c52b22cde90049a78e323cde187e5 (patch) | |
tree | e5ed7235b8f8a0b29b9aad11b4d1f57ef2f59809 /arch/mips/include/asm/mach-netlogic/cpu-feature-overrides.h | |
parent | 0be3d9bb1460a87170a1b78b9ab12cb0ac02c2dc (diff) |
MIPS: Netlogic: XLP CPU support.
Add support for Netlogic's XLP MIPS SoC. This patch adds:
* XLP processor ID in cpu_probe.c and asm/cpu.h
* XLP case to asm/module.h
* CPU_XLP case to mm/tlbex.c
* minor change to r4k cache handling to ignore XLP secondary cache
* XLP cpu overrides to mach-netlogic/cpu-feature-overrides.h
Signed-off-by: Jayachandran C <jayachandranc@netlogicmicro.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2966/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/mach-netlogic/cpu-feature-overrides.h')
-rw-r--r-- | arch/mips/include/asm/mach-netlogic/cpu-feature-overrides.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/arch/mips/include/asm/mach-netlogic/cpu-feature-overrides.h b/arch/mips/include/asm/mach-netlogic/cpu-feature-overrides.h index 3780743a74b2..d193fb68cf27 100644 --- a/arch/mips/include/asm/mach-netlogic/cpu-feature-overrides.h +++ b/arch/mips/include/asm/mach-netlogic/cpu-feature-overrides.h | |||
@@ -24,23 +24,33 @@ | |||
24 | 24 | ||
25 | #define cpu_has_llsc 1 | 25 | #define cpu_has_llsc 1 |
26 | #define cpu_has_vtag_icache 0 | 26 | #define cpu_has_vtag_icache 0 |
27 | #define cpu_has_dc_aliases 0 | ||
28 | #define cpu_has_ic_fills_f_dc 1 | 27 | #define cpu_has_ic_fills_f_dc 1 |
29 | #define cpu_has_dsp 0 | 28 | #define cpu_has_dsp 0 |
30 | #define cpu_has_mipsmt 0 | 29 | #define cpu_has_mipsmt 0 |
31 | #define cpu_has_userlocal 0 | ||
32 | #define cpu_icache_snoops_remote_store 1 | 30 | #define cpu_icache_snoops_remote_store 1 |
33 | 31 | ||
34 | #define cpu_has_64bits 1 | 32 | #define cpu_has_64bits 1 |
35 | 33 | ||
36 | #define cpu_has_mips32r1 1 | 34 | #define cpu_has_mips32r1 1 |
37 | #define cpu_has_mips32r2 0 | ||
38 | #define cpu_has_mips64r1 1 | 35 | #define cpu_has_mips64r1 1 |
39 | #define cpu_has_mips64r2 0 | ||
40 | 36 | ||
41 | #define cpu_has_inclusive_pcaches 0 | 37 | #define cpu_has_inclusive_pcaches 0 |
42 | 38 | ||
43 | #define cpu_dcache_line_size() 32 | 39 | #define cpu_dcache_line_size() 32 |
44 | #define cpu_icache_line_size() 32 | 40 | #define cpu_icache_line_size() 32 |
45 | 41 | ||
42 | #if defined(CONFIG_CPU_XLR) | ||
43 | #define cpu_has_userlocal 0 | ||
44 | #define cpu_has_dc_aliases 0 | ||
45 | #define cpu_has_mips32r2 0 | ||
46 | #define cpu_has_mips64r2 0 | ||
47 | #elif defined(CONFIG_CPU_XLP) | ||
48 | #define cpu_has_userlocal 1 | ||
49 | #define cpu_has_mips32r2 1 | ||
50 | #define cpu_has_mips64r2 1 | ||
51 | #define cpu_has_dc_aliases 1 | ||
52 | #else | ||
53 | #error "Unknown Netlogic CPU" | ||
54 | #endif | ||
55 | |||
46 | #endif /* __ASM_MACH_NETLOGIC_CPU_FEATURE_OVERRIDES_H */ | 56 | #endif /* __ASM_MACH_NETLOGIC_CPU_FEATURE_OVERRIDES_H */ |