diff options
author | Wu Zhangjin <wuzhangjin@gmail.com> | 2009-11-21 06:05:24 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-12-16 20:57:28 -0500 |
commit | cb1ed9e117098269de3c0dfff816dff453dd4b59 (patch) | |
tree | 918d2eec2f59ca418e395d44b95881951a4dddab /arch/mips/include/asm/mach-loongson | |
parent | ec614d80b58677de30b876a16fdd3fde85bebdc1 (diff) |
MIPS: Yeeloong 2F: Add LID open event as the wakeup event
Yeeloong 2F netbook has an KB3310B embedded controller to manage the LID
action. When the LID is closed or opened a SCI interrupt is sent out and
the corresponding event is saved to an EC register for later query.
Allow the LID open interrupt to wake the processor from wait mode if it is
in the suspend mode.
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/685/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/mach-loongson')
-rw-r--r-- | arch/mips/include/asm/mach-loongson/loongson.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-loongson/loongson.h b/arch/mips/include/asm/mach-loongson/loongson.h index a7fa66e85988..06c28f387116 100644 --- a/arch/mips/include/asm/mach-loongson/loongson.h +++ b/arch/mips/include/asm/mach-loongson/loongson.h | |||
@@ -41,6 +41,7 @@ extern void __init bonito_irq_init(void); | |||
41 | extern void __init set_irq_trigger_mode(void); | 41 | extern void __init set_irq_trigger_mode(void); |
42 | extern void __init mach_init_irq(void); | 42 | extern void __init mach_init_irq(void); |
43 | extern void mach_irq_dispatch(unsigned int pending); | 43 | extern void mach_irq_dispatch(unsigned int pending); |
44 | extern int mach_i8259_irq(void); | ||
44 | 45 | ||
45 | /* We need this in some places... */ | 46 | /* We need this in some places... */ |
46 | #define delay() ({ \ | 47 | #define delay() ({ \ |