blob: 6210280135c88bc2656f566a84085075fd111b4d [file] [log] [blame]
David Brownell7be2c7c2007-02-10 01:46:02 -08001#
Alessandro Zummoc58411e2006-03-27 01:16:34 -08002# RTC class/drivers configuration
3#
4
Alessandro Zummo0c86edc2006-03-27 01:16:37 -08005menu "Real Time Clock"
Martin Schwidefsky9556fb72007-05-10 15:45:58 +02006 depends on !S390
Alessandro Zummo0c86edc2006-03-27 01:16:37 -08007
Alessandro Zummoc58411e2006-03-27 01:16:34 -08008config RTC_LIB
Alessandro Zummo0c86edc2006-03-27 01:16:37 -08009 tristate
10
11config RTC_CLASS
12 tristate "RTC class"
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080013 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
Adrian Bunk27ae4102006-06-30 18:18:41 +020018 probably want to enable one or more of the interfaces below.
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080019
20 This driver can also be built as a module. If so, the module
21 will be called rtc-class.
22
23config RTC_HCTOSYS
David Brownell7ca1d482007-05-08 00:33:42 -070024 bool "Set system time from RTC on startup and resume"
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080025 depends on RTC_CLASS = y
26 default y
27 help
David Brownell7ca1d482007-05-08 00:33:42 -070028 If you say yes here, the system time (wall clock) will be set using
29 the value read from a specified RTC device. This is useful to avoid
30 unnecessary fsck runs at boot time, and to network better.
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080031
32config RTC_HCTOSYS_DEVICE
David Brownell7ca1d482007-05-08 00:33:42 -070033 string "RTC used to set the system time"
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080034 depends on RTC_HCTOSYS = y
35 default "rtc0"
36 help
David Brownell7ca1d482007-05-08 00:33:42 -070037 The RTC device that will be used to (re)initialize the system
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.
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080049
David Brownell9e86ecb2006-09-30 23:28:14 -070050config RTC_DEBUG
51 bool "RTC debug support"
52 depends on RTC_CLASS = y
53 help
54 Say yes here to enable debugging support in the RTC framework
55 and individual RTC drivers.
56
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080057comment "RTC interfaces"
58 depends on RTC_CLASS
59
Alessandro Zummoc5c3e192006-03-27 01:16:39 -080060config RTC_INTF_SYSFS
David Brownelle40659c2007-05-16 22:11:15 -070061 boolean "/sys/class/rtc/rtcN (sysfs)"
Alessandro Zummoc5c3e192006-03-27 01:16:39 -080062 depends on RTC_CLASS && SYSFS
63 default RTC_CLASS
64 help
David Brownell9e86ecb2006-09-30 23:28:14 -070065 Say yes here if you want to use your RTCs using sysfs interfaces,
66 /sys/class/rtc/rtc0 through /sys/.../rtcN.
Alessandro Zummoc5c3e192006-03-27 01:16:39 -080067
68 This driver can also be built as a module. If so, the module
69 will be called rtc-sysfs.
70
Alessandro Zummo728a2942006-03-27 01:16:40 -080071config RTC_INTF_PROC
David Brownelle40659c2007-05-16 22:11:15 -070072 boolean "/proc/driver/rtc (procfs for rtc0)"
Alessandro Zummo728a2942006-03-27 01:16:40 -080073 depends on RTC_CLASS && PROC_FS
74 default RTC_CLASS
75 help
David Brownell9e86ecb2006-09-30 23:28:14 -070076 Say yes here if you want to use your first RTC through the proc
77 interface, /proc/driver/rtc. Other RTCs will not be available
78 through that API.
Alessandro Zummo728a2942006-03-27 01:16:40 -080079
80 This driver can also be built as a module. If so, the module
81 will be called rtc-proc.
82
Alessandro Zummoe8242902006-03-27 01:16:41 -080083config RTC_INTF_DEV
David Brownelle40659c2007-05-16 22:11:15 -070084 boolean "/dev/rtcN (character devices)"
Alessandro Zummoe8242902006-03-27 01:16:41 -080085 depends on RTC_CLASS
86 default RTC_CLASS
87 help
David Brownell9e86ecb2006-09-30 23:28:14 -070088 Say yes here if you want to use your RTCs using the /dev
89 interfaces, which "udev" sets up as /dev/rtc0 through
90 /dev/rtcN. You may want to set up a symbolic link so one
91 of these can be accessed as /dev/rtc, which is a name
92 expected by "hwclock" and some other programs.
Alessandro Zummoe8242902006-03-27 01:16:41 -080093
94 This driver can also be built as a module. If so, the module
95 will be called rtc-dev.
96
Atsushi Nemoto655066c2006-06-25 05:48:17 -070097config RTC_INTF_DEV_UIE_EMUL
98 bool "RTC UIE emulation on dev interface"
99 depends on RTC_INTF_DEV
100 help
David Sterba3dde6ad2007-05-09 07:12:20 +0200101 Provides an emulation for RTC_UIE if the underlying rtc chip
David Brownell9e86ecb2006-09-30 23:28:14 -0700102 driver does not expose RTC_UIE ioctls. Those requests generate
103 once-per-second update interrupts, used for synchronization.
Atsushi Nemoto655066c2006-06-25 05:48:17 -0700104
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700105config RTC_DRV_TEST
106 tristate "Test driver/device"
107 depends on RTC_CLASS
108 help
109 If you say yes here you get support for the
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.
116
117 This driver can also be built as a module. If so, the module
118 will be called rtc-test.
119
120comment "I2C RTC drivers"
David Brownell5663c142007-07-17 04:05:02 -0700121 depends on RTC_CLASS && I2C
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700122
123config RTC_DRV_DS1307
124 tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00"
125 depends on RTC_CLASS && I2C
126 help
127 If you say yes here you get support for various compatible RTC
128 chips (often with battery backup) connected with I2C. This driver
129 should handle DS1307, DS1337, DS1338, DS1339, DS1340, ST M41T00,
130 and probably other chips. In some cases the RTC must already
131 have been initialized (by manufacturing or a bootloader).
132
133 The first seven registers on these chips hold an RTC, and other
134 registers may add features such as NVRAM, a trickle charger for
135 the RTC/NVRAM backup power, and alarms. This driver may not
136 expose all those available chip features.
137
138 This driver can also be built as a module. If so, the module
139 will be called rtc-ds1307.
140
141config RTC_DRV_DS1672
142 tristate "Dallas/Maxim DS1672"
143 depends on RTC_CLASS && I2C
144 help
145 If you say yes here you get support for the
146 Dallas/Maxim DS1672 timekeeping chip.
147
148 This driver can also be built as a module. If so, the module
149 will be called rtc-ds1672.
150
151config RTC_DRV_MAX6900
152 tristate "Maxim 6900"
153 depends on RTC_CLASS && I2C
154 help
155 If you say yes here you will get support for the
156 Maxim MAX6900 I2C RTC chip.
157
158 This driver can also be built as a module. If so, the module
159 will be called rtc-max6900.
160
161config RTC_DRV_RS5C372
David Brownelld8154612007-07-17 04:04:55 -0700162 tristate "Ricoh RS5C372A/B, RV5C386, RV5C387A"
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700163 depends on RTC_CLASS && I2C
164 help
165 If you say yes here you get support for the
David Brownelld8154612007-07-17 04:04:55 -0700166 Ricoh RS5C372A, RS5C372B, RV5C386, and RV5C387A RTC chips.
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700167
168 This driver can also be built as a module. If so, the module
169 will be called rtc-rs5c372.
170
171config RTC_DRV_ISL1208
172 tristate "Intersil 1208"
173 depends on RTC_CLASS && I2C
174 help
175 If you say yes here you get support for the
176 Intersil 1208 RTC chip.
177
178 This driver can also be built as a module. If so, the module
179 will be called rtc-isl1208.
180
181config RTC_DRV_X1205
182 tristate "Xicor/Intersil X1205"
183 depends on RTC_CLASS && I2C
184 help
185 If you say yes here you get support for the
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.
190
191config RTC_DRV_PCF8563
192 tristate "Philips PCF8563/Epson RTC8564"
193 depends on RTC_CLASS && I2C
194 help
195 If you say yes here you get support for the
196 Philips PCF8563 RTC chip. The Epson RTC8564
197 should work as well.
198
199 This driver can also be built as a module. If so, the module
200 will be called rtc-pcf8563.
201
202config RTC_DRV_PCF8583
203 tristate "Philips PCF8583"
204 depends on RTC_CLASS && I2C
205 help
206 If you say yes here you get support for the Philips PCF8583
207 RTC chip found on Acorn RiscPCs. This driver supports the
208 platform specific method of retrieving the current year from
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.
211
212 This driver can also be built as a module. If so, the module
213 will be called rtc-pcf8583.
214
Atsushi Nemotocaaff562007-07-17 04:05:02 -0700215config RTC_DRV_M41T80
216 tristate "ST M41T80 series RTC"
217 depends on RTC_CLASS && I2C
218 help
219 If you say Y here you will get support for the
220 ST M41T80 RTC chips series. Currently following chips are
221 supported: M41T80, M41T81, M41T82, M41T83, M41ST84, M41ST85
222 and M41ST87.
223
224 This driver can also be built as a module. If so, the module
225 will be called rtc-m41t80.
226
Atsushi Nemoto617780d2007-07-17 04:05:04 -0700227config RTC_DRV_M41T80_WDT
228 bool "ST M41T80 series RTC watchdog timer"
229 depends on RTC_DRV_M41T80
230 help
231 If you say Y here you will get support for the
232 watchdog timer in ST M41T80 RTC chips series.
233
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700234comment "SPI RTC drivers"
David Brownell5663c142007-07-17 04:05:02 -0700235 depends on RTC_CLASS && SPI_MASTER
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700236
237config RTC_DRV_RS5C348
238 tristate "Ricoh RS5C348A/B"
David Brownell5663c142007-07-17 04:05:02 -0700239 depends on RTC_CLASS && SPI_MASTER
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700240 help
241 If you say yes here you get support for the
242 Ricoh RS5C348A and RS5C348B RTC chips.
243
244 This driver can also be built as a module. If so, the module
245 will be called rtc-rs5c348.
246
247config RTC_DRV_MAX6902
248 tristate "Maxim 6902"
David Brownell5663c142007-07-17 04:05:02 -0700249 depends on RTC_CLASS && SPI_MASTER
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700250 help
251 If you say yes here you will get support for the
252 Maxim MAX6902 SPI RTC chip.
253
254 This driver can also be built as a module. If so, the module
255 will be called rtc-max6902.
256
257comment "Platform RTC drivers"
Alessandro Zummo0c86edc2006-03-27 01:16:37 -0800258 depends on RTC_CLASS
259
David Brownell7be2c7c2007-02-10 01:46:02 -0800260# this 'CMOS' RTC driver is arch dependent because <asm-generic/rtc.h>
261# requires <asm/mc146818rtc.h> defining CMOS_READ/CMOS_WRITE, and a
262# global rtc_lock ... it's not yet just another platform_device.
263
264config RTC_DRV_CMOS
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700265 tristate "PC-style 'CMOS'"
Dave Jonesc0663322007-02-20 13:58:07 -0800266 depends on RTC_CLASS && (X86 || ALPHA || ARM26 || ARM \
Wade Farnsworth57cc7052007-06-07 02:57:43 +1000267 || M32R || ATARI || PPC || MIPS)
David Brownell7be2c7c2007-02-10 01:46:02 -0800268 help
269 Say "yes" here to get direct support for the real time clock
270 found in every PC or ACPI-based system, and some other boards.
271 Specifically the original MC146818, compatibles like those in
272 PC south bridges, the DS12887 or M48T86, some multifunction
273 or LPC bus chips, and so on.
274
275 Your system will need to define the platform device used by
276 this driver, otherwise it won't be accessible. This means
277 you can safely enable this driver if you don't know whether
278 or not your board has this kind of hardware.
279
280 This driver can also be built as a module. If so, the module
281 will be called rtc-cmos.
282
Thomas Bogendoerfer537739d2007-07-17 04:05:06 -0700283config RTC_DRV_DS1216
284 tristate "Dallas DS1216"
285 depends on RTC_CLASS && SNI_RM
286 help
287 If you say yes here you get support for the Dallas DS1216 RTC chips.
288
Atsushi Nemoto9bf5b4f2006-06-25 05:48:28 -0700289config RTC_DRV_DS1553
290 tristate "Dallas DS1553"
291 depends on RTC_CLASS
292 help
293 If you say yes here you get support for the
294 Dallas DS1553 timekeeping chip.
295
296 This driver can also be built as a module. If so, the module
297 will be called rtc-ds1553.
298
Atsushi Nemoto5ec3e4b2006-06-25 05:48:29 -0700299config RTC_DRV_DS1742
Torsten Ertbjerg Rasmussenf9231a02006-12-06 20:39:41 -0800300 tristate "Dallas DS1742/1743"
Atsushi Nemoto5ec3e4b2006-06-25 05:48:29 -0700301 depends on RTC_CLASS
302 help
303 If you say yes here you get support for the
Torsten Ertbjerg Rasmussenf9231a02006-12-06 20:39:41 -0800304 Dallas DS1742/1743 timekeeping chip.
Atsushi Nemoto5ec3e4b2006-06-25 05:48:29 -0700305
306 This driver can also be built as a module. If so, the module
307 will be called rtc-ds1742.
308
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700309config RTC_DRV_M48T86
310 tristate "ST M48T86/Dallas DS12887"
311 depends on RTC_CLASS
312 help
313 If you say Y here you will get support for the
314 ST M48T86 and Dallas DS12887 RTC chips.
315
316 This driver can also be built as a module. If so, the module
317 will be called rtc-m48t86.
318
Mark Zhan2e774c72007-07-17 04:05:05 -0700319config RTC_DRV_M48T59
320 tristate "ST M48T59"
321 depends on RTC_CLASS
322 help
323 If you say Y here you will get support for the
324 ST M48T59 RTC chip.
325
326 This driver can also be built as a module, if so, the module
327 will be called "rtc-m48t59".
328
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700329config RTC_DRV_V3020
330 tristate "EM Microelectronic V3020"
331 depends on RTC_CLASS
332 help
333 If you say yes here you will get support for the
334 EM Microelectronic v3020 RTC chip.
335
336 This driver can also be built as a module. If so, the module
337 will be called rtc-v3020.
338
339comment "on-CPU RTC drivers"
340 depends on RTC_CLASS
341
David Brownelldb68b182006-12-06 20:38:36 -0800342config RTC_DRV_OMAP
343 tristate "TI OMAP1"
344 depends on RTC_CLASS && ( \
345 ARCH_OMAP15XX || ARCH_OMAP16XX || ARCH_OMAP730 )
346 help
347 Say "yes" here to support the real time clock on TI OMAP1 chips.
348 This driver can also be built as a module called rtc-omap.
349
Ben Dooks1add6782006-07-01 04:36:26 -0700350config RTC_DRV_S3C
351 tristate "Samsung S3C series SoC RTC"
352 depends on RTC_CLASS && ARCH_S3C2410
353 help
354 RTC (Realtime Clock) driver for the clock inbuilt into the
355 Samsung S3C24XX series of SoCs. This can provide periodic
356 interrupt rates from 1Hz to 64Hz for user programs, and
357 wakeup from Alarm.
358
359 The driver currently supports the common features on all the
360 S3C24XX range, such as the S3C2410, S3C2412, S3C2413, S3C2440
361 and S3C2442.
362
363 This driver can also be build as a module. If so, the module
364 will be called rtc-s3c.
365
Alessandro Zummofd507e22006-03-27 01:16:45 -0800366config RTC_DRV_EP93XX
367 tristate "Cirrus Logic EP93XX"
368 depends on RTC_CLASS && ARCH_EP93XX
369 help
370 If you say yes here you get support for the
371 RTC embedded in the Cirrus Logic EP93XX processors.
372
373 This driver can also be built as a module. If so, the module
374 will be called rtc-ep93xx.
375
Richard Purdiee842f1c2006-03-27 01:16:46 -0800376config RTC_DRV_SA1100
377 tristate "SA11x0/PXA2xx"
378 depends on RTC_CLASS && (ARCH_SA1100 || ARCH_PXA)
379 help
380 If you say Y here you will get access to the real time clock
381 built into your SA11x0 or PXA2xx CPU.
382
383 To compile this driver as a module, choose M here: the
384 module will be called rtc-sa1100.
Alessandro Zummofd507e22006-03-27 01:16:45 -0800385
Paul Mundt317a6102006-09-27 17:13:19 +0900386config RTC_DRV_SH
387 tristate "SuperH On-Chip RTC"
388 depends on RTC_CLASS && SUPERH
389 help
390 Say Y here to enable support for the on-chip RTC found in
391 most SuperH processors.
392
393 To compile this driver as a module, choose M here: the
394 module will be called rtc-sh.
395
Yoichi Yuasa8417eb72006-04-10 22:54:47 -0700396config RTC_DRV_VR41XX
Alessandro Zummo3e16f6a2006-04-10 22:54:48 -0700397 tristate "NEC VR41XX"
Yoichi Yuasa8417eb72006-04-10 22:54:47 -0700398 depends on RTC_CLASS && CPU_VR41XX
Alessandro Zummo3e16f6a2006-04-10 22:54:48 -0700399 help
400 If you say Y here you will get access to the real time clock
401 built into your NEC VR41XX CPU.
402
403 To compile this driver as a module, choose M here: the
404 module will be called rtc-vr41xx.
Yoichi Yuasa8417eb72006-04-10 22:54:47 -0700405
Deepak Saxena8ae6e162006-06-25 05:47:38 -0700406config RTC_DRV_PL031
407 tristate "ARM AMBA PL031 RTC"
408 depends on RTC_CLASS && ARM_AMBA
409 help
410 If you say Y here you will get access to ARM AMBA
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700411 PrimeCell PL031 RTC found on certain ARM SOCs.
Deepak Saxena8ae6e162006-06-25 05:47:38 -0700412
413 To compile this driver as a module, choose M here: the
414 module will be called rtc-pl031.
415
Hans-Christian Egtvedtfa04e782007-07-17 04:05:00 -0700416config RTC_DRV_AT32AP700X
417 tristate "AT32AP700X series RTC"
418 depends on RTC_CLASS && PLATFORM_AT32AP
419 help
420 Driver for the internal RTC (Realtime Clock) on Atmel AVR32
421 AT32AP700x family processors.
422
Andrew Victor7fc39f62006-12-10 02:19:03 -0800423config RTC_DRV_AT91RM9200
Andrew Victor788b1fc2006-06-25 05:48:27 -0700424 tristate "AT91RM9200"
425 depends on RTC_CLASS && ARCH_AT91RM9200
426 help
427 Driver for the Atmel AT91RM9200's internal RTC (Realtime Clock).
428
Wu, Bryan8cc75c92007-05-06 14:50:32 -0700429config RTC_DRV_BFIN
430 tristate "Blackfin On-Chip RTC"
431 depends on RTC_CLASS && BFIN
432 help
433 If you say yes here you will get support for the
434 Blackfin On-Chip Real Time Clock.
435
436 This driver can also be built as a module. If so, the module
437 will be called rtc-bfin.
438
Nobuhiro Iwamatsue9f2bd82007-05-08 00:26:37 -0700439config RTC_DRV_RS5C313
440 tristate "Ricoh RS5C313"
kogiidena9a3f1d52007-05-10 22:22:54 -0700441 depends on RTC_CLASS && SH_LANDISK
Nobuhiro Iwamatsue9f2bd82007-05-08 00:26:37 -0700442 help
443 If you say yes here you get support for the Ricoh RS5C313 RTC chips.
444
Alessandro Zummo0c86edc2006-03-27 01:16:37 -0800445endmenu