MIPS: Loongson 2F: Cleanup the #if clauses
authorWu Zhangjin <wuzhangjin@gmail.com>
Wed, 11 Nov 2009 05:39:12 +0000 (13:39 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 17 Dec 2009 01:57:15 +0000 (01:57 +0000)
commit55045ff5557bc804752e84dca5d1b1f1d4bb4e31
tree981f6201429b833afb801079aa6abf5e72dc4349
parent6e34358ed4f89556b5474ff883ac148750189ef0
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>
arch/mips/Kconfig
arch/mips/include/asm/mach-loongson/loongson.h
arch/mips/include/asm/mach-loongson/pci.h
arch/mips/loongson/common/init.c
arch/mips/loongson/common/mem.c
arch/mips/loongson/common/pci.c