[adm5120] new experimental driver for the CF slot on the RouterBOARD 153
[openwrt.git] / target / linux / adm5120 / 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 #ifdef CONFIG_ADM5120_CPU_OVERRIDES
32
33 /*
34 * The ADM5120 SOC has a built-in MIPS 4Kc core.
35 */
36 #define cpu_has_tlb 1
37 #define cpu_has_4kex 1
38 #define cpu_has_3k_cache 0
39 #define cpu_has_4k_cache 1
40 #define cpu_has_tx39_cache 0
41 #define cpu_has_sb1_cache 0
42 #define cpu_has_fpu 0
43 #define cpu_has_32fpr 0
44 #define cpu_has_counter 1
45 #define cpu_has_watch 1
46 #define cpu_has_divec 1
47 /* #define cpu_has_vce ? */
48 /* #define cpu_has_cache_cdex_p ? */
49 /* #define cpu_has_cache_cdex_s ? */
50 #define cpu_has_prefetch 1
51 /* #define cpu_has_mcheck ? */
52 #define cpu_has_ejtag 1
53 #define cpu_has_llsc 1
54
55 #define cpu_has_mips16 0
56 #define cpu_has_mdmx 0
57 #define cpu_has_mips3d 0
58 #define cpu_has_smartmips 0
59
60 /* #define cpu_has_vtag_icache ? */
61 /* #define cpu_has_dc_aliases ? */
62 /* #define cpu_has_ic_fills_f_dc ? */
63 /* #define cpu_has_pindexed_dcache ? */
64
65 /* #define cpu_icache_snoops_remote_store ? */
66
67 #define cpu_has_mips32r1 1
68 #define cpu_has_mips32r2 0
69 #define cpu_has_mips64r1 0
70 #define cpu_has_mips64r2 0
71
72 #define cpu_has_dsp 0
73 #define cpu_has_mipsmt 0
74
75 /* #define cpu_has_nofpuex ? */
76 #define cpu_has_64bits 0
77 #define cpu_has_64bit_zero_reg 0
78 #define cpu_has_64bit_gp_regs 0
79 #define cpu_has_64bit_addresses 0
80
81 /* #define cpu_has_inclusive_pcaches ? */
82
83 #define cpu_dcache_line_size() 16
84 #define cpu_icache_line_size() 16
85
86 #endif /* CONFIG_ADM5120_CPU_OVERRIDES */
87
88
89 #endif /* __ASM_MACH_ADM5120_CPU_FEATURE_OVERRIDES_H */
This page took 0.049058 seconds and 5 git commands to generate.