aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/Kconfig78
1 files changed, 31 insertions, 47 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 9ed0a98bf565..ff9e35cb308d 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -2,15 +2,13 @@
2# RTC class/drivers configuration 2# RTC class/drivers configuration
3# 3#
4 4
5menu "Real Time Clock"
6 depends on !S390
7
8config RTC_LIB 5config RTC_LIB
9 tristate 6 tristate
10 7
11config RTC_CLASS 8menuconfig RTC_CLASS
12 tristate "RTC class" 9 tristate "Real Time Clock"
13 default n 10 default n
11 depends on !S390
14 select RTC_LIB 12 select RTC_LIB
15 help 13 help
16 Generic RTC class support. If you say yes here, you will 14 Generic RTC class support. If you say yes here, you will
@@ -20,6 +18,8 @@ config RTC_CLASS
20 This driver can also be built as a module. If so, the module 18 This driver can also be built as a module. If so, the module
21 will be called rtc-class. 19 will be called rtc-class.
22 20
21if RTC_CLASS
22
23config RTC_HCTOSYS 23config RTC_HCTOSYS
24 bool "Set system time from RTC on startup and resume" 24 bool "Set system time from RTC on startup and resume"
25 depends on RTC_CLASS = y 25 depends on RTC_CLASS = y
@@ -58,11 +58,10 @@ config RTC_DEBUG
58 and individual RTC drivers. 58 and individual RTC drivers.
59 59
60comment "RTC interfaces" 60comment "RTC interfaces"
61 depends on RTC_CLASS
62 61
63config RTC_INTF_SYSFS 62config RTC_INTF_SYSFS
64 boolean "/sys/class/rtc/rtcN (sysfs)" 63 boolean "/sys/class/rtc/rtcN (sysfs)"
65 depends on RTC_CLASS && SYSFS 64 depends on SYSFS
66 default RTC_CLASS 65 default RTC_CLASS
67 help 66 help
68 Say yes here if you want to use your RTCs using sysfs interfaces, 67 Say yes here if you want to use your RTCs using sysfs interfaces,
@@ -73,7 +72,7 @@ config RTC_INTF_SYSFS
73 72
74config RTC_INTF_PROC 73config RTC_INTF_PROC
75 boolean "/proc/driver/rtc (procfs for rtc0)" 74 boolean "/proc/driver/rtc (procfs for rtc0)"
76 depends on RTC_CLASS && PROC_FS 75 depends on PROC_FS
77 default RTC_CLASS 76 default RTC_CLASS
78 help 77 help
79 Say yes here if you want to use your first RTC through the proc 78 Say yes here if you want to use your first RTC through the proc
@@ -85,7 +84,6 @@ config RTC_INTF_PROC
85 84
86config RTC_INTF_DEV 85config RTC_INTF_DEV
87 boolean "/dev/rtcN (character devices)" 86 boolean "/dev/rtcN (character devices)"
88 depends on RTC_CLASS
89 default RTC_CLASS 87 default RTC_CLASS
90 help 88 help
91 Say yes here if you want to use your RTCs using the /dev 89 Say yes here if you want to use your RTCs using the /dev
@@ -107,7 +105,6 @@ config RTC_INTF_DEV_UIE_EMUL
107 105
108config RTC_DRV_TEST 106config RTC_DRV_TEST
109 tristate "Test driver/device" 107 tristate "Test driver/device"
110 depends on RTC_CLASS
111 help 108 help
112 If you say yes here you get support for the 109 If you say yes here you get support for the
113 RTC test driver. It's a software RTC which can be 110 RTC test driver. It's a software RTC which can be
@@ -121,11 +118,12 @@ config RTC_DRV_TEST
121 will be called rtc-test. 118 will be called rtc-test.
122 119
123comment "I2C RTC drivers" 120comment "I2C RTC drivers"
124 depends on RTC_CLASS && I2C 121 depends on I2C
122
123if I2C
125 124
126config RTC_DRV_DS1307 125config RTC_DRV_DS1307
127 tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00" 126 tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00"
128 depends on RTC_CLASS && I2C
129 help 127 help
130 If you say yes here you get support for various compatible RTC 128 If you say yes here you get support for various compatible RTC
131 chips (often with battery backup) connected with I2C. This driver 129 chips (often with battery backup) connected with I2C. This driver
@@ -143,7 +141,6 @@ config RTC_DRV_DS1307
143 141
144config RTC_DRV_DS1672 142config RTC_DRV_DS1672
145 tristate "Dallas/Maxim DS1672" 143 tristate "Dallas/Maxim DS1672"
146 depends on RTC_CLASS && I2C
147 help 144 help
148 If you say yes here you get support for the 145 If you say yes here you get support for the
149 Dallas/Maxim DS1672 timekeeping chip. 146 Dallas/Maxim DS1672 timekeeping chip.
@@ -153,7 +150,6 @@ config RTC_DRV_DS1672
153 150
154config RTC_DRV_MAX6900 151config RTC_DRV_MAX6900
155 tristate "Maxim 6900" 152 tristate "Maxim 6900"
156 depends on RTC_CLASS && I2C
157 help 153 help
158 If you say yes here you will get support for the 154 If you say yes here you will get support for the
159 Maxim MAX6900 I2C RTC chip. 155 Maxim MAX6900 I2C RTC chip.
@@ -163,7 +159,6 @@ config RTC_DRV_MAX6900
163 159
164config RTC_DRV_RS5C372 160config RTC_DRV_RS5C372
165 tristate "Ricoh RS5C372A/B, RV5C386, RV5C387A" 161 tristate "Ricoh RS5C372A/B, RV5C386, RV5C387A"
166 depends on RTC_CLASS && I2C
167 help 162 help
168 If you say yes here you get support for the 163 If you say yes here you get support for the
169 Ricoh RS5C372A, RS5C372B, RV5C386, and RV5C387A RTC chips. 164 Ricoh RS5C372A, RS5C372B, RV5C386, and RV5C387A RTC chips.
@@ -173,7 +168,6 @@ config RTC_DRV_RS5C372
173 168
174config RTC_DRV_ISL1208 169config RTC_DRV_ISL1208
175 tristate "Intersil 1208" 170 tristate "Intersil 1208"
176 depends on RTC_CLASS && I2C
177 help 171 help
178 If you say yes here you get support for the 172 If you say yes here you get support for the
179 Intersil 1208 RTC chip. 173 Intersil 1208 RTC chip.
@@ -183,7 +177,6 @@ config RTC_DRV_ISL1208
183 177
184config RTC_DRV_X1205 178config RTC_DRV_X1205
185 tristate "Xicor/Intersil X1205" 179 tristate "Xicor/Intersil X1205"
186 depends on RTC_CLASS && I2C
187 help 180 help
188 If you say yes here you get support for the 181 If you say yes here you get support for the
189 Xicor/Intersil X1205 RTC chip. 182 Xicor/Intersil X1205 RTC chip.
@@ -193,7 +186,6 @@ config RTC_DRV_X1205
193 186
194config RTC_DRV_PCF8563 187config RTC_DRV_PCF8563
195 tristate "Philips PCF8563/Epson RTC8564" 188 tristate "Philips PCF8563/Epson RTC8564"
196 depends on RTC_CLASS && I2C
197 help 189 help
198 If you say yes here you get support for the 190 If you say yes here you get support for the
199 Philips PCF8563 RTC chip. The Epson RTC8564 191 Philips PCF8563 RTC chip. The Epson RTC8564
@@ -204,7 +196,6 @@ config RTC_DRV_PCF8563
204 196
205config RTC_DRV_PCF8583 197config RTC_DRV_PCF8583
206 tristate "Philips PCF8583" 198 tristate "Philips PCF8583"
207 depends on RTC_CLASS && I2C
208 help 199 help
209 If you say yes here you get support for the Philips PCF8583 200 If you say yes here you get support for the Philips PCF8583
210 RTC chip found on Acorn RiscPCs. This driver supports the 201 RTC chip found on Acorn RiscPCs. This driver supports the
@@ -217,7 +208,6 @@ config RTC_DRV_PCF8583
217 208
218config RTC_DRV_M41T80 209config RTC_DRV_M41T80
219 tristate "ST M41T80 series RTC" 210 tristate "ST M41T80 series RTC"
220 depends on RTC_CLASS && I2C
221 help 211 help
222 If you say Y here you will get support for the 212 If you say Y here you will get support for the
223 ST M41T80 RTC chips series. Currently following chips are 213 ST M41T80 RTC chips series. Currently following chips are
@@ -236,19 +226,21 @@ config RTC_DRV_M41T80_WDT
236 226
237config RTC_DRV_TWL92330 227config RTC_DRV_TWL92330
238 boolean "TI TWL92330/Menelaus" 228 boolean "TI TWL92330/Menelaus"
239 depends on RTC_CLASS && I2C && MENELAUS 229 depends on MENELAUS
240 help 230 help
241 If you say yes here you get support for the RTC on the 231 If you say yes here you get support for the RTC on the
242 TWL92330 "Menelaus" power mangement chip, used with OMAP2 232 TWL92330 "Menelaus" power mangement chip, used with OMAP2
243 platforms. The support is integrated with the rest of 233 platforms. The support is integrated with the rest of
244 the Menelaus driver; it's not separate module. 234 the Menelaus driver; it's not separate module.
245 235
236endif # I2C
237
246comment "SPI RTC drivers" 238comment "SPI RTC drivers"
247 depends on RTC_CLASS && SPI_MASTER 239
240if SPI_MASTER
248 241
249config RTC_DRV_RS5C348 242config RTC_DRV_RS5C348
250 tristate "Ricoh RS5C348A/B" 243 tristate "Ricoh RS5C348A/B"
251 depends on RTC_CLASS && SPI_MASTER
252 help 244 help
253 If you say yes here you get support for the 245 If you say yes here you get support for the
254 Ricoh RS5C348A and RS5C348B RTC chips. 246 Ricoh RS5C348A and RS5C348B RTC chips.
@@ -258,7 +250,6 @@ config RTC_DRV_RS5C348
258 250
259config RTC_DRV_MAX6902 251config RTC_DRV_MAX6902
260 tristate "Maxim 6902" 252 tristate "Maxim 6902"
261 depends on RTC_CLASS && SPI_MASTER
262 help 253 help
263 If you say yes here you will get support for the 254 If you say yes here you will get support for the
264 Maxim MAX6902 SPI RTC chip. 255 Maxim MAX6902 SPI RTC chip.
@@ -266,8 +257,9 @@ config RTC_DRV_MAX6902
266 This driver can also be built as a module. If so, the module 257 This driver can also be built as a module. If so, the module
267 will be called rtc-max6902. 258 will be called rtc-max6902.
268 259
260endif # SPI_MASTER
261
269comment "Platform RTC drivers" 262comment "Platform RTC drivers"
270 depends on RTC_CLASS
271 263
272# this 'CMOS' RTC driver is arch dependent because <asm-generic/rtc.h> 264# this 'CMOS' RTC driver is arch dependent because <asm-generic/rtc.h>
273# requires <asm/mc146818rtc.h> defining CMOS_READ/CMOS_WRITE, and a 265# requires <asm/mc146818rtc.h> defining CMOS_READ/CMOS_WRITE, and a
@@ -275,8 +267,7 @@ comment "Platform RTC drivers"
275 267
276config RTC_DRV_CMOS 268config RTC_DRV_CMOS
277 tristate "PC-style 'CMOS'" 269 tristate "PC-style 'CMOS'"
278 depends on RTC_CLASS && (X86 || ALPHA || ARM \ 270 depends on X86 || ALPHA || ARM || M32R || ATARI || PPC || MIPS
279 || M32R || ATARI || PPC || MIPS)
280 help 271 help
281 Say "yes" here to get direct support for the real time clock 272 Say "yes" here to get direct support for the real time clock
282 found in every PC or ACPI-based system, and some other boards. 273 found in every PC or ACPI-based system, and some other boards.
@@ -294,13 +285,12 @@ config RTC_DRV_CMOS
294 285
295config RTC_DRV_DS1216 286config RTC_DRV_DS1216
296 tristate "Dallas DS1216" 287 tristate "Dallas DS1216"
297 depends on RTC_CLASS && SNI_RM 288 depends on SNI_RM
298 help 289 help
299 If you say yes here you get support for the Dallas DS1216 RTC chips. 290 If you say yes here you get support for the Dallas DS1216 RTC chips.
300 291
301config RTC_DRV_DS1553 292config RTC_DRV_DS1553
302 tristate "Dallas DS1553" 293 tristate "Dallas DS1553"
303 depends on RTC_CLASS
304 help 294 help
305 If you say yes here you get support for the 295 If you say yes here you get support for the
306 Dallas DS1553 timekeeping chip. 296 Dallas DS1553 timekeeping chip.
@@ -320,7 +310,6 @@ config RTC_DRV_STK17TA8
320 310
321config RTC_DRV_DS1742 311config RTC_DRV_DS1742
322 tristate "Dallas DS1742/1743" 312 tristate "Dallas DS1742/1743"
323 depends on RTC_CLASS
324 help 313 help
325 If you say yes here you get support for the 314 If you say yes here you get support for the
326 Dallas DS1742/1743 timekeeping chip. 315 Dallas DS1742/1743 timekeeping chip.
@@ -330,7 +319,6 @@ config RTC_DRV_DS1742
330 319
331config RTC_DRV_M48T86 320config RTC_DRV_M48T86
332 tristate "ST M48T86/Dallas DS12887" 321 tristate "ST M48T86/Dallas DS12887"
333 depends on RTC_CLASS
334 help 322 help
335 If you say Y here you will get support for the 323 If you say Y here you will get support for the
336 ST M48T86 and Dallas DS12887 RTC chips. 324 ST M48T86 and Dallas DS12887 RTC chips.
@@ -340,7 +328,6 @@ config RTC_DRV_M48T86
340 328
341config RTC_DRV_M48T59 329config RTC_DRV_M48T59
342 tristate "ST M48T59" 330 tristate "ST M48T59"
343 depends on RTC_CLASS
344 help 331 help
345 If you say Y here you will get support for the 332 If you say Y here you will get support for the
346 ST M48T59 RTC chip. 333 ST M48T59 RTC chip.
@@ -350,7 +337,6 @@ config RTC_DRV_M48T59
350 337
351config RTC_DRV_V3020 338config RTC_DRV_V3020
352 tristate "EM Microelectronic V3020" 339 tristate "EM Microelectronic V3020"
353 depends on RTC_CLASS
354 help 340 help
355 If you say yes here you will get support for the 341 If you say yes here you will get support for the
356 EM Microelectronic v3020 RTC chip. 342 EM Microelectronic v3020 RTC chip.
@@ -359,19 +345,17 @@ config RTC_DRV_V3020
359 will be called rtc-v3020. 345 will be called rtc-v3020.
360 346
361comment "on-CPU RTC drivers" 347comment "on-CPU RTC drivers"
362 depends on RTC_CLASS
363 348
364config RTC_DRV_OMAP 349config RTC_DRV_OMAP
365 tristate "TI OMAP1" 350 tristate "TI OMAP1"
366 depends on RTC_CLASS && ( \ 351 depends on ARCH_OMAP15XX || ARCH_OMAP16XX || ARCH_OMAP730
367 ARCH_OMAP15XX || ARCH_OMAP16XX || ARCH_OMAP730 )
368 help 352 help
369 Say "yes" here to support the real time clock on TI OMAP1 chips. 353 Say "yes" here to support the real time clock on TI OMAP1 chips.
370 This driver can also be built as a module called rtc-omap. 354 This driver can also be built as a module called rtc-omap.
371 355
372config RTC_DRV_S3C 356config RTC_DRV_S3C
373 tristate "Samsung S3C series SoC RTC" 357 tristate "Samsung S3C series SoC RTC"
374 depends on RTC_CLASS && ARCH_S3C2410 358 depends on ARCH_S3C2410
375 help 359 help
376 RTC (Realtime Clock) driver for the clock inbuilt into the 360 RTC (Realtime Clock) driver for the clock inbuilt into the
377 Samsung S3C24XX series of SoCs. This can provide periodic 361 Samsung S3C24XX series of SoCs. This can provide periodic
@@ -387,7 +371,7 @@ config RTC_DRV_S3C
387 371
388config RTC_DRV_EP93XX 372config RTC_DRV_EP93XX
389 tristate "Cirrus Logic EP93XX" 373 tristate "Cirrus Logic EP93XX"
390 depends on RTC_CLASS && ARCH_EP93XX 374 depends on ARCH_EP93XX
391 help 375 help
392 If you say yes here you get support for the 376 If you say yes here you get support for the
393 RTC embedded in the Cirrus Logic EP93XX processors. 377 RTC embedded in the Cirrus Logic EP93XX processors.
@@ -397,7 +381,7 @@ config RTC_DRV_EP93XX
397 381
398config RTC_DRV_SA1100 382config RTC_DRV_SA1100
399 tristate "SA11x0/PXA2xx" 383 tristate "SA11x0/PXA2xx"
400 depends on RTC_CLASS && (ARCH_SA1100 || ARCH_PXA) 384 depends on ARCH_SA1100 || ARCH_PXA
401 help 385 help
402 If you say Y here you will get access to the real time clock 386 If you say Y here you will get access to the real time clock
403 built into your SA11x0 or PXA2xx CPU. 387 built into your SA11x0 or PXA2xx CPU.
@@ -407,7 +391,7 @@ config RTC_DRV_SA1100
407 391
408config RTC_DRV_SH 392config RTC_DRV_SH
409 tristate "SuperH On-Chip RTC" 393 tristate "SuperH On-Chip RTC"
410 depends on RTC_CLASS && SUPERH && (CPU_SH3 || CPU_SH4) 394 depends on RTC_CLASS && (CPU_SH3 || CPU_SH4)
411 help 395 help
412 Say Y here to enable support for the on-chip RTC found in 396 Say Y here to enable support for the on-chip RTC found in
413 most SuperH processors. 397 most SuperH processors.
@@ -417,7 +401,7 @@ config RTC_DRV_SH
417 401
418config RTC_DRV_VR41XX 402config RTC_DRV_VR41XX
419 tristate "NEC VR41XX" 403 tristate "NEC VR41XX"
420 depends on RTC_CLASS && CPU_VR41XX 404 depends on CPU_VR41XX
421 help 405 help
422 If you say Y here you will get access to the real time clock 406 If you say Y here you will get access to the real time clock
423 built into your NEC VR41XX CPU. 407 built into your NEC VR41XX CPU.
@@ -427,7 +411,7 @@ config RTC_DRV_VR41XX
427 411
428config RTC_DRV_PL031 412config RTC_DRV_PL031
429 tristate "ARM AMBA PL031 RTC" 413 tristate "ARM AMBA PL031 RTC"
430 depends on RTC_CLASS && ARM_AMBA 414 depends on ARM_AMBA
431 help 415 help
432 If you say Y here you will get access to ARM AMBA 416 If you say Y here you will get access to ARM AMBA
433 PrimeCell PL031 RTC found on certain ARM SOCs. 417 PrimeCell PL031 RTC found on certain ARM SOCs.
@@ -437,20 +421,20 @@ config RTC_DRV_PL031
437 421
438config RTC_DRV_AT32AP700X 422config RTC_DRV_AT32AP700X
439 tristate "AT32AP700X series RTC" 423 tristate "AT32AP700X series RTC"
440 depends on RTC_CLASS && PLATFORM_AT32AP 424 depends on PLATFORM_AT32AP
441 help 425 help
442 Driver for the internal RTC (Realtime Clock) on Atmel AVR32 426 Driver for the internal RTC (Realtime Clock) on Atmel AVR32
443 AT32AP700x family processors. 427 AT32AP700x family processors.
444 428
445config RTC_DRV_AT91RM9200 429config RTC_DRV_AT91RM9200
446 tristate "AT91RM9200" 430 tristate "AT91RM9200"
447 depends on RTC_CLASS && ARCH_AT91RM9200 431 depends on ARCH_AT91RM9200
448 help 432 help
449 Driver for the Atmel AT91RM9200's internal RTC (Realtime Clock). 433 Driver for the Atmel AT91RM9200's internal RTC (Realtime Clock).
450 434
451config RTC_DRV_BFIN 435config RTC_DRV_BFIN
452 tristate "Blackfin On-Chip RTC" 436 tristate "Blackfin On-Chip RTC"
453 depends on RTC_CLASS && BFIN 437 depends on BFIN
454 help 438 help
455 If you say yes here you will get support for the 439 If you say yes here you will get support for the
456 Blackfin On-Chip Real Time Clock. 440 Blackfin On-Chip Real Time Clock.
@@ -460,8 +444,8 @@ config RTC_DRV_BFIN
460 444
461config RTC_DRV_RS5C313 445config RTC_DRV_RS5C313
462 tristate "Ricoh RS5C313" 446 tristate "Ricoh RS5C313"
463 depends on RTC_CLASS && SH_LANDISK 447 depends on SH_LANDISK
464 help 448 help
465 If you say yes here you get support for the Ricoh RS5C313 RTC chips. 449 If you say yes here you get support for the Ricoh RS5C313 RTC chips.
466 450
467endmenu 451endif # RTC_CLASS