54c1edd61b5ed478037e974a45df37b790261c71
[openwrt/svn-archive/archive.git] / target / linux / adm5120-2.6 / files / include / asm-mips / mach-adm5120 / cpu-feature-overrides.h
1 /*
2 * $Id$
3 *
4 * ADM5120 specific CPU feature overrides
5 *
6 * Copyright (C) 2007 OpenWrt.org
7 * Copyright (C) 2007 Gabor Juhos <juhosg at openwrt.org>
8 *
9 * This file was derived from: include/asm-mips/cpu-features.h
10 * Copyright (C) 2003, 2004 Ralf Baechle
11 * Copyright (C) 2004 Maciej W. Rozycki
12 *
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the
25 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
26 * Boston, MA 02110-1301, USA.
27 */
28 #ifndef __ASM_MACH_ADM5120_CPU_FEATURE_OVERRIDES_H
29 #define __ASM_MACH_ADM5120_CPU_FEATURE_OVERRIDES_H
30
31 /*
32 * The ADM5120 SOC has a built-in MIPS 4Kc core.
33 */
34 #define cpu_has_tlb 1
35 #define cpu_has_4kex 1
36 #define cpu_has_3k_cache 0
37 #define cpu_has_4k_cache 1
38 #define cpu_has_tx39_cache 0
39 #define cpu_has_sb1_cache 0
40 #define cpu_has_fpu 0
41 #define cpu_has_32fpr 0
42 #define cpu_has_counter 1
43 #define cpu_has_watch 1
44 #define cpu_has_divec 1
45 /* #define cpu_has_vce ? */
46 /* #define cpu_has_cache_cdex_p ? */
47 /* #define cpu_has_cache_cdex_s ? */
48 #define cpu_has_prefetch 1
49 /* #define cpu_has_mcheck ? */
50 #define cpu_has_ejtag 1
51 #define cpu_has_llsc 1
52
53 #define cpu_has_mips16 0
54 #define cpu_has_mdmx 0
55 #define cpu_has_mips3d 0
56 #define cpu_has_smartmips 0
57
58 /* #define cpu_has_vtag_icache ? */
59 /* #define cpu_has_dc_aliases ? */
60 /* #define cpu_has_ic_fills_f_dc ? */
61 /* #define cpu_has_pindexed_dcache ? */
62
63 /* #define cpu_icache_snoops_remote_store ? */
64
65 #define cpu_has_mips32r1 1
66 #define cpu_has_mips32r2 0
67 #define cpu_has_mips64r1 0
68 #define cpu_has_mips64r2 0
69
70 #define cpu_has_dsp 0
71 #define cpu_has_mipsmt 0
72
73 /* #define cpu_has_nofpuex ? */
74 #define cpu_has_64bits 0
75 #define cpu_has_64bit_zero_reg 0
76 #define cpu_has_64bit_gp_regs 0
77 #define cpu_has_64bit_addresses 0
78
79 /* #define cpu_has_inclusive_pcaches ? */
80
81 #define cpu_dcache_line_size() 16
82 #define cpu_icache_line_size() 16
83
84 #endif /* __ASM_MACH_ADM5120_CPU_FEATURE_OVERRIDES_H */