4 * ADM5120 specific CPU feature overrides
6 * Copyright (C) 2007 OpenWrt.org
7 * Copyright (C) 2007 Gabor Juhos <juhosg at openwrt.org>
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
13 * This program is free software; you can redistribute it and/or modify it
14 * under the terms of the GNU General Public License version 2 as published
15 * by the Free Software Foundation.
18 #ifndef __ASM_MACH_ADM5120_CPU_FEATURE_OVERRIDES_H
19 #define __ASM_MACH_ADM5120_CPU_FEATURE_OVERRIDES_H
21 #ifdef CONFIG_ADM5120_CPU_OVERRIDES
24 * The ADM5120 SOC has a built-in MIPS 4Kc core.
27 #define cpu_has_4kex 1
28 #define cpu_has_3k_cache 0
29 #define cpu_has_4k_cache 1
30 #define cpu_has_tx39_cache 0
31 #define cpu_has_sb1_cache 0
33 #define cpu_has_32fpr 0
34 #define cpu_has_counter 1
35 #define cpu_has_watch 1
36 #define cpu_has_divec 1
37 /* #define cpu_has_vce ? */
38 /* #define cpu_has_cache_cdex_p ? */
39 /* #define cpu_has_cache_cdex_s ? */
40 #define cpu_has_prefetch 1
41 /* #define cpu_has_mcheck ? */
42 #define cpu_has_ejtag 1
43 #define cpu_has_llsc 1
45 #define cpu_has_mips16 0
46 #define cpu_has_mdmx 0
47 #define cpu_has_mips3d 0
48 #define cpu_has_smartmips 0
50 /* #define cpu_has_vtag_icache ? */
51 /* #define cpu_has_dc_aliases ? */
52 /* #define cpu_has_ic_fills_f_dc ? */
53 /* #define cpu_has_pindexed_dcache ? */
55 /* #define cpu_icache_snoops_remote_store ? */
57 #define cpu_has_mips32r1 1
58 #define cpu_has_mips32r2 0
59 #define cpu_has_mips64r1 0
60 #define cpu_has_mips64r2 0
63 #define cpu_has_mipsmt 0
65 /* #define cpu_has_nofpuex ? */
66 #define cpu_has_64bits 0
67 #define cpu_has_64bit_zero_reg 0
68 #define cpu_has_64bit_gp_regs 0
69 #define cpu_has_64bit_addresses 0
71 /* #define cpu_has_inclusive_pcaches ? */
73 #define cpu_dcache_line_size() 16
74 #define cpu_icache_line_size() 16
76 #endif /* CONFIG_ADM5120_CPU_OVERRIDES */
79 #endif /* __ASM_MACH_ADM5120_CPU_FEATURE_OVERRIDES_H */
This page took 0.045026 seconds and 5 git commands to generate.