[PATCH] RTC: Add rtc_year_days() to calculate tm_yday
[linux-2.6-block.git] / drivers / rtc / Kconfig
CommitLineData
0c86edc0 1\#
c58411e9
AZ
2# RTC class/drivers configuration
3#
4
0c86edc0
AZ
5menu "Real Time Clock"
6
c58411e9 7config RTC_LIB
0c86edc0
AZ
8 tristate
9
10config RTC_CLASS
11 tristate "RTC class"
12 depends on EXPERIMENTAL
13 default n
14 select RTC_LIB
15 help
16 Generic RTC class support. If you say yes here, you will
17 be allowed to plug one or more RTCs to your system. You will
18 probably want to enable one of more of the interfaces below.
19
20 This driver can also be built as a module. If so, the module
21 will be called rtc-class.
22
23config RTC_HCTOSYS
24 bool "Set system time from RTC on startup"
25 depends on RTC_CLASS = y
26 default y
27 help
28 If you say yes here, the system time will be set using
29 the value read from the specified RTC device. This is useful
30 in order to avoid unnecessary fschk runs.
31
32config RTC_HCTOSYS_DEVICE
33 string "The RTC to read the time from"
34 depends on RTC_HCTOSYS = y
35 default "rtc0"
36 help
37 The RTC device that will be used as the source for
38 the system time, usually rtc0.
39
40comment "RTC interfaces"
41 depends on RTC_CLASS
42
c5c3e192
AZ
43config RTC_INTF_SYSFS
44 tristate "sysfs"
45 depends on RTC_CLASS && SYSFS
46 default RTC_CLASS
47 help
48 Say yes here if you want to use your RTC using the sysfs
49 interface, /sys/class/rtc/rtcX .
50
51 This driver can also be built as a module. If so, the module
52 will be called rtc-sysfs.
53
728a2947
AZ
54config RTC_INTF_PROC
55 tristate "proc"
56 depends on RTC_CLASS && PROC_FS
57 default RTC_CLASS
58 help
59 Say yes here if you want to use your RTC using the proc
60 interface, /proc/driver/rtc .
61
62 This driver can also be built as a module. If so, the module
63 will be called rtc-proc.
64
e824290e
AZ
65config RTC_INTF_DEV
66 tristate "dev"
67 depends on RTC_CLASS
68 default RTC_CLASS
69 help
70 Say yes here if you want to use your RTC using the dev
71 interface, /dev/rtc .
72
73 This driver can also be built as a module. If so, the module
74 will be called rtc-dev.
75
655066c3
AN
76config RTC_INTF_DEV_UIE_EMUL
77 bool "RTC UIE emulation on dev interface"
78 depends on RTC_INTF_DEV
79 help
80 Provides an emulation for RTC_UIE if the underlaying rtc chip
81 driver did not provide RTC_UIE ioctls.
82
0c86edc0
AZ
83comment "RTC drivers"
84 depends on RTC_CLASS
85
1fec7c66
AZ
86config RTC_DRV_X1205
87 tristate "Xicor/Intersil X1205"
88 depends on RTC_CLASS && I2C
89 help
90 If you say yes here you get support for the
91 Xicor/Intersil X1205 RTC chip.
92
93 This driver can also be built as a module. If so, the module
94 will be called rtc-x1205.
95
1abb0dc9
DB
96config RTC_DRV_DS1307
97 tristate "Dallas/Maxim DS1307 and similar I2C RTC chips"
98 depends on RTC_CLASS && I2C
99 help
100 If you say yes here you get support for various compatible RTC
101 chips (often with battery backup) connected with I2C. This driver
102 should handle DS1307, DS1337, DS1338, DS1339, DS1340, ST M41T00,
103 and probably other chips. In some cases the RTC must already
104 have been initialized (by manufacturing or a bootloader).
105
106 The first seven registers on these chips hold an RTC, and other
107 registers may add features such as NVRAM, a trickle charger for
108 the RTC/NVRAM backup power, and alarms. This driver may not
109 expose all those available chip features.
110
111 This driver can also be built as a module. If so, the module
112 will be called rtc-ds1307.
113
edf1aaa3
AZ
114config RTC_DRV_DS1672
115 tristate "Dallas/Maxim DS1672"
116 depends on RTC_CLASS && I2C
117 help
118 If you say yes here you get support for the
119 Dallas/Maxim DS1672 timekeeping chip.
120
121 This driver can also be built as a module. If so, the module
122 will be called rtc-ds1672.
123
b5a82d62
AZ
124config RTC_DRV_PCF8563
125 tristate "Philips PCF8563/Epson RTC8564"
126 depends on RTC_CLASS && I2C
127 help
128 If you say yes here you get support for the
129 Philips PCF8563 RTC chip. The Epson RTC8564
130 should work as well.
131
132 This driver can also be built as a module. If so, the module
133 will be called rtc-pcf8563.
134
9c0c5705
L
135config RTC_DRV_PCF8583
136 tristate "Philips PCF8583"
137 depends on RTC_CLASS && I2C
138 help
139 If you say yes here you get support for the
140 Philips PCF8583 RTC chip.
141
142 This driver can also be built as a module. If so, the module
143 will be called rtc-pcf8583.
144
7520b94d
AZ
145config RTC_DRV_RS5C372
146 tristate "Ricoh RS5C372A/B"
147 depends on RTC_CLASS && I2C
148 help
149 If you say yes here you get support for the
150 Ricoh RS5C372A and RS5C372B RTC chips.
151
152 This driver can also be built as a module. If so, the module
153 will be called rtc-rs5c372.
154
1d98af87
AZ
155config RTC_DRV_M48T86
156 tristate "ST M48T86/Dallas DS12887"
157 depends on RTC_CLASS
158 help
159 If you say Y here you will get support for the
160 ST M48T86 and Dallas DS12887 RTC chips.
161
162 This driver can also be built as a module. If so, the module
163 will be called rtc-m48t86.
164
fd507e2f
AZ
165config RTC_DRV_EP93XX
166 tristate "Cirrus Logic EP93XX"
167 depends on RTC_CLASS && ARCH_EP93XX
168 help
169 If you say yes here you get support for the
170 RTC embedded in the Cirrus Logic EP93XX processors.
171
172 This driver can also be built as a module. If so, the module
173 will be called rtc-ep93xx.
174
e842f1c8
RP
175config RTC_DRV_SA1100
176 tristate "SA11x0/PXA2xx"
177 depends on RTC_CLASS && (ARCH_SA1100 || ARCH_PXA)
178 help
179 If you say Y here you will get access to the real time clock
180 built into your SA11x0 or PXA2xx CPU.
181
182 To compile this driver as a module, choose M here: the
183 module will be called rtc-sa1100.
fd507e2f 184
8417eb7a 185config RTC_DRV_VR41XX
3e16f6af 186 tristate "NEC VR41XX"
8417eb7a 187 depends on RTC_CLASS && CPU_VR41XX
3e16f6af
AZ
188 help
189 If you say Y here you will get access to the real time clock
190 built into your NEC VR41XX CPU.
191
192 To compile this driver as a module, choose M here: the
193 module will be called rtc-vr41xx.
8417eb7a 194
8ae6e163
DS
195config RTC_DRV_PL031
196 tristate "ARM AMBA PL031 RTC"
197 depends on RTC_CLASS && ARM_AMBA
198 help
199 If you say Y here you will get access to ARM AMBA
200 PrimeCell PL031 UART found on certain ARM SOCs.
201
202 To compile this driver as a module, choose M here: the
203 module will be called rtc-pl031.
204
a95579cd
AZ
205config RTC_DRV_TEST
206 tristate "Test driver/device"
207 depends on RTC_CLASS
208 help
209 If you say yes here you get support for the
210 RTC test driver. It's a software RTC which can be
211 used to test the RTC subsystem APIs. It gets
212 the time from the system clock.
213 You want this driver only if you are doing development
214 on the RTC subsystem. Please read the source code
215 for further details.
216
217 This driver can also be built as a module. If so, the module
218 will be called rtc-test.
219
8e12ecc2
RA
220config RTC_DRV_MAX6902
221 tristate "Maxim 6902"
222 depends on RTC_CLASS && SPI
223 help
224 If you say yes here you will get support for the
225 Maxim MAX6902 spi RTC chip.
226
227 This driver can also be built as a module. If so, the module
228 will be called rtc-max6902.
229
362600fe
RA
230config RTC_DRV_V3020
231 tristate "EM Microelectronic V3020"
232 depends on RTC_CLASS
233 help
234 If you say yes here you will get support for the
235 EM Microelectronic v3020 RTC chip.
236
237 This driver can also be built as a module. If so, the module
238 will be called rtc-v3020.
239
0c86edc0 240endmenu