File: regs-rtc.h

package info (click to toggle)
linux 3.2.73-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 692,996 kB
  • sloc: ansic: 9,719,677; asm: 244,034; xml: 40,377; makefile: 23,845; perl: 16,079; python: 4,929; sh: 4,425; cpp: 3,598; yacc: 2,979; lex: 1,726; awk: 708; pascal: 231; lisp: 218; sed: 30
file content (37 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (28)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * PKUnity Real-Time Clock (RTC) control registers
 */
/*
 * RTC Alarm Reg RTC_RTAR
 */
#define RTC_RTAR	(PKUNITY_RTC_BASE + 0x0000)
/*
 * RTC Count Reg RTC_RCNR
 */
#define RTC_RCNR	(PKUNITY_RTC_BASE + 0x0004)
/*
 * RTC Trim Reg RTC_RTTR
 */
#define RTC_RTTR	(PKUNITY_RTC_BASE + 0x0008)
/*
 * RTC Status Reg RTC_RTSR
 */
#define RTC_RTSR	(PKUNITY_RTC_BASE + 0x0010)

/*
 * ALarm detected RTC_RTSR_AL
 */
#define RTC_RTSR_AL		FIELD(1, 1, 0)
/*
 * 1 Hz clock detected RTC_RTSR_HZ
 */
#define RTC_RTSR_HZ		FIELD(1, 1, 1)
/*
 * ALarm interrupt Enable RTC_RTSR_ALE
 */
#define RTC_RTSR_ALE		FIELD(1, 1, 2)
/*
 * 1 Hz clock interrupt Enable RTC_RTSR_HZE
 */
#define RTC_RTSR_HZE		FIELD(1, 1, 3)