MIPS: Lemote 2F: Add cs5536 MFGPT timer support
authorWu Zhangjin <wuzhangjin@gmail.com>
Mon, 16 Nov 2009 17:32:57 +0000 (01:32 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 17 Dec 2009 01:57:19 +0000 (01:57 +0000)
commit916daba8a9f2617ded8b9255e6b39f066ef60178
tree63aa70b44e483bc30154130707e4d7529493543c
parent6e552c9b3aa7ba3be57b9569ec92a38af5c65e48
MIPS: Lemote 2F: Add cs5536 MFGPT timer support

CPUFreq support for Loongson 2F requires an external timer.

Because the frequency of the MIPS Timer is related to the CPU frequency
which itself is variable another timer of constant frequency is required.

Export the mfgpt0 counter disable / enable operations for the coming
suspend support to suspend / resume the timer.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: cpufreq@vger.kernel.org,
Cc: Dave Jones <davej@redhat.com>,
Cc: Dominik Brodowski <linux@dominikbrodowski.net>,
Cc: yanh@lemote.com
Cc: huhb@lemote.com,
Patchwork: http://patchwork.linux-mips.org/patch/658/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mach-loongson/cs5536/cs5536_mfgpt.h [new file with mode: 0644]
arch/mips/loongson/Kconfig
arch/mips/loongson/common/cs5536/Makefile
arch/mips/loongson/common/cs5536/cs5536_mfgpt.c [new file with mode: 0644]
arch/mips/loongson/common/time.c