blob: ff9e35cb308dad6a5494c6956b57907981716487 [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
5config RTC_LIB
Alessandro Zummo0c86edc2006-03-27 01:16:37 -08006 tristate
7
Jan Engelhardtbb35fb22007-07-31 00:39:46 -07008menuconfig RTC_CLASS
9 tristate "Real Time Clock"
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080010 default n
Jan Engelhardtbb35fb22007-07-31 00:39:46 -070011 depends on !S390
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080012 select RTC_LIB
13 help
14 Generic RTC class support. If you say yes here, you will
15 be allowed to plug one or more RTCs to your system. You will
Adrian Bunk27ae4102006-06-30 18:18:41 +020016 probably want to enable one or more of the interfaces below.
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080017
18 This driver can also be built as a module. If so, the module
19 will be called rtc-class.
20
Jan Engelhardtbb35fb22007-07-31 00:39:46 -070021if RTC_CLASS
22
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080023config 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
David Brownell55ff1ab2007-07-21 04:37:56 -070041 The driver for this RTC device must be loaded before late_initcall
42 functions run, so it must usually be statically linked.
43
David Brownell7ca1d482007-05-08 00:33:42 -070044 This clock should be battery-backed, so that it reads the correct
45 time when the system boots from a power-off state. Otherwise, your
46 system will need an external clock source (like an NTP server).
47
48 If the clock you specify here is not battery backed, it may still
49 be useful to reinitialize system time when resuming from system
50 sleep states. Do not specify an RTC here unless it stays powered
51 during all this system's supported sleep states.
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080052
David Brownell9e86ecb2006-09-30 23:28:14 -070053config RTC_DEBUG
54 bool "RTC debug support"
55 depends on RTC_CLASS = y
56 help
57 Say yes here to enable debugging support in the RTC framework
58 and individual RTC drivers.
59
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080060comment "RTC interfaces"
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080061
Alessandro Zummoc5c3e192006-03-27 01:16:39 -080062config RTC_INTF_SYSFS
David Brownelle40659c2007-05-16 22:11:15 -070063 boolean "/sys/class/rtc/rtcN (sysfs)"
Jan Engelhardtbb35fb22007-07-31 00:39:46 -070064 depends on SYSFS
Alessandro Zummoc5c3e192006-03-27 01:16:39 -080065 default RTC_CLASS
66 help
David Brownell9e86ecb2006-09-30 23:28:14 -070067 Say yes here if you want to use your RTCs using sysfs interfaces,
68 /sys/class/rtc/rtc0 through /sys/.../rtcN.
Alessandro Zummoc5c3e192006-03-27 01:16:39 -080069
70 This driver can also be built as a module. If so, the module
71 will be called rtc-sysfs.
72
Alessandro Zummo728a2942006-03-27 01:16:40 -080073config RTC_INTF_PROC
David Brownelle40659c2007-05-16 22:11:15 -070074 boolean "/proc/driver/rtc (procfs for rtc0)"
Jan Engelhardtbb35fb22007-07-31 00:39:46 -070075 depends on PROC_FS
Alessandro Zummo728a2942006-03-27 01:16:40 -080076 default RTC_CLASS
77 help
David Brownell9e86ecb2006-09-30 23:28:14 -070078 Say yes here if you want to use your first RTC through the proc
79 interface, /proc/driver/rtc. Other RTCs will not be available
80 through that API.
Alessandro Zummo728a2942006-03-27 01:16:40 -080081
82 This driver can also be built as a module. If so, the module
83 will be called rtc-proc.
84
Alessandro Zummoe8242902006-03-27 01:16:41 -080085config RTC_INTF_DEV
David Brownelle40659c2007-05-16 22:11:15 -070086 boolean "/dev/rtcN (character devices)"
Alessandro Zummoe8242902006-03-27 01:16:41 -080087 default RTC_CLASS
88 help
David Brownell9e86ecb2006-09-30 23:28:14 -070089 Say yes here if you want to use your RTCs using the /dev
90 interfaces, which "udev" sets up as /dev/rtc0 through
91 /dev/rtcN. You may want to set up a symbolic link so one
92 of these can be accessed as /dev/rtc, which is a name
93 expected by "hwclock" and some other programs.
Alessandro Zummoe8242902006-03-27 01:16:41 -080094
95 This driver can also be built as a module. If so, the module
96 will be called rtc-dev.
97
Atsushi Nemoto655066c2006-06-25 05:48:17 -070098config RTC_INTF_DEV_UIE_EMUL
99 bool "RTC UIE emulation on dev interface"
100 depends on RTC_INTF_DEV
101 help
David Sterba3dde6ad2007-05-09 07:12:20 +0200102 Provides an emulation for RTC_UIE if the underlying rtc chip
David Brownell9e86ecb2006-09-30 23:28:14 -0700103 driver does not expose RTC_UIE ioctls. Those requests generate
104 once-per-second update interrupts, used for synchronization.
Atsushi Nemoto655066c2006-06-25 05:48:17 -0700105
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700106config RTC_DRV_TEST
107 tristate "Test driver/device"
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700108 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"
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700121 depends on I2C
122
123if I2C
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700124
125config RTC_DRV_DS1307
126 tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00"
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700127 help
128 If you say yes here you get support for various compatible RTC
129 chips (often with battery backup) connected with I2C. This driver
130 should handle DS1307, DS1337, DS1338, DS1339, DS1340, ST M41T00,
131 and probably other chips. In some cases the RTC must already
132 have been initialized (by manufacturing or a bootloader).
133
134 The first seven registers on these chips hold an RTC, and other
135 registers may add features such as NVRAM, a trickle charger for
136 the RTC/NVRAM backup power, and alarms. This driver may not
137 expose all those available chip features.
138
139 This driver can also be built as a module. If so, the module
140 will be called rtc-ds1307.
141
142config RTC_DRV_DS1672
143 tristate "Dallas/Maxim DS1672"
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700144 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"
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700153 help
154 If you say yes here you will get support for the
155 Maxim MAX6900 I2C RTC chip.
156
157 This driver can also be built as a module. If so, the module
158 will be called rtc-max6900.
159
160config RTC_DRV_RS5C372
David Brownelld8154612007-07-17 04:04:55 -0700161 tristate "Ricoh RS5C372A/B, RV5C386, RV5C387A"
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700162 help
163 If you say yes here you get support for the
David Brownelld8154612007-07-17 04:04:55 -0700164 Ricoh RS5C372A, RS5C372B, RV5C386, and RV5C387A RTC chips.
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700165
166 This driver can also be built as a module. If so, the module
167 will be called rtc-rs5c372.
168
169config RTC_DRV_ISL1208
170 tristate "Intersil 1208"
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700171 help
172 If you say yes here you get support for the
173 Intersil 1208 RTC chip.
174
175 This driver can also be built as a module. If so, the module
176 will be called rtc-isl1208.
177
178config RTC_DRV_X1205
179 tristate "Xicor/Intersil X1205"
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700180 help
181 If you say yes here you get support for the
182 Xicor/Intersil X1205 RTC chip.
183
184 This driver can also be built as a module. If so, the module
185 will be called rtc-x1205.
186
187config RTC_DRV_PCF8563
188 tristate "Philips PCF8563/Epson RTC8564"
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700189 help
190 If you say yes here you get support for the
191 Philips PCF8563 RTC chip. The Epson RTC8564
192 should work as well.
193
194 This driver can also be built as a module. If so, the module
195 will be called rtc-pcf8563.
196
197config RTC_DRV_PCF8583
198 tristate "Philips PCF8583"
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700199 help
200 If you say yes here you get support for the Philips PCF8583
201 RTC chip found on Acorn RiscPCs. This driver supports the
202 platform specific method of retrieving the current year from
203 the RTC's SRAM. It will work on other platforms with the same
204 chip, but the year will probably have to be tweaked.
205
206 This driver can also be built as a module. If so, the module
207 will be called rtc-pcf8583.
208
Atsushi Nemotocaaff562007-07-17 04:05:02 -0700209config RTC_DRV_M41T80
210 tristate "ST M41T80 series RTC"
Atsushi Nemotocaaff562007-07-17 04:05:02 -0700211 help
212 If you say Y here you will get support for the
213 ST M41T80 RTC chips series. Currently following chips are
214 supported: M41T80, M41T81, M41T82, M41T83, M41ST84, M41ST85
215 and M41ST87.
216
217 This driver can also be built as a module. If so, the module
218 will be called rtc-m41t80.
219
Atsushi Nemoto617780d2007-07-17 04:05:04 -0700220config RTC_DRV_M41T80_WDT
221 bool "ST M41T80 series RTC watchdog timer"
222 depends on RTC_DRV_M41T80
223 help
224 If you say Y here you will get support for the
225 watchdog timer in ST M41T80 RTC chips series.
226
Tony Lindgren0c4a59f2007-07-17 04:06:09 -0700227config RTC_DRV_TWL92330
228 boolean "TI TWL92330/Menelaus"
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700229 depends on MENELAUS
Tony Lindgren0c4a59f2007-07-17 04:06:09 -0700230 help
231 If you say yes here you get support for the RTC on the
232 TWL92330 "Menelaus" power mangement chip, used with OMAP2
233 platforms. The support is integrated with the rest of
234 the Menelaus driver; it's not separate module.
235
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700236endif # I2C
237
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700238comment "SPI RTC drivers"
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700239
240if SPI_MASTER
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700241
242config RTC_DRV_RS5C348
243 tristate "Ricoh RS5C348A/B"
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700244 help
245 If you say yes here you get support for the
246 Ricoh RS5C348A and RS5C348B RTC chips.
247
248 This driver can also be built as a module. If so, the module
249 will be called rtc-rs5c348.
250
251config RTC_DRV_MAX6902
252 tristate "Maxim 6902"
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700253 help
254 If you say yes here you will get support for the
255 Maxim MAX6902 SPI RTC chip.
256
257 This driver can also be built as a module. If so, the module
258 will be called rtc-max6902.
259
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700260endif # SPI_MASTER
261
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700262comment "Platform RTC drivers"
Alessandro Zummo0c86edc2006-03-27 01:16:37 -0800263
David Brownell7be2c7c2007-02-10 01:46:02 -0800264# this 'CMOS' RTC driver is arch dependent because <asm-generic/rtc.h>
265# requires <asm/mc146818rtc.h> defining CMOS_READ/CMOS_WRITE, and a
266# global rtc_lock ... it's not yet just another platform_device.
267
268config RTC_DRV_CMOS
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700269 tristate "PC-style 'CMOS'"
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700270 depends on X86 || ALPHA || ARM || M32R || ATARI || PPC || MIPS
David Brownell7be2c7c2007-02-10 01:46:02 -0800271 help
272 Say "yes" here to get direct support for the real time clock
273 found in every PC or ACPI-based system, and some other boards.
274 Specifically the original MC146818, compatibles like those in
275 PC south bridges, the DS12887 or M48T86, some multifunction
276 or LPC bus chips, and so on.
277
278 Your system will need to define the platform device used by
279 this driver, otherwise it won't be accessible. This means
280 you can safely enable this driver if you don't know whether
281 or not your board has this kind of hardware.
282
283 This driver can also be built as a module. If so, the module
284 will be called rtc-cmos.
285
Thomas Bogendoerfer537739d2007-07-17 04:05:06 -0700286config RTC_DRV_DS1216
287 tristate "Dallas DS1216"
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700288 depends on SNI_RM
Thomas Bogendoerfer537739d2007-07-17 04:05:06 -0700289 help
290 If you say yes here you get support for the Dallas DS1216 RTC chips.
291
Atsushi Nemoto9bf5b4f2006-06-25 05:48:28 -0700292config RTC_DRV_DS1553
293 tristate "Dallas DS1553"
Atsushi Nemoto9bf5b4f2006-06-25 05:48:28 -0700294 help
295 If you say yes here you get support for the
296 Dallas DS1553 timekeeping chip.
297
298 This driver can also be built as a module. If so, the module
299 will be called rtc-ds1553.
300
Thomas Hommel02964112007-07-21 04:37:58 -0700301config RTC_DRV_STK17TA8
302 tristate "Simtek STK17TA8"
303 depends on RTC_CLASS
304 help
305 If you say yes here you get support for the
306 Simtek STK17TA8 timekeeping chip.
307
308 This driver can also be built as a module. If so, the module
309 will be called rtc-stk17ta8.
310
Atsushi Nemoto5ec3e4b2006-06-25 05:48:29 -0700311config RTC_DRV_DS1742
Torsten Ertbjerg Rasmussenf9231a02006-12-06 20:39:41 -0800312 tristate "Dallas DS1742/1743"
Atsushi Nemoto5ec3e4b2006-06-25 05:48:29 -0700313 help
314 If you say yes here you get support for the
Torsten Ertbjerg Rasmussenf9231a02006-12-06 20:39:41 -0800315 Dallas DS1742/1743 timekeeping chip.
Atsushi Nemoto5ec3e4b2006-06-25 05:48:29 -0700316
317 This driver can also be built as a module. If so, the module
318 will be called rtc-ds1742.
319
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700320config RTC_DRV_M48T86
321 tristate "ST M48T86/Dallas DS12887"
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700322 help
323 If you say Y here you will get support for the
324 ST M48T86 and Dallas DS12887 RTC chips.
325
326 This driver can also be built as a module. If so, the module
327 will be called rtc-m48t86.
328
Mark Zhan2e774c72007-07-17 04:05:05 -0700329config RTC_DRV_M48T59
330 tristate "ST M48T59"
Mark Zhan2e774c72007-07-17 04:05:05 -0700331 help
332 If you say Y here you will get support for the
333 ST M48T59 RTC chip.
334
335 This driver can also be built as a module, if so, the module
336 will be called "rtc-m48t59".
337
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700338config RTC_DRV_V3020
339 tristate "EM Microelectronic V3020"
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700340 help
341 If you say yes here you will get support for the
342 EM Microelectronic v3020 RTC chip.
343
344 This driver can also be built as a module. If so, the module
345 will be called rtc-v3020.
346
347comment "on-CPU RTC drivers"
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700348
David Brownelldb68b182006-12-06 20:38:36 -0800349config RTC_DRV_OMAP
350 tristate "TI OMAP1"
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700351 depends on ARCH_OMAP15XX || ARCH_OMAP16XX || ARCH_OMAP730
David Brownelldb68b182006-12-06 20:38:36 -0800352 help
353 Say "yes" here to support the real time clock on TI OMAP1 chips.
354 This driver can also be built as a module called rtc-omap.
355
Ben Dooks1add6782006-07-01 04:36:26 -0700356config RTC_DRV_S3C
357 tristate "Samsung S3C series SoC RTC"
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700358 depends on ARCH_S3C2410
Ben Dooks1add6782006-07-01 04:36:26 -0700359 help
360 RTC (Realtime Clock) driver for the clock inbuilt into the
361 Samsung S3C24XX series of SoCs. This can provide periodic
362 interrupt rates from 1Hz to 64Hz for user programs, and
363 wakeup from Alarm.
364
365 The driver currently supports the common features on all the
366 S3C24XX range, such as the S3C2410, S3C2412, S3C2413, S3C2440
367 and S3C2442.
368
369 This driver can also be build as a module. If so, the module
370 will be called rtc-s3c.
371
Alessandro Zummofd507e22006-03-27 01:16:45 -0800372config RTC_DRV_EP93XX
373 tristate "Cirrus Logic EP93XX"
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700374 depends on ARCH_EP93XX
Alessandro Zummofd507e22006-03-27 01:16:45 -0800375 help
376 If you say yes here you get support for the
377 RTC embedded in the Cirrus Logic EP93XX processors.
378
379 This driver can also be built as a module. If so, the module
380 will be called rtc-ep93xx.
381
Richard Purdiee842f1c2006-03-27 01:16:46 -0800382config RTC_DRV_SA1100
383 tristate "SA11x0/PXA2xx"
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700384 depends on ARCH_SA1100 || ARCH_PXA
Richard Purdiee842f1c2006-03-27 01:16:46 -0800385 help
386 If you say Y here you will get access to the real time clock
387 built into your SA11x0 or PXA2xx CPU.
388
389 To compile this driver as a module, choose M here: the
390 module will be called rtc-sa1100.
Alessandro Zummofd507e22006-03-27 01:16:45 -0800391
Paul Mundt317a6102006-09-27 17:13:19 +0900392config RTC_DRV_SH
393 tristate "SuperH On-Chip RTC"
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700394 depends on RTC_CLASS && (CPU_SH3 || CPU_SH4)
Paul Mundt317a6102006-09-27 17:13:19 +0900395 help
396 Say Y here to enable support for the on-chip RTC found in
397 most SuperH processors.
398
399 To compile this driver as a module, choose M here: the
400 module will be called rtc-sh.
401
Yoichi Yuasa8417eb72006-04-10 22:54:47 -0700402config RTC_DRV_VR41XX
Alessandro Zummo3e16f6a2006-04-10 22:54:48 -0700403 tristate "NEC VR41XX"
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700404 depends on CPU_VR41XX
Alessandro Zummo3e16f6a2006-04-10 22:54:48 -0700405 help
406 If you say Y here you will get access to the real time clock
407 built into your NEC VR41XX CPU.
408
409 To compile this driver as a module, choose M here: the
410 module will be called rtc-vr41xx.
Yoichi Yuasa8417eb72006-04-10 22:54:47 -0700411
Deepak Saxena8ae6e162006-06-25 05:47:38 -0700412config RTC_DRV_PL031
413 tristate "ARM AMBA PL031 RTC"
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700414 depends on ARM_AMBA
Deepak Saxena8ae6e162006-06-25 05:47:38 -0700415 help
416 If you say Y here you will get access to ARM AMBA
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700417 PrimeCell PL031 RTC found on certain ARM SOCs.
Deepak Saxena8ae6e162006-06-25 05:47:38 -0700418
419 To compile this driver as a module, choose M here: the
420 module will be called rtc-pl031.
421
Hans-Christian Egtvedtfa04e782007-07-17 04:05:00 -0700422config RTC_DRV_AT32AP700X
423 tristate "AT32AP700X series RTC"
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700424 depends on PLATFORM_AT32AP
Hans-Christian Egtvedtfa04e782007-07-17 04:05:00 -0700425 help
426 Driver for the internal RTC (Realtime Clock) on Atmel AVR32
427 AT32AP700x family processors.
428
Andrew Victor7fc39f62006-12-10 02:19:03 -0800429config RTC_DRV_AT91RM9200
Andrew Victor788b1fc2006-06-25 05:48:27 -0700430 tristate "AT91RM9200"
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700431 depends on ARCH_AT91RM9200
Andrew Victor788b1fc2006-06-25 05:48:27 -0700432 help
433 Driver for the Atmel AT91RM9200's internal RTC (Realtime Clock).
434
Wu, Bryan8cc75c92007-05-06 14:50:32 -0700435config RTC_DRV_BFIN
436 tristate "Blackfin On-Chip RTC"
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700437 depends on BFIN
Wu, Bryan8cc75c92007-05-06 14:50:32 -0700438 help
439 If you say yes here you will get support for the
440 Blackfin On-Chip Real Time Clock.
441
442 This driver can also be built as a module. If so, the module
443 will be called rtc-bfin.
444
Nobuhiro Iwamatsue9f2bd82007-05-08 00:26:37 -0700445config RTC_DRV_RS5C313
446 tristate "Ricoh RS5C313"
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700447 depends on SH_LANDISK
Nobuhiro Iwamatsue9f2bd82007-05-08 00:26:37 -0700448 help
449 If you say yes here you get support for the Ricoh RS5C313 RTC chips.
450
Jan Engelhardtbb35fb22007-07-31 00:39:46 -0700451endif # RTC_CLASS