summaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120-2.6/files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/adm5120-2.6/files')
-rw-r--r--target/linux/adm5120-2.6/files/arch/mips/adm5120/Kconfig4
-rw-r--r--target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/cpu-feature-overrides.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/adm5120-2.6/files/arch/mips/adm5120/Kconfig b/target/linux/adm5120-2.6/files/arch/mips/adm5120/Kconfig
index 1e2270d46..7738d8175 100644
--- a/target/linux/adm5120-2.6/files/arch/mips/adm5120/Kconfig
+++ b/target/linux/adm5120-2.6/files/arch/mips/adm5120/Kconfig
@@ -2,6 +2,10 @@ if MIPS_ADM5120
menu "ADM5120 Implementation Options"
+config ADM5120_CPU_OVERRIDES
+ bool "Enable CPU feature overrides"
+ default y
+
config PCI_ADM5120
bool "Enable PCI support"
select PCI
diff --git a/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/cpu-feature-overrides.h b/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/cpu-feature-overrides.h
index 54c1edd61..6216b864f 100644
--- a/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/cpu-feature-overrides.h
+++ b/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/cpu-feature-overrides.h
@@ -28,6 +28,8 @@
#ifndef __ASM_MACH_ADM5120_CPU_FEATURE_OVERRIDES_H
#define __ASM_MACH_ADM5120_CPU_FEATURE_OVERRIDES_H
+#ifdef CONFIG_ADM5120_CPU_OVERRIDES
+
/*
* The ADM5120 SOC has a built-in MIPS 4Kc core.
*/
@@ -81,4 +83,7 @@
#define cpu_dcache_line_size() 16
#define cpu_icache_line_size() 16
+#endif /* CONFIG_ADM5120_CPU_OVERRIDES */
+
+
#endif /* __ASM_MACH_ADM5120_CPU_FEATURE_OVERRIDES_H */