diff options
author | Daniel Drake <dsd@laptop.org> | 2011-06-25 12:34:11 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2011-07-06 17:44:32 -0400 |
commit | 97c4cb71c18fe045a763ff6681a8ebbbbbec0b2b (patch) | |
tree | 66874802ab61cbf45c1d4d8d645b93e7600cdc0c /include | |
parent | a3128588b3c6be634a9013a375903e0b55668f0a (diff) |
x86, olpc: Add XO-1 suspend/resume support
Add code needed for basic suspend/resume of the XO-1 laptop.
Based on earlier work by Jordan Crouse, Andres Salomon, and others.
This patch incorporates all earlier feedback from Thomas Gleixner. To
clarify a certain point (now more obvious in the code itself):
On resume, OpenFirmware returns execution to Linux in protected mode
with a kernel-compatible GDT already set up. The changes and
simplifications suggested have all been included.
Signed-off-by: Daniel Drake <dsd@laptop.org>
Link: http://lkml.kernel.org/r/1309019658-1712-5-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')
-rw-r--r-- | include/linux/cs5535.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/cs5535.h b/include/linux/cs5535.h index e46b8b0f9057..2facf16f017b 100644 --- a/include/linux/cs5535.h +++ b/include/linux/cs5535.h | |||
@@ -70,6 +70,9 @@ | |||
70 | #define CS5536_PM1_CNT 0x08 | 70 | #define CS5536_PM1_CNT 0x08 |
71 | #define CS5536_PM_GPE0_STS 0x18 | 71 | #define CS5536_PM_GPE0_STS 0x18 |
72 | 72 | ||
73 | /* CS5536_PM1_EN bits */ | ||
74 | #define CS5536_PM_PWRBTN (1 << 8) | ||
75 | |||
73 | /* VSA2 magic values */ | 76 | /* VSA2 magic values */ |
74 | #define VSA_VRC_INDEX 0xAC1C | 77 | #define VSA_VRC_INDEX 0xAC1C |
75 | #define VSA_VRC_DATA 0xAC1E | 78 | #define VSA_VRC_DATA 0xAC1E |