summaryrefslogtreecommitdiffstats
path: root/include/linux/cs5535.h
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2011-06-25 17:34:15 +0100
committerH. Peter Anvin <hpa@linux.intel.com>2011-07-06 14:44:39 -0700
commit2cf2baea103f0a3d68b0f989d28df66f16dbc834 (patch)
tree2d9e8f2a57e5ff11a0f95ddeb8b1134a8136a835 /include/linux/cs5535.h
parent7bc74b3df73776fe06f3df9fafd2d2698e6ca28a (diff)
downloadlinux-2cf2baea103f0a3d68b0f989d28df66f16dbc834.tar.gz
linux-2cf2baea103f0a3d68b0f989d28df66f16dbc834.tar.bz2
linux-2cf2baea103f0a3d68b0f989d28df66f16dbc834.zip
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>
Diffstat (limited to 'include/linux/cs5535.h')
-rw-r--r--include/linux/cs5535.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/cs5535.h b/include/linux/cs5535.h
index d7e9a7f6ddb0..72954c6bf5d6 100644
--- a/include/linux/cs5535.h
+++ b/include/linux/cs5535.h
@@ -102,6 +102,7 @@ static inline int cs5535_pic_unreqz_select_high(unsigned int group,
/* CS5536_PM_GPE0_EN bits */
#define CS5536_GPIOM7_PME_EN (1 << 31)
+#define CS5536_GPIOM6_PME_EN (1 << 30)
/* VSA2 magic values */
#define VSA_VRC_INDEX 0xAC1C