aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2011-06-25 12:34:17 -0400
committerH. Peter Anvin <hpa@linux.intel.com>2011-07-06 17:44:42 -0400
commitcfee95977bea090ae5ec4fd442ebd381792d46c4 (patch)
tree2c82666a095236524def83031ce47f4dd3387237 /include
parente1040ac693bac19eaeafbd6c5fd24d9429b5eeb8 (diff)
x86, olpc: Add XO-1 RTC driver
Add a driver to configure the XO-1 RTC via CS5536 MSRs, to be used as a system wakeup source via olpc-xo1-pm. Device detection is based on finding the relevant device tree node. Signed-off-by: Daniel Drake <dsd@laptop.org> Link: http://lkml.kernel.org/r/1309019658-1712-11-git-send-email-dsd@laptop.org Acked-by: Andres Salomon <dilinger@queued.net> Acked-by: Grant Likely <grant.likely@secretlab.ca> Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: devicetree-discuss@lists.ozlabs.org Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/cs5535.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/cs5535.h b/include/linux/cs5535.h
index 72954c6bf5d6..c077aec3a6ff 100644
--- a/include/linux/cs5535.h
+++ b/include/linux/cs5535.h
@@ -40,6 +40,10 @@
40#define MSR_MFGPT_NR 0x51400029 40#define MSR_MFGPT_NR 0x51400029
41#define MSR_MFGPT_SETUP 0x5140002B 41#define MSR_MFGPT_SETUP 0x5140002B
42 42
43#define MSR_RTC_DOMA_OFFSET 0x51400055
44#define MSR_RTC_MONA_OFFSET 0x51400056
45#define MSR_RTC_CEN_OFFSET 0x51400057
46
43#define MSR_LX_SPARE_MSR 0x80000011 /* DC-specific */ 47#define MSR_LX_SPARE_MSR 0x80000011 /* DC-specific */
44 48
45#define MSR_GX_GLD_MSR_CONFIG 0xC0002001 49#define MSR_GX_GLD_MSR_CONFIG 0xC0002001
@@ -95,6 +99,7 @@ static inline int cs5535_pic_unreqz_select_high(unsigned int group,
95 99
96/* CS5536_PM1_EN bits */ 100/* CS5536_PM1_EN bits */
97#define CS5536_PM_PWRBTN (1 << 8) 101#define CS5536_PM_PWRBTN (1 << 8)
102#define CS5536_PM_RTC (1 << 10)
98 103
99/* CS5536_PM_GPE0_STS bits */ 104/* CS5536_PM_GPE0_STS bits */
100#define CS5536_GPIOM7_PME_FLAG (1 << 31) 105#define CS5536_GPIOM7_PME_FLAG (1 << 31)