Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
b08b4f8e G |
2 | /* |
3 | * PKUnity Real-Time Clock (RTC) control registers | |
4 | */ | |
5 | /* | |
6 | * RTC Alarm Reg RTC_RTAR | |
7 | */ | |
1cf46c42 | 8 | #define RTC_RTAR (PKUNITY_RTC_BASE + 0x0000) |
b08b4f8e G |
9 | /* |
10 | * RTC Count Reg RTC_RCNR | |
11 | */ | |
1cf46c42 | 12 | #define RTC_RCNR (PKUNITY_RTC_BASE + 0x0004) |
b08b4f8e G |
13 | /* |
14 | * RTC Trim Reg RTC_RTTR | |
15 | */ | |
1cf46c42 | 16 | #define RTC_RTTR (PKUNITY_RTC_BASE + 0x0008) |
b08b4f8e G |
17 | /* |
18 | * RTC Status Reg RTC_RTSR | |
19 | */ | |
1cf46c42 | 20 | #define RTC_RTSR (PKUNITY_RTC_BASE + 0x0010) |
b08b4f8e G |
21 | |
22 | /* | |
23 | * ALarm detected RTC_RTSR_AL | |
24 | */ | |
25 | #define RTC_RTSR_AL FIELD(1, 1, 0) | |
26 | /* | |
27 | * 1 Hz clock detected RTC_RTSR_HZ | |
28 | */ | |
29 | #define RTC_RTSR_HZ FIELD(1, 1, 1) | |
30 | /* | |
31 | * ALarm interrupt Enable RTC_RTSR_ALE | |
32 | */ | |
33 | #define RTC_RTSR_ALE FIELD(1, 1, 2) | |
34 | /* | |
35 | * 1 Hz clock interrupt Enable RTC_RTSR_HZE | |
36 | */ | |
37 | #define RTC_RTSR_HZE FIELD(1, 1, 3) | |
38 |