Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris...
[linux/fpc-iii.git] / arch / arm / mach-mmp / include / mach / regs-rtc.h
blob5bff886a394127b7b4afbad628412c907d015551
1 #ifndef __ASM_MACH_REGS_RTC_H
2 #define __ASM_MACH_REGS_RTC_H
4 #include <mach/addr-map.h>
6 #define RTC_VIRT_BASE (APB_VIRT_BASE + 0x10000)
7 #define RTC_REG(x) (*((volatile u32 __iomem *)(RTC_VIRT_BASE + (x))))
9 /*
10 * Real Time Clock
13 #define RCNR RTC_REG(0x00) /* RTC Count Register */
14 #define RTAR RTC_REG(0x04) /* RTC Alarm Register */
15 #define RTSR RTC_REG(0x08) /* RTC Status Register */
16 #define RTTR RTC_REG(0x0C) /* RTC Timer Trim Register */
18 #define RTSR_HZE (1 << 3) /* HZ interrupt enable */
19 #define RTSR_ALE (1 << 2) /* RTC alarm interrupt enable */
20 #define RTSR_HZ (1 << 1) /* HZ rising-edge detected */
21 #define RTSR_AL (1 << 0) /* RTC alarm detected */
23 #endif /* __ASM_MACH_REGS_RTC_H */