aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2007-08-26 13:09:11 +0000
committerGabor Juhos <juhosg@openwrt.org>2007-08-26 13:09:11 +0000
commit077b42b9ff4c48d6aebddc38f719356c05300e98 (patch)
tree8bf9e4e77abf4983f47fe777af3291cf82f2b4c2 /target
parent5780bcb8db3577f30cae6705c55ab6de3e16a45c (diff)
downloadupstream-077b42b9ff4c48d6aebddc38f719356c05300e98.tar.gz
upstream-077b42b9ff4c48d6aebddc38f719356c05300e98.tar.bz2
upstream-077b42b9ff4c48d6aebddc38f719356c05300e98.zip
[adm5120] make overriding of CPU features configurable, and enable it by default
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8493 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/adm5120-2.6/config/default1
-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
-rw-r--r--target/linux/adm5120eb-2.6/config/default1
4 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/adm5120-2.6/config/default b/target/linux/adm5120-2.6/config/default
index c21fc4b114..593d98ce4f 100644
--- a/target/linux/adm5120-2.6/config/default
+++ b/target/linux/adm5120-2.6/config/default
@@ -1,6 +1,7 @@
CONFIG_32BIT=y
# CONFIG_64BIT is not set
# CONFIG_64BIT_PHYS_ADDR is not set
+CONFIG_ADM5120_CPU_OVERRIDES=y
# CONFIG_ARCH_HAS_ILOG2_U32 is not set
# CONFIG_ARCH_HAS_ILOG2_U64 is not set
# CONFIG_ARCH_SUPPORTS_MSI is not set
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 1e2270d461..7738d8175b 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 54c1edd61b..6216b864f5 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 */
diff --git a/target/linux/adm5120eb-2.6/config/default b/target/linux/adm5120eb-2.6/config/default
index 05de7eee60..96c2974e0b 100644
--- a/target/linux/adm5120eb-2.6/config/default
+++ b/target/linux/adm5120eb-2.6/config/default
@@ -1,6 +1,7 @@
CONFIG_32BIT=y
# CONFIG_64BIT is not set
# CONFIG_64BIT_PHYS_ADDR is not set
+CONFIG_ADM5120_CPU_OVERRIDES=y
# CONFIG_ARCH_HAS_ILOG2_U32 is not set
# CONFIG_ARCH_HAS_ILOG2_U64 is not set
# CONFIG_ARCH_SUPPORTS_MSI is not set