MIPS: Yeeloong 2F: Add LID open event as the wakeup event
authorWu Zhangjin <wuzhangjin@gmail.com>
Sat, 21 Nov 2009 11:05:24 +0000 (19:05 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 17 Dec 2009 01:57:28 +0000 (01:57 +0000)
commitcb1ed9e117098269de3c0dfff816dff453dd4b59
tree918d2eec2f59ca418e395d44b95881951a4dddab
parentec614d80b58677de30b876a16fdd3fde85bebdc1
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>
arch/mips/include/asm/mach-loongson/loongson.h
arch/mips/loongson/lemote-2f/irq.c
arch/mips/loongson/lemote-2f/pm.c