diff options
author | Daniel Drake <dsd@laptop.org> | 2011-06-25 12:34:14 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2011-07-06 17:44:38 -0400 |
commit | 7bc74b3df73776fe06f3df9fafd2d2698e6ca28a (patch) | |
tree | 166bd6e0b0de947dd278acac03480eb359bff93e /arch/x86/include | |
parent | bc4ecd5a5efc2435e6debfb7b279a15ae96697fd (diff) |
x86, olpc-xo1-sci: Add GPE handler and ebook switch functionality
The EC in the OLPC XO-1 delivers GPE events to provide various
notifications. Add the basic code for GPE/EC event processing and
enable the ebook switch, which can be used as a wakeup source.
Signed-off-by: Daniel Drake <dsd@laptop.org>
Link: http://lkml.kernel.org/r/1309019658-1712-8-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 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/olpc.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/include/asm/olpc.h b/arch/x86/include/asm/olpc.h index 0e56d01907fe..87bdbca72f94 100644 --- a/arch/x86/include/asm/olpc.h +++ b/arch/x86/include/asm/olpc.h | |||
@@ -111,6 +111,7 @@ extern int olpc_ec_cmd(unsigned char cmd, unsigned char *inbuf, size_t inlen, | |||
111 | #define EC_WRITE_SCI_MASK 0x1b | 111 | #define EC_WRITE_SCI_MASK 0x1b |
112 | #define EC_WAKE_UP_WLAN 0x24 | 112 | #define EC_WAKE_UP_WLAN 0x24 |
113 | #define EC_WLAN_LEAVE_RESET 0x25 | 113 | #define EC_WLAN_LEAVE_RESET 0x25 |
114 | #define EC_READ_EB_MODE 0x2a | ||
114 | #define EC_SET_SCI_INHIBIT 0x32 | 115 | #define EC_SET_SCI_INHIBIT 0x32 |
115 | #define EC_SET_SCI_INHIBIT_RELEASE 0x34 | 116 | #define EC_SET_SCI_INHIBIT_RELEASE 0x34 |
116 | #define EC_WLAN_ENTER_RESET 0x35 | 117 | #define EC_WLAN_ENTER_RESET 0x35 |
@@ -144,7 +145,7 @@ extern int olpc_ec_cmd(unsigned char cmd, unsigned char *inbuf, size_t inlen, | |||
144 | #define OLPC_GPIO_SMB_CLK 14 | 145 | #define OLPC_GPIO_SMB_CLK 14 |
145 | #define OLPC_GPIO_SMB_DATA 15 | 146 | #define OLPC_GPIO_SMB_DATA 15 |
146 | #define OLPC_GPIO_WORKAUX geode_gpio(24) | 147 | #define OLPC_GPIO_WORKAUX geode_gpio(24) |
147 | #define OLPC_GPIO_LID geode_gpio(26) | 148 | #define OLPC_GPIO_LID 26 |
148 | #define OLPC_GPIO_ECSCI geode_gpio(27) | 149 | #define OLPC_GPIO_ECSCI 27 |
149 | 150 | ||
150 | #endif /* _ASM_X86_OLPC_H */ | 151 | #endif /* _ASM_X86_OLPC_H */ |