RT-AC66 3.0.0.4.374.130 core
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / include / linux / ds1286.h
blobd8989860e4cefba476e8e31566690e4f687e88de
1 /*
2 * Copyright (C) 1998, 1999, 2003 Ralf Baechle
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
7 */
8 #ifndef __LINUX_DS1286_H
9 #define __LINUX_DS1286_H
11 #include <asm/ds1286.h>
13 /**********************************************************************
14 * register summary
15 **********************************************************************/
16 #define RTC_HUNDREDTH_SECOND 0
17 #define RTC_SECONDS 1
18 #define RTC_MINUTES 2
19 #define RTC_MINUTES_ALARM 3
20 #define RTC_HOURS 4
21 #define RTC_HOURS_ALARM 5
22 #define RTC_DAY 6
23 #define RTC_DAY_ALARM 7
24 #define RTC_DATE 8
25 #define RTC_MONTH 9
26 #define RTC_YEAR 10
27 #define RTC_CMD 11
28 #define RTC_WHSEC 12
29 #define RTC_WSEC 13
30 #define RTC_UNUSED 14
32 /* RTC_*_alarm is always true if 2 MSBs are set */
33 # define RTC_ALARM_DONT_CARE 0xC0
37 * Bits in the month register
39 #define RTC_EOSC 0x80
40 #define RTC_ESQW 0x40
43 * Bits in the Command register
45 #define RTC_TDF 0x01
46 #define RTC_WAF 0x02
47 #define RTC_TDM 0x04
48 #define RTC_WAM 0x08
49 #define RTC_PU_LVL 0x10
50 #define RTC_IBH_LO 0x20
51 #define RTC_IPSW 0x40
52 #define RTC_TE 0x80
54 #endif /* __LINUX_DS1286_H */