aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/Kconfig
diff options
context:
space:
mode:
authorWu Zhangjin <wuzhangjin@gmail.com>2009-11-11 00:39:12 -0500
committerRalf Baechle <ralf@linux-mips.org>2009-12-16 20:57:15 -0500
commit55045ff5557bc804752e84dca5d1b1f1d4bb4e31 (patch)
tree981f6201429b833afb801079aa6abf5e72dc4349 /arch/mips/Kconfig
parent6e34358ed4f89556b5474ff883ac148750189ef0 (diff)
MIPS: Loongson 2F: Cleanup the #if clauses
This patch adds two new kernel options: CPU_SUPPORTS_CPUFREQ and CPU_SUPPORTS_ADDRWINCFG to describe the new features of Loongons 2F and replaces the several ugly #if clauses by them. These two options will be utilized by the future loongson revisions and related drivers such as the coming Loongson 2F CPUFreq driver. Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com> Cc: linux-mips@linux-mips.org Cc: Wu Zhangjin <wuzhangjin@gmail.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/Kconfig')
-rw-r--r--arch/mips/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index c2b4cd511419..51e4e5b02f9d 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -1334,6 +1334,8 @@ config SYS_HAS_CPU_LOONGSON2E
1334 1334
1335config SYS_HAS_CPU_LOONGSON2F 1335config SYS_HAS_CPU_LOONGSON2F
1336 bool 1336 bool
1337 select CPU_SUPPORTS_CPUFREQ
1338 select CPU_SUPPORTS_ADDRWINCFG if 64BIT
1337 1339
1338config SYS_HAS_CPU_MIPS32_R1 1340config SYS_HAS_CPU_MIPS32_R1
1339 bool 1341 bool
@@ -1443,6 +1445,10 @@ config CPU_SUPPORTS_32BIT_KERNEL
1443 bool 1445 bool
1444config CPU_SUPPORTS_64BIT_KERNEL 1446config CPU_SUPPORTS_64BIT_KERNEL
1445 bool 1447 bool
1448config CPU_SUPPORTS_CPUFREQ
1449 bool
1450config CPU_SUPPORTS_ADDRWINCFG
1451 bool
1446config CPU_SUPPORTS_HUGEPAGES 1452config CPU_SUPPORTS_HUGEPAGES
1447 bool 1453 bool
1448config MIPS_PGD_C0_CONTEXT 1454config MIPS_PGD_C0_CONTEXT