x86, olpc-xo1-sci: Add lid switch functionality
commit2cf2baea103f0a3d68b0f989d28df66f16dbc834
authorDaniel Drake <dsd@laptop.org>
Sat, 25 Jun 2011 16:34:15 +0000 (25 17:34 +0100)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 6 Jul 2011 21:44:39 +0000 (6 14:44 -0700)
tree2d9e8f2a57e5ff11a0f95ddeb8b1134a8136a835
parent7bc74b3df73776fe06f3df9fafd2d2698e6ca28a
x86, olpc-xo1-sci: Add lid switch functionality

Configure the XO-1's lid switch GPIO to trigger an SCI interrupt,
and correctly expose this input device which can be used as a wakeup
source.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Link: http://lkml.kernel.org/r/1309019658-1712-9-git-send-email-dsd@laptop.org
Acked-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/Kconfig
arch/x86/platform/olpc/olpc-xo1-sci.c
include/linux/cs5535.h