Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * This file is subject to the terms and conditions of the GNU General Public
0003  * License.  See the file "COPYING" in the main directory of this archive
0004  * for more details.
0005  *
0006  * Copyright (C) 2005 Ilya A. Volynets-Evenbakh
0007  * Copyright (C) 2005, 07 Ralf Baechle (ralf@linux-mips.org)
0008  */
0009 #ifndef __ASM_MACH_IP32_CPU_FEATURE_OVERRIDES_H
0010 #define __ASM_MACH_IP32_CPU_FEATURE_OVERRIDES_H
0011 
0012 
0013 /*
0014  * R5000 has an interesting "restriction":  ll(d)/sc(d)
0015  * instructions to XKPHYS region simply do uncached bus
0016  * requests. This breaks all the atomic bitops functions.
0017  * so, for 64bit IP32 kernel we just don't use ll/sc.
0018  * This does not affect luserland.
0019  */
0020 #if (defined(CONFIG_CPU_R5000) || defined(CONFIG_CPU_NEVADA)) && defined(CONFIG_64BIT)
0021 #define cpu_has_llsc        0
0022 #else
0023 #define cpu_has_llsc        1
0024 #endif
0025 
0026 /* Settings which are common for all ip32 CPUs */
0027 #define cpu_has_tlb     1
0028 #define cpu_has_4kex        1
0029 #define cpu_has_32fpr       1
0030 #define cpu_has_counter     1
0031 #define cpu_has_mips16      0
0032 #define cpu_has_mips16e2    0
0033 #define cpu_has_vce     0
0034 #define cpu_has_cache_cdex_s    0
0035 #define cpu_has_mcheck      0
0036 #define cpu_has_ejtag       0
0037 #define cpu_has_vtag_icache 0
0038 #define cpu_has_ic_fills_f_dc   0
0039 #define cpu_has_dsp     0
0040 #define cpu_has_dsp2        0
0041 #define cpu_has_4k_cache    1
0042 #define cpu_has_mipsmt      0
0043 #define cpu_has_userlocal   0
0044 
0045 
0046 #define cpu_has_mips32r1    0
0047 #define cpu_has_mips32r2    0
0048 #define cpu_has_mips64r1    0
0049 #define cpu_has_mips64r2    0
0050 
0051 #endif /* __ASM_MACH_IP32_CPU_FEATURE_OVERRIDES_H */