blob: d2bd8de9403fdfbf73ea5eb800ee2d66614fcd59 [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"
13 depends on EXPERIMENTAL
14 default n
15 select RTC_LIB
16 help
17 Generic RTC class support. If you say yes here, you will
18 be allowed to plug one or more RTCs to your system. You will
Adrian Bunk27ae4102006-06-30 18:18:41 +020019 probably want to enable one or more of the interfaces below.
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080020
21 This driver can also be built as a module. If so, the module
22 will be called rtc-class.
23
24config RTC_HCTOSYS
David Brownell7ca1d482007-05-08 00:33:42 -070025 bool "Set system time from RTC on startup and resume"
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080026 depends on RTC_CLASS = y
27 default y
28 help
David Brownell7ca1d482007-05-08 00:33:42 -070029 If you say yes here, the system time (wall clock) will be set using
30 the value read from a specified RTC device. This is useful to avoid
31 unnecessary fsck runs at boot time, and to network better.
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080032
33config RTC_HCTOSYS_DEVICE
David Brownell7ca1d482007-05-08 00:33:42 -070034 string "RTC used to set the system time"
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080035 depends on RTC_HCTOSYS = y
36 default "rtc0"
37 help
David Brownell7ca1d482007-05-08 00:33:42 -070038 The RTC device that will be used to (re)initialize the system
39 clock, usually rtc0. Initialization is done when the system
40 starts up, and when it resumes from a low power state.
41
42 This clock should be battery-backed, so that it reads the correct
43 time when the system boots from a power-off state. Otherwise, your
44 system will need an external clock source (like an NTP server).
45
46 If the clock you specify here is not battery backed, it may still
47 be useful to reinitialize system time when resuming from system
48 sleep states. Do not specify an RTC here unless it stays powered
49 during all this system's supported sleep states.
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080050
David Brownell9e86ecb2006-09-30 23:28:14 -070051config RTC_DEBUG
52 bool "RTC debug support"
53 depends on RTC_CLASS = y
54 help
55 Say yes here to enable debugging support in the RTC framework
56 and individual RTC drivers.
57
Alessandro Zummo0c86edc2006-03-27 01:16:37 -080058comment "RTC interfaces"
59 depends on RTC_CLASS
60
Alessandro Zummoc5c3e192006-03-27 01:16:39 -080061config RTC_INTF_SYSFS
David Brownelle40659c2007-05-16 22:11:15 -070062 boolean "/sys/class/rtc/rtcN (sysfs)"
Alessandro Zummoc5c3e192006-03-27 01:16:39 -080063 depends on RTC_CLASS && SYSFS
64 default RTC_CLASS
65 help
David Brownell9e86ecb2006-09-30 23:28:14 -070066 Say yes here if you want to use your RTCs using sysfs interfaces,
67 /sys/class/rtc/rtc0 through /sys/.../rtcN.
Alessandro Zummoc5c3e192006-03-27 01:16:39 -080068
69 This driver can also be built as a module. If so, the module
70 will be called rtc-sysfs.
71
Alessandro Zummo728a2942006-03-27 01:16:40 -080072config RTC_INTF_PROC
David Brownelle40659c2007-05-16 22:11:15 -070073 boolean "/proc/driver/rtc (procfs for rtc0)"
Alessandro Zummo728a2942006-03-27 01:16:40 -080074 depends on RTC_CLASS && PROC_FS
75 default RTC_CLASS
76 help
David Brownell9e86ecb2006-09-30 23:28:14 -070077 Say yes here if you want to use your first RTC through the proc
78 interface, /proc/driver/rtc. Other RTCs will not be available
79 through that API.
Alessandro Zummo728a2942006-03-27 01:16:40 -080080
81 This driver can also be built as a module. If so, the module
82 will be called rtc-proc.
83
Alessandro Zummoe8242902006-03-27 01:16:41 -080084config RTC_INTF_DEV
David Brownelle40659c2007-05-16 22:11:15 -070085 boolean "/dev/rtcN (character devices)"
Alessandro Zummoe8242902006-03-27 01:16:41 -080086 depends on RTC_CLASS
87 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"
108 depends on RTC_CLASS
109 help
110 If you say yes here you get support for the
111 RTC test driver. It's a software RTC which can be
112 used to test the RTC subsystem APIs. It gets
113 the time from the system clock.
114 You want this driver only if you are doing development
115 on the RTC subsystem. Please read the source code
116 for further details.
117
118 This driver can also be built as a module. If so, the module
119 will be called rtc-test.
120
121comment "I2C RTC drivers"
122 depends on RTC_CLASS
123
124config RTC_DRV_DS1307
125 tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00"
126 depends on RTC_CLASS && I2C
127 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"
144 depends on RTC_CLASS && I2C
145 help
146 If you say yes here you get support for the
147 Dallas/Maxim DS1672 timekeeping chip.
148
149 This driver can also be built as a module. If so, the module
150 will be called rtc-ds1672.
151
152config RTC_DRV_MAX6900
153 tristate "Maxim 6900"
154 depends on RTC_CLASS && I2C
155 help
156 If you say yes here you will get support for the
157 Maxim MAX6900 I2C RTC chip.
158
159 This driver can also be built as a module. If so, the module
160 will be called rtc-max6900.
161
162config RTC_DRV_RS5C372
David Brownelld8154612007-07-17 04:04:55 -0700163 tristate "Ricoh RS5C372A/B, RV5C386, RV5C387A"
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700164 depends on RTC_CLASS && I2C
165 help
166 If you say yes here you get support for the
David Brownelld8154612007-07-17 04:04:55 -0700167 Ricoh RS5C372A, RS5C372B, RV5C386, and RV5C387A RTC chips.
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700168
169 This driver can also be built as a module. If so, the module
170 will be called rtc-rs5c372.
171
172config RTC_DRV_ISL1208
173 tristate "Intersil 1208"
174 depends on RTC_CLASS && I2C
175 help
176 If you say yes here you get support for the
177 Intersil 1208 RTC chip.
178
179 This driver can also be built as a module. If so, the module
180 will be called rtc-isl1208.
181
182config RTC_DRV_X1205
183 tristate "Xicor/Intersil X1205"
184 depends on RTC_CLASS && I2C
185 help
186 If you say yes here you get support for the
187 Xicor/Intersil X1205 RTC chip.
188
189 This driver can also be built as a module. If so, the module
190 will be called rtc-x1205.
191
192config RTC_DRV_PCF8563
193 tristate "Philips PCF8563/Epson RTC8564"
194 depends on RTC_CLASS && I2C
195 help
196 If you say yes here you get support for the
197 Philips PCF8563 RTC chip. The Epson RTC8564
198 should work as well.
199
200 This driver can also be built as a module. If so, the module
201 will be called rtc-pcf8563.
202
203config RTC_DRV_PCF8583
204 tristate "Philips PCF8583"
205 depends on RTC_CLASS && I2C
206 help
207 If you say yes here you get support for the Philips PCF8583
208 RTC chip found on Acorn RiscPCs. This driver supports the
209 platform specific method of retrieving the current year from
210 the RTC's SRAM. It will work on other platforms with the same
211 chip, but the year will probably have to be tweaked.
212
213 This driver can also be built as a module. If so, the module
214 will be called rtc-pcf8583.
215
216comment "SPI RTC drivers"
217 depends on RTC_CLASS
218
219config RTC_DRV_RS5C348
220 tristate "Ricoh RS5C348A/B"
221 depends on RTC_CLASS && SPI
222 help
223 If you say yes here you get support for the
224 Ricoh RS5C348A and RS5C348B RTC chips.
225
226 This driver can also be built as a module. If so, the module
227 will be called rtc-rs5c348.
228
229config RTC_DRV_MAX6902
230 tristate "Maxim 6902"
231 depends on RTC_CLASS && SPI
232 help
233 If you say yes here you will get support for the
234 Maxim MAX6902 SPI RTC chip.
235
236 This driver can also be built as a module. If so, the module
237 will be called rtc-max6902.
238
239comment "Platform RTC drivers"
Alessandro Zummo0c86edc2006-03-27 01:16:37 -0800240 depends on RTC_CLASS
241
David Brownell7be2c7c2007-02-10 01:46:02 -0800242# this 'CMOS' RTC driver is arch dependent because <asm-generic/rtc.h>
243# requires <asm/mc146818rtc.h> defining CMOS_READ/CMOS_WRITE, and a
244# global rtc_lock ... it's not yet just another platform_device.
245
246config RTC_DRV_CMOS
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700247 tristate "PC-style 'CMOS'"
Dave Jonesc0663322007-02-20 13:58:07 -0800248 depends on RTC_CLASS && (X86 || ALPHA || ARM26 || ARM \
Wade Farnsworth57cc7052007-06-07 02:57:43 +1000249 || M32R || ATARI || PPC || MIPS)
David Brownell7be2c7c2007-02-10 01:46:02 -0800250 help
251 Say "yes" here to get direct support for the real time clock
252 found in every PC or ACPI-based system, and some other boards.
253 Specifically the original MC146818, compatibles like those in
254 PC south bridges, the DS12887 or M48T86, some multifunction
255 or LPC bus chips, and so on.
256
257 Your system will need to define the platform device used by
258 this driver, otherwise it won't be accessible. This means
259 you can safely enable this driver if you don't know whether
260 or not your board has this kind of hardware.
261
262 This driver can also be built as a module. If so, the module
263 will be called rtc-cmos.
264
Atsushi Nemoto9bf5b4f2006-06-25 05:48:28 -0700265config RTC_DRV_DS1553
266 tristate "Dallas DS1553"
267 depends on RTC_CLASS
268 help
269 If you say yes here you get support for the
270 Dallas DS1553 timekeeping chip.
271
272 This driver can also be built as a module. If so, the module
273 will be called rtc-ds1553.
274
Atsushi Nemoto5ec3e4b2006-06-25 05:48:29 -0700275config RTC_DRV_DS1742
Torsten Ertbjerg Rasmussenf9231a02006-12-06 20:39:41 -0800276 tristate "Dallas DS1742/1743"
Atsushi Nemoto5ec3e4b2006-06-25 05:48:29 -0700277 depends on RTC_CLASS
278 help
279 If you say yes here you get support for the
Torsten Ertbjerg Rasmussenf9231a02006-12-06 20:39:41 -0800280 Dallas DS1742/1743 timekeeping chip.
Atsushi Nemoto5ec3e4b2006-06-25 05:48:29 -0700281
282 This driver can also be built as a module. If so, the module
283 will be called rtc-ds1742.
284
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700285config RTC_DRV_M48T86
286 tristate "ST M48T86/Dallas DS12887"
287 depends on RTC_CLASS
288 help
289 If you say Y here you will get support for the
290 ST M48T86 and Dallas DS12887 RTC chips.
291
292 This driver can also be built as a module. If so, the module
293 will be called rtc-m48t86.
294
295config RTC_DRV_V3020
296 tristate "EM Microelectronic V3020"
297 depends on RTC_CLASS
298 help
299 If you say yes here you will get support for the
300 EM Microelectronic v3020 RTC chip.
301
302 This driver can also be built as a module. If so, the module
303 will be called rtc-v3020.
304
305comment "on-CPU RTC drivers"
306 depends on RTC_CLASS
307
David Brownelldb68b182006-12-06 20:38:36 -0800308config RTC_DRV_OMAP
309 tristate "TI OMAP1"
310 depends on RTC_CLASS && ( \
311 ARCH_OMAP15XX || ARCH_OMAP16XX || ARCH_OMAP730 )
312 help
313 Say "yes" here to support the real time clock on TI OMAP1 chips.
314 This driver can also be built as a module called rtc-omap.
315
Ben Dooks1add6782006-07-01 04:36:26 -0700316config RTC_DRV_S3C
317 tristate "Samsung S3C series SoC RTC"
318 depends on RTC_CLASS && ARCH_S3C2410
319 help
320 RTC (Realtime Clock) driver for the clock inbuilt into the
321 Samsung S3C24XX series of SoCs. This can provide periodic
322 interrupt rates from 1Hz to 64Hz for user programs, and
323 wakeup from Alarm.
324
325 The driver currently supports the common features on all the
326 S3C24XX range, such as the S3C2410, S3C2412, S3C2413, S3C2440
327 and S3C2442.
328
329 This driver can also be build as a module. If so, the module
330 will be called rtc-s3c.
331
Alessandro Zummofd507e22006-03-27 01:16:45 -0800332config RTC_DRV_EP93XX
333 tristate "Cirrus Logic EP93XX"
334 depends on RTC_CLASS && ARCH_EP93XX
335 help
336 If you say yes here you get support for the
337 RTC embedded in the Cirrus Logic EP93XX processors.
338
339 This driver can also be built as a module. If so, the module
340 will be called rtc-ep93xx.
341
Richard Purdiee842f1c2006-03-27 01:16:46 -0800342config RTC_DRV_SA1100
343 tristate "SA11x0/PXA2xx"
344 depends on RTC_CLASS && (ARCH_SA1100 || ARCH_PXA)
345 help
346 If you say Y here you will get access to the real time clock
347 built into your SA11x0 or PXA2xx CPU.
348
349 To compile this driver as a module, choose M here: the
350 module will be called rtc-sa1100.
Alessandro Zummofd507e22006-03-27 01:16:45 -0800351
Paul Mundt317a6102006-09-27 17:13:19 +0900352config RTC_DRV_SH
353 tristate "SuperH On-Chip RTC"
354 depends on RTC_CLASS && SUPERH
355 help
356 Say Y here to enable support for the on-chip RTC found in
357 most SuperH processors.
358
359 To compile this driver as a module, choose M here: the
360 module will be called rtc-sh.
361
Yoichi Yuasa8417eb72006-04-10 22:54:47 -0700362config RTC_DRV_VR41XX
Alessandro Zummo3e16f6a2006-04-10 22:54:48 -0700363 tristate "NEC VR41XX"
Yoichi Yuasa8417eb72006-04-10 22:54:47 -0700364 depends on RTC_CLASS && CPU_VR41XX
Alessandro Zummo3e16f6a2006-04-10 22:54:48 -0700365 help
366 If you say Y here you will get access to the real time clock
367 built into your NEC VR41XX CPU.
368
369 To compile this driver as a module, choose M here: the
370 module will be called rtc-vr41xx.
Yoichi Yuasa8417eb72006-04-10 22:54:47 -0700371
Deepak Saxena8ae6e162006-06-25 05:47:38 -0700372config RTC_DRV_PL031
373 tristate "ARM AMBA PL031 RTC"
374 depends on RTC_CLASS && ARM_AMBA
375 help
376 If you say Y here you will get access to ARM AMBA
Alessandro Zummo09a21e52007-05-08 00:33:48 -0700377 PrimeCell PL031 RTC found on certain ARM SOCs.
Deepak Saxena8ae6e162006-06-25 05:47:38 -0700378
379 To compile this driver as a module, choose M here: the
380 module will be called rtc-pl031.
381
Hans-Christian Egtvedtfa04e782007-07-17 04:05:00 -0700382config RTC_DRV_AT32AP700X
383 tristate "AT32AP700X series RTC"
384 depends on RTC_CLASS && PLATFORM_AT32AP
385 help
386 Driver for the internal RTC (Realtime Clock) on Atmel AVR32
387 AT32AP700x family processors.
388
Andrew Victor7fc39f62006-12-10 02:19:03 -0800389config RTC_DRV_AT91RM9200
Andrew Victor788b1fc2006-06-25 05:48:27 -0700390 tristate "AT91RM9200"
391 depends on RTC_CLASS && ARCH_AT91RM9200
392 help
393 Driver for the Atmel AT91RM9200's internal RTC (Realtime Clock).
394
Wu, Bryan8cc75c92007-05-06 14:50:32 -0700395config RTC_DRV_BFIN
396 tristate "Blackfin On-Chip RTC"
397 depends on RTC_CLASS && BFIN
398 help
399 If you say yes here you will get support for the
400 Blackfin On-Chip Real Time Clock.
401
402 This driver can also be built as a module. If so, the module
403 will be called rtc-bfin.
404
Nobuhiro Iwamatsue9f2bd82007-05-08 00:26:37 -0700405config RTC_DRV_RS5C313
406 tristate "Ricoh RS5C313"
kogiidena9a3f1d52007-05-10 22:22:54 -0700407 depends on RTC_CLASS && SH_LANDISK
Nobuhiro Iwamatsue9f2bd82007-05-08 00:26:37 -0700408 help
409 If you say yes here you get support for the Ricoh RS5C313 RTC chips.
410
Alessandro Zummo0c86edc2006-03-27 01:16:37 -0800411endmenu