diff options
author | Wu Zhangjin <wuzhangjin@gmail.com> | 2009-11-11 00:39:12 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-12-16 20:57:15 -0500 |
commit | 55045ff5557bc804752e84dca5d1b1f1d4bb4e31 (patch) | |
tree | 981f6201429b833afb801079aa6abf5e72dc4349 /arch/mips/Kconfig | |
parent | 6e34358ed4f89556b5474ff883ac148750189ef0 (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/Kconfig | 6 |
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 | ||
1335 | config SYS_HAS_CPU_LOONGSON2F | 1335 | config SYS_HAS_CPU_LOONGSON2F |
1336 | bool | 1336 | bool |
1337 | select CPU_SUPPORTS_CPUFREQ | ||
1338 | select CPU_SUPPORTS_ADDRWINCFG if 64BIT | ||
1337 | 1339 | ||
1338 | config SYS_HAS_CPU_MIPS32_R1 | 1340 | config SYS_HAS_CPU_MIPS32_R1 |
1339 | bool | 1341 | bool |
@@ -1443,6 +1445,10 @@ config CPU_SUPPORTS_32BIT_KERNEL | |||
1443 | bool | 1445 | bool |
1444 | config CPU_SUPPORTS_64BIT_KERNEL | 1446 | config CPU_SUPPORTS_64BIT_KERNEL |
1445 | bool | 1447 | bool |
1448 | config CPU_SUPPORTS_CPUFREQ | ||
1449 | bool | ||
1450 | config CPU_SUPPORTS_ADDRWINCFG | ||
1451 | bool | ||
1446 | config CPU_SUPPORTS_HUGEPAGES | 1452 | config CPU_SUPPORTS_HUGEPAGES |
1447 | bool | 1453 | bool |
1448 | config MIPS_PGD_C0_CONTEXT | 1454 | config MIPS_PGD_C0_CONTEXT |