Merge branch 'for-3.18-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj...
[linux/fpc-iii.git] / arch / unicore32 / include / mach / regs-rtc.h
blobe94ca193271d640f1a1af4ad739427348dc8c6a8
1 /*
2 * PKUnity Real-Time Clock (RTC) control registers
3 */
4 /*
5 * RTC Alarm Reg RTC_RTAR
6 */
7 #define RTC_RTAR (PKUNITY_RTC_BASE + 0x0000)
8 /*
9 * RTC Count Reg RTC_RCNR
11 #define RTC_RCNR (PKUNITY_RTC_BASE + 0x0004)
13 * RTC Trim Reg RTC_RTTR
15 #define RTC_RTTR (PKUNITY_RTC_BASE + 0x0008)
17 * RTC Status Reg RTC_RTSR
19 #define RTC_RTSR (PKUNITY_RTC_BASE + 0x0010)
22 * ALarm detected RTC_RTSR_AL
24 #define RTC_RTSR_AL FIELD(1, 1, 0)
26 * 1 Hz clock detected RTC_RTSR_HZ
28 #define RTC_RTSR_HZ FIELD(1, 1, 1)
30 * ALarm interrupt Enable RTC_RTSR_ALE
32 #define RTC_RTSR_ALE FIELD(1, 1, 2)
34 * 1 Hz clock interrupt Enable RTC_RTSR_HZE
36 #define RTC_RTSR_HZE FIELD(1, 1, 3)