aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cs5535.h
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2011-06-25 12:34:09 -0400
committerH. Peter Anvin <hpa@linux.intel.com>2011-07-06 17:44:23 -0400
commit7a0d4fcf6d4b80b30503fd2701eeef1883e11404 (patch)
tree45d95b7d9ce6f8ebb3b1fffeb42b563b6a6667c7 /include/linux/cs5535.h
parentf70d8ef4745349000dc599b6873a8b866289c694 (diff)
x86, olpc: Move CS5536-related constants to cs5535.h
Move these definitions into the relevant header file. This was requested in the review of the upcoming XO-1 suspend/resume code. Signed-off-by: Daniel Drake <dsd@laptop.org> Link: http://lkml.kernel.org/r/1309019658-1712-3-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.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/cs5535.h b/include/linux/cs5535.h
index 6fe2114f8ad2..e46b8b0f9057 100644
--- a/include/linux/cs5535.h
+++ b/include/linux/cs5535.h
@@ -49,6 +49,27 @@
49#define LBAR_ACPI_SIZE 0x40 49#define LBAR_ACPI_SIZE 0x40
50#define LBAR_PMS_SIZE 0x80 50#define LBAR_PMS_SIZE 0x80
51 51
52/*
53 * PMC registers (PMS block)
54 * It is only safe to access these registers as dword accesses.
55 * See CS5536 Specification Update erratas 17 & 18
56 */
57#define CS5536_PM_SCLK 0x10
58#define CS5536_PM_IN_SLPCTL 0x20
59#define CS5536_PM_WKXD 0x34
60#define CS5536_PM_WKD 0x30
61#define CS5536_PM_SSC 0x54
62
63/*
64 * PM registers (ACPI block)
65 * It is only safe to access these registers as dword accesses.
66 * See CS5536 Specification Update erratas 17 & 18
67 */
68#define CS5536_PM1_STS 0x00
69#define CS5536_PM1_EN 0x02
70#define CS5536_PM1_CNT 0x08
71#define CS5536_PM_GPE0_STS 0x18
72
52/* VSA2 magic values */ 73/* VSA2 magic values */
53#define VSA_VRC_INDEX 0xAC1C 74#define VSA_VRC_INDEX 0xAC1C
54#define VSA_VRC_DATA 0xAC1E 75#define VSA_VRC_DATA 0xAC1E