aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/Kconfig')
-rw-r--r--drivers/rtc/Kconfig276
1 files changed, 156 insertions, 120 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index ef1eae98ba44..5e439836db2d 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -21,21 +21,31 @@ config RTC_CLASS
21 will be called rtc-class. 21 will be called rtc-class.
22 22
23config RTC_HCTOSYS 23config RTC_HCTOSYS
24 bool "Set system time from RTC on startup" 24 bool "Set system time from RTC on startup and resume"
25 depends on RTC_CLASS = y 25 depends on RTC_CLASS = y
26 default y 26 default y
27 help 27 help
28 If you say yes here, the system time will be set using 28 If you say yes here, the system time (wall clock) will be set using
29 the value read from the specified RTC device. This is useful 29 the value read from a specified RTC device. This is useful to avoid
30 in order to avoid unnecessary fsck runs. 30 unnecessary fsck runs at boot time, and to network better.
31 31
32config RTC_HCTOSYS_DEVICE 32config RTC_HCTOSYS_DEVICE
33 string "The RTC to read the time from" 33 string "RTC used to set the system time"
34 depends on RTC_HCTOSYS = y 34 depends on RTC_HCTOSYS = y
35 default "rtc0" 35 default "rtc0"
36 help 36 help
37 The RTC device that will be used as the source for 37 The RTC device that will be used to (re)initialize the system
38 the system time, usually rtc0. 38 clock, usually rtc0. Initialization is done when the system
39 starts up, and when it resumes from a low power state.
40
41 This clock should be battery-backed, so that it reads the correct
42 time when the system boots from a power-off state. Otherwise, your
43 system will need an external clock source (like an NTP server).
44
45 If the clock you specify here is not battery backed, it may still
46 be useful to reinitialize system time when resuming from system
47 sleep states. Do not specify an RTC here unless it stays powered
48 during all this system's supported sleep states.
39 49
40config RTC_DEBUG 50config RTC_DEBUG
41 bool "RTC debug support" 51 bool "RTC debug support"
@@ -48,7 +58,7 @@ comment "RTC interfaces"
48 depends on RTC_CLASS 58 depends on RTC_CLASS
49 59
50config RTC_INTF_SYSFS 60config RTC_INTF_SYSFS
51 tristate "sysfs" 61 boolean "sysfs"
52 depends on RTC_CLASS && SYSFS 62 depends on RTC_CLASS && SYSFS
53 default RTC_CLASS 63 default RTC_CLASS
54 help 64 help
@@ -59,7 +69,7 @@ config RTC_INTF_SYSFS
59 will be called rtc-sysfs. 69 will be called rtc-sysfs.
60 70
61config RTC_INTF_PROC 71config RTC_INTF_PROC
62 tristate "proc" 72 boolean "proc"
63 depends on RTC_CLASS && PROC_FS 73 depends on RTC_CLASS && PROC_FS
64 default RTC_CLASS 74 default RTC_CLASS
65 help 75 help
@@ -71,7 +81,7 @@ config RTC_INTF_PROC
71 will be called rtc-proc. 81 will be called rtc-proc.
72 82
73config RTC_INTF_DEV 83config RTC_INTF_DEV
74 tristate "dev" 84 boolean "dev"
75 depends on RTC_CLASS 85 depends on RTC_CLASS
76 default RTC_CLASS 86 default RTC_CLASS
77 help 87 help
@@ -92,44 +102,26 @@ config RTC_INTF_DEV_UIE_EMUL
92 driver does not expose RTC_UIE ioctls. Those requests generate 102 driver does not expose RTC_UIE ioctls. Those requests generate
93 once-per-second update interrupts, used for synchronization. 103 once-per-second update interrupts, used for synchronization.
94 104
95comment "RTC drivers" 105config RTC_DRV_TEST
106 tristate "Test driver/device"
96 depends on RTC_CLASS 107 depends on RTC_CLASS
97
98# this 'CMOS' RTC driver is arch dependent because <asm-generic/rtc.h>
99# requires <asm/mc146818rtc.h> defining CMOS_READ/CMOS_WRITE, and a
100# global rtc_lock ... it's not yet just another platform_device.
101
102config RTC_DRV_CMOS
103 tristate "PC-style 'CMOS' real time clock"
104 depends on RTC_CLASS && (X86 || ALPHA || ARM26 || ARM \
105 || M32R || ATARI || POWERPC)
106 help
107 Say "yes" here to get direct support for the real time clock
108 found in every PC or ACPI-based system, and some other boards.
109 Specifically the original MC146818, compatibles like those in
110 PC south bridges, the DS12887 or M48T86, some multifunction
111 or LPC bus chips, and so on.
112
113 Your system will need to define the platform device used by
114 this driver, otherwise it won't be accessible. This means
115 you can safely enable this driver if you don't know whether
116 or not your board has this kind of hardware.
117
118 This driver can also be built as a module. If so, the module
119 will be called rtc-cmos.
120
121config RTC_DRV_X1205
122 tristate "Xicor/Intersil X1205"
123 depends on RTC_CLASS && I2C
124 help 108 help
125 If you say yes here you get support for the 109 If you say yes here you get support for the
126 Xicor/Intersil X1205 RTC chip. 110 RTC test driver. It's a software RTC which can be
111 used to test the RTC subsystem APIs. It gets
112 the time from the system clock.
113 You want this driver only if you are doing development
114 on the RTC subsystem. Please read the source code
115 for further details.
127 116
128 This driver can also be built as a module. If so, the module 117 This driver can also be built as a module. If so, the module
129 will be called rtc-x1205. 118 will be called rtc-test.
119
120comment "I2C RTC drivers"
121 depends on RTC_CLASS
130 122
131config RTC_DRV_DS1307 123config RTC_DRV_DS1307
132 tristate "Dallas/Maxim DS1307 and similar I2C RTC chips" 124 tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00"
133 depends on RTC_CLASS && I2C 125 depends on RTC_CLASS && I2C
134 help 126 help
135 If you say yes here you get support for various compatible RTC 127 If you say yes here you get support for various compatible RTC
@@ -146,53 +138,55 @@ config RTC_DRV_DS1307
146 This driver can also be built as a module. If so, the module 138 This driver can also be built as a module. If so, the module
147 will be called rtc-ds1307. 139 will be called rtc-ds1307.
148 140
149config RTC_DRV_DS1553 141config RTC_DRV_DS1672
150 tristate "Dallas DS1553" 142 tristate "Dallas/Maxim DS1672"
151 depends on RTC_CLASS 143 depends on RTC_CLASS && I2C
152 help 144 help
153 If you say yes here you get support for the 145 If you say yes here you get support for the
154 Dallas DS1553 timekeeping chip. 146 Dallas/Maxim DS1672 timekeeping chip.
155 147
156 This driver can also be built as a module. If so, the module 148 This driver can also be built as a module. If so, the module
157 will be called rtc-ds1553. 149 will be called rtc-ds1672.
158 150
159config RTC_DRV_ISL1208 151config RTC_DRV_MAX6900
160 tristate "Intersil 1208" 152 tristate "Maxim 6900"
161 depends on RTC_CLASS && I2C 153 depends on RTC_CLASS && I2C
162 help 154 help
163 If you say yes here you get support for the 155 If you say yes here you will get support for the
164 Intersil 1208 RTC chip. 156 Maxim MAX6900 I2C RTC chip.
165 157
166 This driver can also be built as a module. If so, the module 158 This driver can also be built as a module. If so, the module
167 will be called rtc-isl1208. 159 will be called rtc-max6900.
168 160
169config RTC_DRV_DS1672 161config RTC_DRV_RS5C372
170 tristate "Dallas/Maxim DS1672" 162 tristate "Ricoh RS5C372A/B"
171 depends on RTC_CLASS && I2C 163 depends on RTC_CLASS && I2C
172 help 164 help
173 If you say yes here you get support for the 165 If you say yes here you get support for the
174 Dallas/Maxim DS1672 timekeeping chip. 166 Ricoh RS5C372A and RS5C372B RTC chips.
175 167
176 This driver can also be built as a module. If so, the module 168 This driver can also be built as a module. If so, the module
177 will be called rtc-ds1672. 169 will be called rtc-rs5c372.
178 170
179config RTC_DRV_DS1742 171config RTC_DRV_ISL1208
180 tristate "Dallas DS1742/1743" 172 tristate "Intersil 1208"
181 depends on RTC_CLASS 173 depends on RTC_CLASS && I2C
182 help 174 help
183 If you say yes here you get support for the 175 If you say yes here you get support for the
184 Dallas DS1742/1743 timekeeping chip. 176 Intersil 1208 RTC chip.
185 177
186 This driver can also be built as a module. If so, the module 178 This driver can also be built as a module. If so, the module
187 will be called rtc-ds1742. 179 will be called rtc-isl1208.
188 180
189config RTC_DRV_OMAP 181config RTC_DRV_X1205
190 tristate "TI OMAP1" 182 tristate "Xicor/Intersil X1205"
191 depends on RTC_CLASS && ( \ 183 depends on RTC_CLASS && I2C
192 ARCH_OMAP15XX || ARCH_OMAP16XX || ARCH_OMAP730 )
193 help 184 help
194 Say "yes" here to support the real time clock on TI OMAP1 chips. 185 If you say yes here you get support for the
195 This driver can also be built as a module called rtc-omap. 186 Xicor/Intersil X1205 RTC chip.
187
188 This driver can also be built as a module. If so, the module
189 will be called rtc-x1205.
196 190
197config RTC_DRV_PCF8563 191config RTC_DRV_PCF8563
198 tristate "Philips PCF8563/Epson RTC8564" 192 tristate "Philips PCF8563/Epson RTC8564"
@@ -207,16 +201,20 @@ config RTC_DRV_PCF8563
207 201
208config RTC_DRV_PCF8583 202config RTC_DRV_PCF8583
209 tristate "Philips PCF8583" 203 tristate "Philips PCF8583"
210 depends on RTC_CLASS && I2C && ARCH_RPC 204 depends on RTC_CLASS && I2C
211 help 205 help
212 If you say yes here you get support for the Philips PCF8583 206 If you say yes here you get support for the Philips PCF8583
213 RTC chip found on Acorn RiscPCs. This driver supports the 207 RTC chip found on Acorn RiscPCs. This driver supports the
214 platform specific method of retrieving the current year from 208 platform specific method of retrieving the current year from
215 the RTC's SRAM. 209 the RTC's SRAM. It will work on other platforms with the same
210 chip, but the year will probably have to be tweaked.
216 211
217 This driver can also be built as a module. If so, the module 212 This driver can also be built as a module. If so, the module
218 will be called rtc-pcf8583. 213 will be called rtc-pcf8583.
219 214
215comment "SPI RTC drivers"
216 depends on RTC_CLASS
217
220config RTC_DRV_RS5C348 218config RTC_DRV_RS5C348
221 tristate "Ricoh RS5C348A/B" 219 tristate "Ricoh RS5C348A/B"
222 depends on RTC_CLASS && SPI 220 depends on RTC_CLASS && SPI
@@ -227,15 +225,92 @@ config RTC_DRV_RS5C348
227 This driver can also be built as a module. If so, the module 225 This driver can also be built as a module. If so, the module
228 will be called rtc-rs5c348. 226 will be called rtc-rs5c348.
229 227
230config RTC_DRV_RS5C372 228config RTC_DRV_MAX6902
231 tristate "Ricoh RS5C372A/B" 229 tristate "Maxim 6902"
232 depends on RTC_CLASS && I2C 230 depends on RTC_CLASS && SPI
231 help
232 If you say yes here you will get support for the
233 Maxim MAX6902 SPI RTC chip.
234
235 This driver can also be built as a module. If so, the module
236 will be called rtc-max6902.
237
238comment "Platform RTC drivers"
239 depends on RTC_CLASS
240
241# this 'CMOS' RTC driver is arch dependent because <asm-generic/rtc.h>
242# requires <asm/mc146818rtc.h> defining CMOS_READ/CMOS_WRITE, and a
243# global rtc_lock ... it's not yet just another platform_device.
244
245config RTC_DRV_CMOS
246 tristate "PC-style 'CMOS'"
247 depends on RTC_CLASS && (X86 || ALPHA || ARM26 || ARM \
248 || M32R || ATARI || POWERPC)
249 help
250 Say "yes" here to get direct support for the real time clock
251 found in every PC or ACPI-based system, and some other boards.
252 Specifically the original MC146818, compatibles like those in
253 PC south bridges, the DS12887 or M48T86, some multifunction
254 or LPC bus chips, and so on.
255
256 Your system will need to define the platform device used by
257 this driver, otherwise it won't be accessible. This means
258 you can safely enable this driver if you don't know whether
259 or not your board has this kind of hardware.
260
261 This driver can also be built as a module. If so, the module
262 will be called rtc-cmos.
263
264config RTC_DRV_DS1553
265 tristate "Dallas DS1553"
266 depends on RTC_CLASS
233 help 267 help
234 If you say yes here you get support for the 268 If you say yes here you get support for the
235 Ricoh RS5C372A and RS5C372B RTC chips. 269 Dallas DS1553 timekeeping chip.
236 270
237 This driver can also be built as a module. If so, the module 271 This driver can also be built as a module. If so, the module
238 will be called rtc-rs5c372. 272 will be called rtc-ds1553.
273
274config RTC_DRV_DS1742
275 tristate "Dallas DS1742/1743"
276 depends on RTC_CLASS
277 help
278 If you say yes here you get support for the
279 Dallas DS1742/1743 timekeeping chip.
280
281 This driver can also be built as a module. If so, the module
282 will be called rtc-ds1742.
283
284config RTC_DRV_M48T86
285 tristate "ST M48T86/Dallas DS12887"
286 depends on RTC_CLASS
287 help
288 If you say Y here you will get support for the
289 ST M48T86 and Dallas DS12887 RTC chips.
290
291 This driver can also be built as a module. If so, the module
292 will be called rtc-m48t86.
293
294config RTC_DRV_V3020
295 tristate "EM Microelectronic V3020"
296 depends on RTC_CLASS
297 help
298 If you say yes here you will get support for the
299 EM Microelectronic v3020 RTC chip.
300
301 This driver can also be built as a module. If so, the module
302 will be called rtc-v3020.
303
304comment "on-CPU RTC drivers"
305 depends on RTC_CLASS
306
307config RTC_DRV_OMAP
308 tristate "TI OMAP1"
309 depends on RTC_CLASS && ( \
310 ARCH_OMAP15XX || ARCH_OMAP16XX || ARCH_OMAP730 )
311 help
312 Say "yes" here to support the real time clock on TI OMAP1 chips.
313 This driver can also be built as a module called rtc-omap.
239 314
240config RTC_DRV_S3C 315config RTC_DRV_S3C
241 tristate "Samsung S3C series SoC RTC" 316 tristate "Samsung S3C series SoC RTC"
@@ -253,16 +328,6 @@ config RTC_DRV_S3C
253 This driver can also be build as a module. If so, the module 328 This driver can also be build as a module. If so, the module
254 will be called rtc-s3c. 329 will be called rtc-s3c.
255 330
256config RTC_DRV_M48T86
257 tristate "ST M48T86/Dallas DS12887"
258 depends on RTC_CLASS
259 help
260 If you say Y here you will get support for the
261 ST M48T86 and Dallas DS12887 RTC chips.
262
263 This driver can also be built as a module. If so, the module
264 will be called rtc-m48t86.
265
266config RTC_DRV_EP93XX 331config RTC_DRV_EP93XX
267 tristate "Cirrus Logic EP93XX" 332 tristate "Cirrus Logic EP93XX"
268 depends on RTC_CLASS && ARCH_EP93XX 333 depends on RTC_CLASS && ARCH_EP93XX
@@ -308,7 +373,7 @@ config RTC_DRV_PL031
308 depends on RTC_CLASS && ARM_AMBA 373 depends on RTC_CLASS && ARM_AMBA
309 help 374 help
310 If you say Y here you will get access to ARM AMBA 375 If you say Y here you will get access to ARM AMBA
311 PrimeCell PL031 UART found on certain ARM SOCs. 376 PrimeCell PL031 RTC found on certain ARM SOCs.
312 377
313 To compile this driver as a module, choose M here: the 378 To compile this driver as a module, choose M here: the
314 module will be called rtc-pl031. 379 module will be called rtc-pl031.
@@ -319,41 +384,6 @@ config RTC_DRV_AT91RM9200
319 help 384 help
320 Driver for the Atmel AT91RM9200's internal RTC (Realtime Clock). 385 Driver for the Atmel AT91RM9200's internal RTC (Realtime Clock).
321 386
322config RTC_DRV_TEST
323 tristate "Test driver/device"
324 depends on RTC_CLASS
325 help
326 If you say yes here you get support for the
327 RTC test driver. It's a software RTC which can be
328 used to test the RTC subsystem APIs. It gets
329 the time from the system clock.
330 You want this driver only if you are doing development
331 on the RTC subsystem. Please read the source code
332 for further details.
333
334 This driver can also be built as a module. If so, the module
335 will be called rtc-test.
336
337config RTC_DRV_MAX6902
338 tristate "Maxim 6902"
339 depends on RTC_CLASS && SPI
340 help
341 If you say yes here you will get support for the
342 Maxim MAX6902 spi RTC chip.
343
344 This driver can also be built as a module. If so, the module
345 will be called rtc-max6902.
346
347config RTC_DRV_V3020
348 tristate "EM Microelectronic V3020"
349 depends on RTC_CLASS
350 help
351 If you say yes here you will get support for the
352 EM Microelectronic v3020 RTC chip.
353
354 This driver can also be built as a module. If so, the module
355 will be called rtc-v3020.
356
357config RTC_DRV_BFIN 387config RTC_DRV_BFIN
358 tristate "Blackfin On-Chip RTC" 388 tristate "Blackfin On-Chip RTC"
359 depends on RTC_CLASS && BFIN 389 depends on RTC_CLASS && BFIN
@@ -364,4 +394,10 @@ config RTC_DRV_BFIN
364 This driver can also be built as a module. If so, the module 394 This driver can also be built as a module. If so, the module
365 will be called rtc-bfin. 395 will be called rtc-bfin.
366 396
397config RTC_DRV_RS5C313
398 tristate "Ricoh RS5C313"
399 depends on RTC_CLASS && BROKEN
400 help
401 If you say yes here you get support for the Ricoh RS5C313 RTC chips.
402
367endmenu 403endmenu