summaryrefslogtreecommitdiffstats
path: root/arch/mips/loongson/Kconfig
diff options
context:
space:
mode:
authorWu Zhangjin2009-11-11 07:57:05 +0100
committerRalf Baechle2009-12-17 02:57:16 +0100
commitf181bf60e3f31cdab48bd8b9d913201ed2f9e522 (patch)
treeb59c0e13dcc0a592438d18f09425be5f5292d9a8 /arch/mips/loongson/Kconfig
parentMIPS: Add support for uncached accelerated mappings. (diff)
downloadkernel-qcow2-linux-f181bf60e3f31cdab48bd8b9d913201ed2f9e522.tar.gz
kernel-qcow2-linux-f181bf60e3f31cdab48bd8b9d913201ed2f9e522.tar.xz
kernel-qcow2-linux-f181bf60e3f31cdab48bd8b9d913201ed2f9e522.zip
MIPS: Loongson 2F: Add suspend support framework
This patch add basic suspend support for loongson2f family machines, loongson2f have a specific feature: when we set it's frequency to ZERO, it will go into a wait mode, and then can be waked up by the external interrupt. so, if we setup suitable interrupts before putting it into wait mode, we will be able wake it up whenever we want via sending the relative interrupts to it. These interrupts are board-specific, Yeeloong2F use the keyboard interrupt and SCI interrupt, but LingLoong and Fuloong2F use the interrupts connected to the processors directly. and BTW: some old LingLoong and FuLoong2F have no such interrupts connected, so, there is no way to wake them up from suspend mode. and therefore, please do not enable the kernel support for them. The board-specific support will be added in the coming patches. Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com> Cc: linux-mips@linux-mips.org Cc: yanh@lemote.com Cc: huhb@lemote.com Cc: Wu Zhangjin <wuzhangjin@gmail.com> Cc: Len Brown <len.brown@intel.com> Cc: Rafael J. Wysocki <rjw@sisk.pl> Cc: linux-pm@lists.linux-foundation.org Patchwork: http://patchwork.linux-mips.org/patch/629/ Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/loongson/Kconfig')
-rw-r--r--arch/mips/loongson/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/loongson/Kconfig b/arch/mips/loongson/Kconfig
index a214127895f2..17e72fde908c 100644
--- a/arch/mips/loongson/Kconfig
+++ b/arch/mips/loongson/Kconfig
@@ -61,3 +61,8 @@ endchoice
config CS5536
bool
+
+config LOONGSON_SUSPEND
+ bool
+ default y
+ depends on CPU_SUPPORTS_CPUFREQ && SUSPEND