diff options
author | Haojian Zhuang <haojian.zhuang@marvell.com> | 2012-02-23 23:37:33 +0800 |
---|---|---|
committer | Haojian Zhuang <haojian.zhuang@marvell.com> | 2012-02-28 11:23:09 +0800 |
commit | 4128e27584f58bce9f56a9a0346650c94a651332 (patch) | |
tree | bcfa500d88f31351b5d761e512d97ce872924ab8 /arch/arm/mach-mmp/include/mach/regs-rtc.h | |
parent | 8e8bbcb3685ab809348d300b8e2c1f1ea0294e81 (diff) |
ARM: mmp: enable rtc in pxa910
Support rtc-sa1100 driver in pxa910.
Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Diffstat (limited to 'arch/arm/mach-mmp/include/mach/regs-rtc.h')
-rw-r--r-- | arch/arm/mach-mmp/include/mach/regs-rtc.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/mach-mmp/include/mach/regs-rtc.h b/arch/arm/mach-mmp/include/mach/regs-rtc.h new file mode 100644 index 00000000000..5bff886a394 --- /dev/null +++ b/arch/arm/mach-mmp/include/mach/regs-rtc.h @@ -0,0 +1,23 @@ +#ifndef __ASM_MACH_REGS_RTC_H +#define __ASM_MACH_REGS_RTC_H + +#include <mach/addr-map.h> + +#define RTC_VIRT_BASE (APB_VIRT_BASE + 0x10000) +#define RTC_REG(x) (*((volatile u32 __iomem *)(RTC_VIRT_BASE + (x)))) + +/* + * Real Time Clock + */ + +#define RCNR RTC_REG(0x00) /* RTC Count Register */ +#define RTAR RTC_REG(0x04) /* RTC Alarm Register */ +#define RTSR RTC_REG(0x08) /* RTC Status Register */ +#define RTTR RTC_REG(0x0C) /* RTC Timer Trim Register */ + +#define RTSR_HZE (1 << 3) /* HZ interrupt enable */ +#define RTSR_ALE (1 << 2) /* RTC alarm interrupt enable */ +#define RTSR_HZ (1 << 1) /* HZ rising-edge detected */ +#define RTSR_AL (1 << 0) /* RTC alarm detected */ + +#endif /* __ASM_MACH_REGS_RTC_H */ |