blob: a53ef4d670cc16058b1fa0aa9eb0e20922e3566c [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"
6
Alessandro Zummoc58411e2006-03-27 01:16:34 -08007config RTC_LIB
Alessandro Zummo0c86edc2006-03-27 01:16:37 -08008 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
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 Brownell446ecbd2007-05-08 00:33:33 -070061 boolean "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 Brownell7d9f99e2007-05-08 00:33:38 -070072 boolean "proc"
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 Brownell5726fb22007-05-08 00:33:27 -070084 boolean "dev"
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
101 Provides an emulation for RTC_UIE if the underlaying 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 Zummo0c86edc2006-03-27 01:16:37 -0800105comment "RTC drivers"
106 depends on RTC_CLASS
107
David Brownell7be2c7c2007-02-10 01:46:02 -0800108# this 'CMOS' RTC driver is arch dependent because <asm-generic/rtc.h>
109# requires <asm/mc146818rtc.h> defining CMOS_READ/CMOS_WRITE, and a
110# global rtc_lock ... it's not yet just another platform_device.
111
112config RTC_DRV_CMOS
113 tristate "PC-style 'CMOS' real time clock"
Dave Jonesc0663322007-02-20 13:58:07 -0800114 depends on RTC_CLASS && (X86 || ALPHA || ARM26 || ARM \
David Brownell7be2c7c2007-02-10 01:46:02 -0800115 || M32R || ATARI || POWERPC)
116 help
117 Say "yes" here to get direct support for the real time clock
118 found in every PC or ACPI-based system, and some other boards.
119 Specifically the original MC146818, compatibles like those in
120 PC south bridges, the DS12887 or M48T86, some multifunction
121 or LPC bus chips, and so on.
122
123 Your system will need to define the platform device used by
124 this driver, otherwise it won't be accessible. This means
125 you can safely enable this driver if you don't know whether
126 or not your board has this kind of hardware.
127
128 This driver can also be built as a module. If so, the module
129 will be called rtc-cmos.
130
Alessandro Zummo1fec7c62006-03-27 01:16:42 -0800131config RTC_DRV_X1205
132 tristate "Xicor/Intersil X1205"
133 depends on RTC_CLASS && I2C
134 help
135 If you say yes here you get support for the
136 Xicor/Intersil X1205 RTC chip.
137
138 This driver can also be built as a module. If so, the module
139 will be called rtc-x1205.
140
David Brownell1abb0dc2006-06-25 05:48:17 -0700141config RTC_DRV_DS1307
142 tristate "Dallas/Maxim DS1307 and similar I2C RTC chips"
143 depends on RTC_CLASS && I2C
144 help
145 If you say yes here you get support for various compatible RTC
146 chips (often with battery backup) connected with I2C. This driver
147 should handle DS1307, DS1337, DS1338, DS1339, DS1340, ST M41T00,
148 and probably other chips. In some cases the RTC must already
149 have been initialized (by manufacturing or a bootloader).
150
151 The first seven registers on these chips hold an RTC, and other
152 registers may add features such as NVRAM, a trickle charger for
153 the RTC/NVRAM backup power, and alarms. This driver may not
154 expose all those available chip features.
155
156 This driver can also be built as a module. If so, the module
157 will be called rtc-ds1307.
158
Atsushi Nemoto9bf5b4f2006-06-25 05:48:28 -0700159config RTC_DRV_DS1553
160 tristate "Dallas DS1553"
161 depends on RTC_CLASS
162 help
163 If you say yes here you get support for the
164 Dallas DS1553 timekeeping chip.
165
166 This driver can also be built as a module. If so, the module
167 will be called rtc-ds1553.
168
Herbert Valerio Riedel7e56a7d2006-07-14 00:24:11 -0700169config RTC_DRV_ISL1208
170 tristate "Intersil 1208"
171 depends on RTC_CLASS && I2C
172 help
173 If you say yes here you get support for the
174 Intersil 1208 RTC chip.
175
176 This driver can also be built as a module. If so, the module
177 will be called rtc-isl1208.
178
Alessandro Zummoedf1aaa2006-03-27 01:16:43 -0800179config RTC_DRV_DS1672
180 tristate "Dallas/Maxim DS1672"
181 depends on RTC_CLASS && I2C
182 help
183 If you say yes here you get support for the
184 Dallas/Maxim DS1672 timekeeping chip.
185
186 This driver can also be built as a module. If so, the module
187 will be called rtc-ds1672.
188
Atsushi Nemoto5ec3e4b2006-06-25 05:48:29 -0700189config RTC_DRV_DS1742
Torsten Ertbjerg Rasmussenf9231a02006-12-06 20:39:41 -0800190 tristate "Dallas DS1742/1743"
Atsushi Nemoto5ec3e4b2006-06-25 05:48:29 -0700191 depends on RTC_CLASS
192 help
193 If you say yes here you get support for the
Torsten Ertbjerg Rasmussenf9231a02006-12-06 20:39:41 -0800194 Dallas DS1742/1743 timekeeping chip.
Atsushi Nemoto5ec3e4b2006-06-25 05:48:29 -0700195
196 This driver can also be built as a module. If so, the module
197 will be called rtc-ds1742.
198
David Brownelldb68b182006-12-06 20:38:36 -0800199config RTC_DRV_OMAP
200 tristate "TI OMAP1"
201 depends on RTC_CLASS && ( \
202 ARCH_OMAP15XX || ARCH_OMAP16XX || ARCH_OMAP730 )
203 help
204 Say "yes" here to support the real time clock on TI OMAP1 chips.
205 This driver can also be built as a module called rtc-omap.
206
Alessandro Zummob5a82d62006-03-27 01:16:44 -0800207config RTC_DRV_PCF8563
208 tristate "Philips PCF8563/Epson RTC8564"
209 depends on RTC_CLASS && I2C
210 help
211 If you say yes here you get support for the
212 Philips PCF8563 RTC chip. The Epson RTC8564
213 should work as well.
214
215 This driver can also be built as a module. If so, the module
216 will be called rtc-pcf8563.
217
G. Liakhovetski9c0c5702006-06-25 05:48:18 -0700218config RTC_DRV_PCF8583
219 tristate "Philips PCF8583"
Russell Kingbb71f992007-03-04 20:33:07 +0000220 depends on RTC_CLASS && I2C && ARCH_RPC
G. Liakhovetski9c0c5702006-06-25 05:48:18 -0700221 help
Russell Kingbb71f992007-03-04 20:33:07 +0000222 If you say yes here you get support for the Philips PCF8583
223 RTC chip found on Acorn RiscPCs. This driver supports the
224 platform specific method of retrieving the current year from
225 the RTC's SRAM.
G. Liakhovetski9c0c5702006-06-25 05:48:18 -0700226
227 This driver can also be built as a module. If so, the module
228 will be called rtc-pcf8583.
229
Atsushi Nemotoe0ac4762006-06-28 04:26:47 -0700230config RTC_DRV_RS5C348
231 tristate "Ricoh RS5C348A/B"
232 depends on RTC_CLASS && SPI
233 help
234 If you say yes here you get support for the
235 Ricoh RS5C348A and RS5C348B RTC chips.
236
237 This driver can also be built as a module. If so, the module
238 will be called rtc-rs5c348.
239
Alessandro Zummo7520b942006-03-27 01:16:45 -0800240config RTC_DRV_RS5C372
241 tristate "Ricoh RS5C372A/B"
242 depends on RTC_CLASS && I2C
243 help
244 If you say yes here you get support for the
245 Ricoh RS5C372A and RS5C372B RTC chips.
246
247 This driver can also be built as a module. If so, the module
248 will be called rtc-rs5c372.
249
Ben Dooks1add6782006-07-01 04:36:26 -0700250config RTC_DRV_S3C
251 tristate "Samsung S3C series SoC RTC"
252 depends on RTC_CLASS && ARCH_S3C2410
253 help
254 RTC (Realtime Clock) driver for the clock inbuilt into the
255 Samsung S3C24XX series of SoCs. This can provide periodic
256 interrupt rates from 1Hz to 64Hz for user programs, and
257 wakeup from Alarm.
258
259 The driver currently supports the common features on all the
260 S3C24XX range, such as the S3C2410, S3C2412, S3C2413, S3C2440
261 and S3C2442.
262
263 This driver can also be build as a module. If so, the module
264 will be called rtc-s3c.
265
Alessandro Zummo1d98af82006-03-27 01:16:47 -0800266config RTC_DRV_M48T86
267 tristate "ST M48T86/Dallas DS12887"
268 depends on RTC_CLASS
269 help
270 If you say Y here you will get support for the
271 ST M48T86 and Dallas DS12887 RTC chips.
272
273 This driver can also be built as a module. If so, the module
274 will be called rtc-m48t86.
275
Alessandro Zummofd507e22006-03-27 01:16:45 -0800276config RTC_DRV_EP93XX
277 tristate "Cirrus Logic EP93XX"
278 depends on RTC_CLASS && ARCH_EP93XX
279 help
280 If you say yes here you get support for the
281 RTC embedded in the Cirrus Logic EP93XX processors.
282
283 This driver can also be built as a module. If so, the module
284 will be called rtc-ep93xx.
285
Richard Purdiee842f1c2006-03-27 01:16:46 -0800286config RTC_DRV_SA1100
287 tristate "SA11x0/PXA2xx"
288 depends on RTC_CLASS && (ARCH_SA1100 || ARCH_PXA)
289 help
290 If you say Y here you will get access to the real time clock
291 built into your SA11x0 or PXA2xx CPU.
292
293 To compile this driver as a module, choose M here: the
294 module will be called rtc-sa1100.
Alessandro Zummofd507e22006-03-27 01:16:45 -0800295
Paul Mundt317a6102006-09-27 17:13:19 +0900296config RTC_DRV_SH
297 tristate "SuperH On-Chip RTC"
298 depends on RTC_CLASS && SUPERH
299 help
300 Say Y here to enable support for the on-chip RTC found in
301 most SuperH processors.
302
303 To compile this driver as a module, choose M here: the
304 module will be called rtc-sh.
305
Yoichi Yuasa8417eb72006-04-10 22:54:47 -0700306config RTC_DRV_VR41XX
Alessandro Zummo3e16f6a2006-04-10 22:54:48 -0700307 tristate "NEC VR41XX"
Yoichi Yuasa8417eb72006-04-10 22:54:47 -0700308 depends on RTC_CLASS && CPU_VR41XX
Alessandro Zummo3e16f6a2006-04-10 22:54:48 -0700309 help
310 If you say Y here you will get access to the real time clock
311 built into your NEC VR41XX CPU.
312
313 To compile this driver as a module, choose M here: the
314 module will be called rtc-vr41xx.
Yoichi Yuasa8417eb72006-04-10 22:54:47 -0700315
Deepak Saxena8ae6e162006-06-25 05:47:38 -0700316config RTC_DRV_PL031
317 tristate "ARM AMBA PL031 RTC"
318 depends on RTC_CLASS && ARM_AMBA
319 help
320 If you say Y here you will get access to ARM AMBA
321 PrimeCell PL031 UART found on certain ARM SOCs.
322
323 To compile this driver as a module, choose M here: the
324 module will be called rtc-pl031.
325
Andrew Victor7fc39f62006-12-10 02:19:03 -0800326config RTC_DRV_AT91RM9200
Andrew Victor788b1fc2006-06-25 05:48:27 -0700327 tristate "AT91RM9200"
328 depends on RTC_CLASS && ARCH_AT91RM9200
329 help
330 Driver for the Atmel AT91RM9200's internal RTC (Realtime Clock).
331
Alessandro Zummoa95579c2006-03-27 01:16:42 -0800332config RTC_DRV_TEST
333 tristate "Test driver/device"
334 depends on RTC_CLASS
335 help
336 If you say yes here you get support for the
337 RTC test driver. It's a software RTC which can be
338 used to test the RTC subsystem APIs. It gets
339 the time from the system clock.
340 You want this driver only if you are doing development
341 on the RTC subsystem. Please read the source code
342 for further details.
343
344 This driver can also be built as a module. If so, the module
345 will be called rtc-test.
346
Dale Farnsworthaa5bd7e2007-05-08 00:26:39 -0700347config RTC_DRV_MAX6900
348 tristate "Maxim 6900"
349 depends on RTC_CLASS && I2C
350 help
351 If you say yes here you will get support for the
352 Maxim MAX6900 I2C RTC chip.
353
354 This driver can also be built as a module. If so, the module
355 will be called rtc-max6900.
356
Raphael Assenat8e12ecc2006-06-25 05:48:23 -0700357config RTC_DRV_MAX6902
358 tristate "Maxim 6902"
359 depends on RTC_CLASS && SPI
360 help
361 If you say yes here you will get support for the
362 Maxim MAX6902 spi RTC chip.
363
364 This driver can also be built as a module. If so, the module
365 will be called rtc-max6902.
366
Raphael Assenat362600f2006-06-25 05:48:24 -0700367config RTC_DRV_V3020
368 tristate "EM Microelectronic V3020"
369 depends on RTC_CLASS
370 help
371 If you say yes here you will get support for the
372 EM Microelectronic v3020 RTC chip.
373
374 This driver can also be built as a module. If so, the module
375 will be called rtc-v3020.
376
Wu, Bryan8cc75c92007-05-06 14:50:32 -0700377config RTC_DRV_BFIN
378 tristate "Blackfin On-Chip RTC"
379 depends on RTC_CLASS && BFIN
380 help
381 If you say yes here you will get support for the
382 Blackfin On-Chip Real Time Clock.
383
384 This driver can also be built as a module. If so, the module
385 will be called rtc-bfin.
386
Nobuhiro Iwamatsue9f2bd82007-05-08 00:26:37 -0700387config RTC_DRV_RS5C313
388 tristate "Ricoh RS5C313"
389 depends on RTC_CLASS && BROKEN
390 help
391 If you say yes here you get support for the Ricoh RS5C313 RTC chips.
392
Alessandro Zummo0c86edc2006-03-27 01:16:37 -0800393endmenu