Go to the documentation of this file.
10 #ifndef __LINUX_DS17287RTC_H
11 #define __LINUX_DS17287RTC_H
13 #include <linux/rtc.h>
17 #define DS_REGA_DV2 0x40
18 #define DS_REGA_DV1 0x20
19 #define DS_REGA_DV0 0x10
22 #define DS_B1_MODEL 0x40
23 #define DS_B1_SN1 0x41
24 #define DS_B1_SN2 0x42
25 #define DS_B1_SN3 0x43
26 #define DS_B1_SN4 0x44
27 #define DS_B1_SN5 0x45
28 #define DS_B1_SN6 0x46
29 #define DS_B1_CRC 0x47
30 #define DS_B1_CENTURY 0x48
31 #define DS_B1_DALARM 0x49
32 #define DS_B1_XCTRL4A 0x4a
33 #define DS_B1_XCTRL4B 0x4b
34 #define DS_B1_RTCADDR2 0x4e
35 #define DS_B1_RTCADDR3 0x4f
36 #define DS_B1_RAMLSB 0x50
37 #define DS_B1_RAMMSB 0x51
38 #define DS_B1_RAMDPORT 0x53
42 #define DS_XCTRL4A_VRT2 0x80
43 #define DS_XCTRL4A_INCR 0x40
44 #define DS_XCTRL4A_BME 0x20
45 #define DS_XCTRL4A_PAB 0x08
46 #define DS_XCTRL4A_RF 0x04
47 #define DS_XCTRL4A_WF 0x02
48 #define DS_XCTRL4A_KF 0x01
51 #define DS_XCTRL4A_IFS (DS_XCTRL4A_RF|DS_XCTRL4A_WF|DS_XCTRL4A_KF)
54 #define DS_XCTRL4B_ABE 0x80
55 #define DS_XCTRL4B_E32K 0x40
56 #define DS_XCTRL4B_CS 0x20
57 #define DS_XCTRL4B_RCE 0x10
58 #define DS_XCTRL4B_PRS 0x08
59 #define DS_XCTRL4B_RIE 0x04
60 #define DS_XCTRL4B_WFE 0x02
61 #define DS_XCTRL4B_KFE 0x01
64 #define DS_XCTRL4B_IFES (DS_XCTRL4B_RIE|DS_XCTRL4B_WFE|DS_XCTRL4B_KFE)