2005-04-17 06:20:36 +08:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
|
|
|
#include <linux/config.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* CPU feature overrides for MIPS boards
|
|
|
|
*/
|
2005-10-07 23:58:15 +08:00
|
|
|
#ifdef CONFIG_CPU_MIPS32
|
2005-04-17 06:20:36 +08:00
|
|
|
#define cpu_has_tlb 1
|
|
|
|
#define cpu_has_4kex 1
|
2005-10-01 20:06:32 +08:00
|
|
|
#define cpu_has_4kcache 1
|
2005-04-17 06:20:36 +08:00
|
|
|
/* #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 ? */
|
2006-01-21 06:06:09 +08:00
|
|
|
#ifdef CONFIG_CPU_HAS_LLSC
|
2005-04-17 06:20:36 +08:00
|
|
|
#define cpu_has_llsc 1
|
2006-01-21 06:06:09 +08:00
|
|
|
#else
|
|
|
|
#define cpu_has_llsc 0
|
|
|
|
#endif
|
2005-04-17 06:20:36 +08:00
|
|
|
/* #define cpu_has_vtag_icache ? */
|
|
|
|
/* #define cpu_has_dc_aliases ? */
|
|
|
|
/* #define cpu_has_ic_fills_f_dc ? */
|
|
|
|
#define cpu_has_nofpuex 0
|
|
|
|
/* #define cpu_has_64bits ? */
|
|
|
|
/* #define cpu_has_64bit_zero_reg ? */
|
|
|
|
/* #define cpu_has_subset_pcaches ? */
|
2005-08-17 01:54:41 +08:00
|
|
|
#define cpu_icache_snoops_remote_store 1
|
2005-04-17 06:20:36 +08:00
|
|
|
#endif
|
|
|
|
|
2005-10-07 23:58:15 +08:00
|
|
|
#ifdef CONFIG_CPU_MIPS64
|
2005-04-17 06:20:36 +08:00
|
|
|
#define cpu_has_tlb 1
|
|
|
|
#define cpu_has_4kex 1
|
2005-10-01 20:06:32 +08:00
|
|
|
#define cpu_has_4kcache 1
|
2005-04-17 06:20:36 +08:00
|
|
|
/* #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 ? */
|
|
|
|
#define cpu_has_nofpuex 0
|
|
|
|
/* #define cpu_has_64bits ? */
|
|
|
|
/* #define cpu_has_64bit_zero_reg ? */
|
|
|
|
/* #define cpu_has_subset_pcaches ? */
|
2005-08-17 01:54:41 +08:00
|
|
|
#define cpu_icache_snoops_remote_store 1
|
2005-04-17 06:20:36 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __ASM_MACH_MIPS_CPU_FEATURE_OVERRIDES_H */
|