xref: /linux/drivers/rtc/Kconfig (revision 7fc39f6d616a852750ddaac86f5e4c3fad804ef8)
10c86edc0SAlessandro Zummo\#
2c58411e9SAlessandro Zummo# RTC class/drivers configuration
3c58411e9SAlessandro Zummo#
4c58411e9SAlessandro Zummo
50c86edc0SAlessandro Zummomenu "Real Time Clock"
60c86edc0SAlessandro Zummo
7c58411e9SAlessandro Zummoconfig RTC_LIB
8c58411e9SAlessandro Zummo	tristate
90c86edc0SAlessandro Zummo
100c86edc0SAlessandro Zummoconfig RTC_CLASS
110c86edc0SAlessandro Zummo	tristate "RTC class"
120c86edc0SAlessandro Zummo	depends on EXPERIMENTAL
130c86edc0SAlessandro Zummo	default n
140c86edc0SAlessandro Zummo	select RTC_LIB
150c86edc0SAlessandro Zummo	help
160c86edc0SAlessandro Zummo	  Generic RTC class support. If you say yes here, you will
170c86edc0SAlessandro Zummo 	  be allowed to plug one or more RTCs to your system. You will
1827ae4104SAdrian Bunk	  probably want to enable one or more of the interfaces below.
190c86edc0SAlessandro Zummo
200c86edc0SAlessandro Zummo	  This driver can also be built as a module. If so, the module
210c86edc0SAlessandro Zummo	  will be called rtc-class.
220c86edc0SAlessandro Zummo
230c86edc0SAlessandro Zummoconfig RTC_HCTOSYS
240c86edc0SAlessandro Zummo	bool "Set system time from RTC on startup"
250c86edc0SAlessandro Zummo	depends on RTC_CLASS = y
260c86edc0SAlessandro Zummo	default y
270c86edc0SAlessandro Zummo	help
280c86edc0SAlessandro Zummo	  If you say yes here, the system time will be set using
290c86edc0SAlessandro Zummo	  the value read from the specified RTC device. This is useful
30af3ffa67SPavel Machek	  in order to avoid unnecessary fsck runs.
310c86edc0SAlessandro Zummo
320c86edc0SAlessandro Zummoconfig RTC_HCTOSYS_DEVICE
330c86edc0SAlessandro Zummo	string "The RTC to read the time from"
340c86edc0SAlessandro Zummo	depends on RTC_HCTOSYS = y
350c86edc0SAlessandro Zummo	default "rtc0"
360c86edc0SAlessandro Zummo	help
370c86edc0SAlessandro Zummo	  The RTC device that will be used as the source for
380c86edc0SAlessandro Zummo	  the system time, usually rtc0.
390c86edc0SAlessandro Zummo
409e86ecb6SDavid Brownellconfig RTC_DEBUG
419e86ecb6SDavid Brownell	bool "RTC debug support"
429e86ecb6SDavid Brownell	depends on RTC_CLASS = y
439e86ecb6SDavid Brownell	help
449e86ecb6SDavid Brownell	  Say yes here to enable debugging support in the RTC framework
459e86ecb6SDavid Brownell	  and individual RTC drivers.
469e86ecb6SDavid Brownell
470c86edc0SAlessandro Zummocomment "RTC interfaces"
480c86edc0SAlessandro Zummo	depends on RTC_CLASS
490c86edc0SAlessandro Zummo
50c5c3e192SAlessandro Zummoconfig RTC_INTF_SYSFS
51c5c3e192SAlessandro Zummo	tristate "sysfs"
52c5c3e192SAlessandro Zummo	depends on RTC_CLASS && SYSFS
53c5c3e192SAlessandro Zummo	default RTC_CLASS
54c5c3e192SAlessandro Zummo	help
559e86ecb6SDavid Brownell	  Say yes here if you want to use your RTCs using sysfs interfaces,
569e86ecb6SDavid Brownell	  /sys/class/rtc/rtc0 through /sys/.../rtcN.
57c5c3e192SAlessandro Zummo
58c5c3e192SAlessandro Zummo	  This driver can also be built as a module. If so, the module
59c5c3e192SAlessandro Zummo	  will be called rtc-sysfs.
60c5c3e192SAlessandro Zummo
61728a2947SAlessandro Zummoconfig RTC_INTF_PROC
62728a2947SAlessandro Zummo	tristate "proc"
63728a2947SAlessandro Zummo	depends on RTC_CLASS && PROC_FS
64728a2947SAlessandro Zummo	default RTC_CLASS
65728a2947SAlessandro Zummo	help
669e86ecb6SDavid Brownell	  Say yes here if you want to use your first RTC through the proc
679e86ecb6SDavid Brownell	  interface, /proc/driver/rtc.  Other RTCs will not be available
689e86ecb6SDavid Brownell	  through that API.
69728a2947SAlessandro Zummo
70728a2947SAlessandro Zummo	  This driver can also be built as a module. If so, the module
71728a2947SAlessandro Zummo	  will be called rtc-proc.
72728a2947SAlessandro Zummo
73e824290eSAlessandro Zummoconfig RTC_INTF_DEV
74e824290eSAlessandro Zummo	tristate "dev"
75e824290eSAlessandro Zummo	depends on RTC_CLASS
76e824290eSAlessandro Zummo	default RTC_CLASS
77e824290eSAlessandro Zummo	help
789e86ecb6SDavid Brownell	  Say yes here if you want to use your RTCs using the /dev
799e86ecb6SDavid Brownell	  interfaces, which "udev" sets up as /dev/rtc0 through
809e86ecb6SDavid Brownell	  /dev/rtcN.  You may want to set up a symbolic link so one
819e86ecb6SDavid Brownell	  of these can be accessed as /dev/rtc, which is a name
829e86ecb6SDavid Brownell	  expected by "hwclock" and some other programs.
83e824290eSAlessandro Zummo
84e824290eSAlessandro Zummo	  This driver can also be built as a module. If so, the module
85e824290eSAlessandro Zummo	  will be called rtc-dev.
86e824290eSAlessandro Zummo
87655066c3SAtsushi Nemotoconfig RTC_INTF_DEV_UIE_EMUL
88655066c3SAtsushi Nemoto	bool "RTC UIE emulation on dev interface"
89655066c3SAtsushi Nemoto	depends on RTC_INTF_DEV
90655066c3SAtsushi Nemoto	help
91655066c3SAtsushi Nemoto	  Provides an emulation for RTC_UIE if the underlaying rtc chip
929e86ecb6SDavid Brownell	  driver does not expose RTC_UIE ioctls.  Those requests generate
939e86ecb6SDavid Brownell	  once-per-second update interrupts, used for synchronization.
94655066c3SAtsushi Nemoto
950c86edc0SAlessandro Zummocomment "RTC drivers"
960c86edc0SAlessandro Zummo	depends on RTC_CLASS
970c86edc0SAlessandro Zummo
981fec7c66SAlessandro Zummoconfig RTC_DRV_X1205
991fec7c66SAlessandro Zummo	tristate "Xicor/Intersil X1205"
1001fec7c66SAlessandro Zummo	depends on RTC_CLASS && I2C
1011fec7c66SAlessandro Zummo	help
1021fec7c66SAlessandro Zummo	  If you say yes here you get support for the
1031fec7c66SAlessandro Zummo	  Xicor/Intersil X1205 RTC chip.
1041fec7c66SAlessandro Zummo
1051fec7c66SAlessandro Zummo	  This driver can also be built as a module. If so, the module
1061fec7c66SAlessandro Zummo	  will be called rtc-x1205.
1071fec7c66SAlessandro Zummo
1081abb0dc9SDavid Brownellconfig RTC_DRV_DS1307
1091abb0dc9SDavid Brownell	tristate "Dallas/Maxim DS1307 and similar I2C RTC chips"
1101abb0dc9SDavid Brownell	depends on RTC_CLASS && I2C
1111abb0dc9SDavid Brownell	help
1121abb0dc9SDavid Brownell	  If you say yes here you get support for various compatible RTC
1131abb0dc9SDavid Brownell	  chips (often with battery backup) connected with I2C.  This driver
1141abb0dc9SDavid Brownell	  should handle DS1307, DS1337, DS1338, DS1339, DS1340, ST M41T00,
1151abb0dc9SDavid Brownell	  and probably other chips.  In some cases the RTC must already
1161abb0dc9SDavid Brownell	  have been initialized (by manufacturing or a bootloader).
1171abb0dc9SDavid Brownell
1181abb0dc9SDavid Brownell	  The first seven registers on these chips hold an RTC, and other
1191abb0dc9SDavid Brownell	  registers may add features such as NVRAM, a trickle charger for
1201abb0dc9SDavid Brownell	  the RTC/NVRAM backup power, and alarms.  This driver may not
1211abb0dc9SDavid Brownell	  expose all those available chip features.
1221abb0dc9SDavid Brownell
1231abb0dc9SDavid Brownell	  This driver can also be built as a module. If so, the module
1241abb0dc9SDavid Brownell	  will be called rtc-ds1307.
1251abb0dc9SDavid Brownell
1269bf5b4f5SAtsushi Nemotoconfig RTC_DRV_DS1553
1279bf5b4f5SAtsushi Nemoto	tristate "Dallas DS1553"
1289bf5b4f5SAtsushi Nemoto	depends on RTC_CLASS
1299bf5b4f5SAtsushi Nemoto	help
1309bf5b4f5SAtsushi Nemoto	  If you say yes here you get support for the
1319bf5b4f5SAtsushi Nemoto	  Dallas DS1553 timekeeping chip.
1329bf5b4f5SAtsushi Nemoto
1339bf5b4f5SAtsushi Nemoto	  This driver can also be built as a module. If so, the module
1349bf5b4f5SAtsushi Nemoto	  will be called rtc-ds1553.
1359bf5b4f5SAtsushi Nemoto
1367e56a7dcSHerbert Valerio Riedelconfig RTC_DRV_ISL1208
1377e56a7dcSHerbert Valerio Riedel	tristate "Intersil 1208"
1387e56a7dcSHerbert Valerio Riedel	depends on RTC_CLASS && I2C
1397e56a7dcSHerbert Valerio Riedel	help
1407e56a7dcSHerbert Valerio Riedel	  If you say yes here you get support for the
1417e56a7dcSHerbert Valerio Riedel	  Intersil 1208 RTC chip.
1427e56a7dcSHerbert Valerio Riedel
1437e56a7dcSHerbert Valerio Riedel	  This driver can also be built as a module. If so, the module
1447e56a7dcSHerbert Valerio Riedel	  will be called rtc-isl1208.
1457e56a7dcSHerbert Valerio Riedel
146edf1aaa3SAlessandro Zummoconfig RTC_DRV_DS1672
147edf1aaa3SAlessandro Zummo	tristate "Dallas/Maxim DS1672"
148edf1aaa3SAlessandro Zummo	depends on RTC_CLASS && I2C
149edf1aaa3SAlessandro Zummo	help
150edf1aaa3SAlessandro Zummo	  If you say yes here you get support for the
151edf1aaa3SAlessandro Zummo	  Dallas/Maxim DS1672 timekeeping chip.
152edf1aaa3SAlessandro Zummo
153edf1aaa3SAlessandro Zummo	  This driver can also be built as a module. If so, the module
154edf1aaa3SAlessandro Zummo	  will be called rtc-ds1672.
155edf1aaa3SAlessandro Zummo
1565ec3e4b7SAtsushi Nemotoconfig RTC_DRV_DS1742
157f9231a0cSTorsten Ertbjerg Rasmussen	tristate "Dallas DS1742/1743"
1585ec3e4b7SAtsushi Nemoto	depends on RTC_CLASS
1595ec3e4b7SAtsushi Nemoto	help
1605ec3e4b7SAtsushi Nemoto	  If you say yes here you get support for the
161f9231a0cSTorsten Ertbjerg Rasmussen	  Dallas DS1742/1743 timekeeping chip.
1625ec3e4b7SAtsushi Nemoto
1635ec3e4b7SAtsushi Nemoto	  This driver can also be built as a module. If so, the module
1645ec3e4b7SAtsushi Nemoto	  will be called rtc-ds1742.
1655ec3e4b7SAtsushi Nemoto
166db68b189SDavid Brownellconfig RTC_DRV_OMAP
167db68b189SDavid Brownell	tristate "TI OMAP1"
168db68b189SDavid Brownell	depends on RTC_CLASS && ( \
169db68b189SDavid Brownell		ARCH_OMAP15XX || ARCH_OMAP16XX || ARCH_OMAP730 )
170db68b189SDavid Brownell	help
171db68b189SDavid Brownell	  Say "yes" here to support the real time clock on TI OMAP1 chips.
172db68b189SDavid Brownell	  This driver can also be built as a module called rtc-omap.
173db68b189SDavid Brownell
174b5a82d62SAlessandro Zummoconfig RTC_DRV_PCF8563
175b5a82d62SAlessandro Zummo	tristate "Philips PCF8563/Epson RTC8564"
176b5a82d62SAlessandro Zummo	depends on RTC_CLASS && I2C
177b5a82d62SAlessandro Zummo	help
178b5a82d62SAlessandro Zummo	  If you say yes here you get support for the
179b5a82d62SAlessandro Zummo	  Philips PCF8563 RTC chip. The Epson RTC8564
180b5a82d62SAlessandro Zummo	  should work as well.
181b5a82d62SAlessandro Zummo
182b5a82d62SAlessandro Zummo	  This driver can also be built as a module. If so, the module
183b5a82d62SAlessandro Zummo	  will be called rtc-pcf8563.
184b5a82d62SAlessandro Zummo
1859c0c5705SG. Liakhovetskiconfig RTC_DRV_PCF8583
1869c0c5705SG. Liakhovetski	tristate "Philips PCF8583"
1879c0c5705SG. Liakhovetski	depends on RTC_CLASS && I2C
1889c0c5705SG. Liakhovetski	help
1899c0c5705SG. Liakhovetski	  If you say yes here you get support for the
1909c0c5705SG. Liakhovetski	  Philips PCF8583 RTC chip.
1919c0c5705SG. Liakhovetski
1929c0c5705SG. Liakhovetski	  This driver can also be built as a module. If so, the module
1939c0c5705SG. Liakhovetski	  will be called rtc-pcf8583.
1949c0c5705SG. Liakhovetski
195e0ac4761SAtsushi Nemotoconfig RTC_DRV_RS5C348
196e0ac4761SAtsushi Nemoto	tristate "Ricoh RS5C348A/B"
197e0ac4761SAtsushi Nemoto	depends on RTC_CLASS && SPI
198e0ac4761SAtsushi Nemoto	help
199e0ac4761SAtsushi Nemoto	  If you say yes here you get support for the
200e0ac4761SAtsushi Nemoto	  Ricoh RS5C348A and RS5C348B RTC chips.
201e0ac4761SAtsushi Nemoto
202e0ac4761SAtsushi Nemoto	  This driver can also be built as a module. If so, the module
203e0ac4761SAtsushi Nemoto	  will be called rtc-rs5c348.
204e0ac4761SAtsushi Nemoto
2057520b94dSAlessandro Zummoconfig RTC_DRV_RS5C372
2067520b94dSAlessandro Zummo	tristate "Ricoh RS5C372A/B"
2077520b94dSAlessandro Zummo	depends on RTC_CLASS && I2C
2087520b94dSAlessandro Zummo	help
2097520b94dSAlessandro Zummo	  If you say yes here you get support for the
2107520b94dSAlessandro Zummo	  Ricoh RS5C372A and RS5C372B RTC chips.
2117520b94dSAlessandro Zummo
2127520b94dSAlessandro Zummo	  This driver can also be built as a module. If so, the module
2137520b94dSAlessandro Zummo	  will be called rtc-rs5c372.
2147520b94dSAlessandro Zummo
2151add6781SBen Dooksconfig RTC_DRV_S3C
2161add6781SBen Dooks	tristate "Samsung S3C series SoC RTC"
2171add6781SBen Dooks	depends on RTC_CLASS && ARCH_S3C2410
2181add6781SBen Dooks	help
2191add6781SBen Dooks	  RTC (Realtime Clock) driver for the clock inbuilt into the
2201add6781SBen Dooks	  Samsung S3C24XX series of SoCs. This can provide periodic
2211add6781SBen Dooks	  interrupt rates from 1Hz to 64Hz for user programs, and
2221add6781SBen Dooks	  wakeup from Alarm.
2231add6781SBen Dooks
2241add6781SBen Dooks	  The driver currently supports the common features on all the
2251add6781SBen Dooks	  S3C24XX range, such as the S3C2410, S3C2412, S3C2413, S3C2440
2261add6781SBen Dooks	  and S3C2442.
2271add6781SBen Dooks
2281add6781SBen Dooks	  This driver can also be build as a module. If so, the module
2291add6781SBen Dooks	  will be called rtc-s3c.
2301add6781SBen Dooks
2311d98af87SAlessandro Zummoconfig RTC_DRV_M48T86
2321d98af87SAlessandro Zummo	tristate "ST M48T86/Dallas DS12887"
2331d98af87SAlessandro Zummo	depends on RTC_CLASS
2341d98af87SAlessandro Zummo	help
2351d98af87SAlessandro Zummo	  If you say Y here you will get support for the
2361d98af87SAlessandro Zummo	  ST M48T86 and Dallas DS12887 RTC chips.
2371d98af87SAlessandro Zummo
2381d98af87SAlessandro Zummo	  This driver can also be built as a module. If so, the module
2391d98af87SAlessandro Zummo	  will be called rtc-m48t86.
2401d98af87SAlessandro Zummo
241fd507e2fSAlessandro Zummoconfig RTC_DRV_EP93XX
242fd507e2fSAlessandro Zummo	tristate "Cirrus Logic EP93XX"
243fd507e2fSAlessandro Zummo	depends on RTC_CLASS && ARCH_EP93XX
244fd507e2fSAlessandro Zummo	help
245fd507e2fSAlessandro Zummo	  If you say yes here you get support for the
246fd507e2fSAlessandro Zummo	  RTC embedded in the Cirrus Logic EP93XX processors.
247fd507e2fSAlessandro Zummo
248fd507e2fSAlessandro Zummo	  This driver can also be built as a module. If so, the module
249fd507e2fSAlessandro Zummo	  will be called rtc-ep93xx.
250fd507e2fSAlessandro Zummo
251e842f1c8SRichard Purdieconfig RTC_DRV_SA1100
252e842f1c8SRichard Purdie	tristate "SA11x0/PXA2xx"
253e842f1c8SRichard Purdie	depends on RTC_CLASS && (ARCH_SA1100 || ARCH_PXA)
254e842f1c8SRichard Purdie	help
255e842f1c8SRichard Purdie	  If you say Y here you will get access to the real time clock
256e842f1c8SRichard Purdie	  built into your SA11x0 or PXA2xx CPU.
257e842f1c8SRichard Purdie
258e842f1c8SRichard Purdie	  To compile this driver as a module, choose M here: the
259e842f1c8SRichard Purdie	  module will be called rtc-sa1100.
260fd507e2fSAlessandro Zummo
261317a6104SPaul Mundtconfig RTC_DRV_SH
262317a6104SPaul Mundt	tristate "SuperH On-Chip RTC"
263317a6104SPaul Mundt	depends on RTC_CLASS && SUPERH
264317a6104SPaul Mundt	help
265317a6104SPaul Mundt	  Say Y here to enable support for the on-chip RTC found in
266317a6104SPaul Mundt	  most SuperH processors.
267317a6104SPaul Mundt
268317a6104SPaul Mundt 	  To compile this driver as a module, choose M here: the
269317a6104SPaul Mundt	  module will be called rtc-sh.
270317a6104SPaul Mundt
2718417eb7aSYoichi Yuasaconfig RTC_DRV_VR41XX
2723e16f6afSAlessandro Zummo	tristate "NEC VR41XX"
2738417eb7aSYoichi Yuasa	depends on RTC_CLASS && CPU_VR41XX
2743e16f6afSAlessandro Zummo	help
2753e16f6afSAlessandro Zummo	  If you say Y here you will get access to the real time clock
2763e16f6afSAlessandro Zummo	  built into your NEC VR41XX CPU.
2773e16f6afSAlessandro Zummo
2783e16f6afSAlessandro Zummo	  To compile this driver as a module, choose M here: the
2793e16f6afSAlessandro Zummo	  module will be called rtc-vr41xx.
2808417eb7aSYoichi Yuasa
2818ae6e163SDeepak Saxenaconfig RTC_DRV_PL031
2828ae6e163SDeepak Saxena	tristate "ARM AMBA PL031 RTC"
2838ae6e163SDeepak Saxena	depends on RTC_CLASS && ARM_AMBA
2848ae6e163SDeepak Saxena	help
2858ae6e163SDeepak Saxena	  If you say Y here you will get access to ARM AMBA
2868ae6e163SDeepak Saxena	  PrimeCell PL031 UART found on certain ARM SOCs.
2878ae6e163SDeepak Saxena
2888ae6e163SDeepak Saxena	  To compile this driver as a module, choose M here: the
2898ae6e163SDeepak Saxena	  module will be called rtc-pl031.
2908ae6e163SDeepak Saxena
291*7fc39f6dSAndrew Victorconfig RTC_DRV_AT91RM9200
292788b1fc6SAndrew Victor	tristate "AT91RM9200"
293788b1fc6SAndrew Victor	depends on RTC_CLASS && ARCH_AT91RM9200
294788b1fc6SAndrew Victor	help
295788b1fc6SAndrew Victor	  Driver for the Atmel AT91RM9200's internal RTC (Realtime Clock).
296788b1fc6SAndrew Victor
297a95579cdSAlessandro Zummoconfig RTC_DRV_TEST
298a95579cdSAlessandro Zummo	tristate "Test driver/device"
299a95579cdSAlessandro Zummo	depends on RTC_CLASS
300a95579cdSAlessandro Zummo	help
301a95579cdSAlessandro Zummo	  If you say yes here you get support for the
302a95579cdSAlessandro Zummo	  RTC test driver. It's a software RTC which can be
303a95579cdSAlessandro Zummo	  used to test the RTC subsystem APIs. It gets
304a95579cdSAlessandro Zummo	  the time from the system clock.
305a95579cdSAlessandro Zummo	  You want this driver only if you are doing development
306a95579cdSAlessandro Zummo	  on the RTC subsystem. Please read the source code
307a95579cdSAlessandro Zummo	  for further details.
308a95579cdSAlessandro Zummo
309a95579cdSAlessandro Zummo	  This driver can also be built as a module. If so, the module
310a95579cdSAlessandro Zummo	  will be called rtc-test.
311a95579cdSAlessandro Zummo
3128e12ecc2SRaphael Assenatconfig RTC_DRV_MAX6902
3138e12ecc2SRaphael Assenat	tristate "Maxim 6902"
3148e12ecc2SRaphael Assenat	depends on RTC_CLASS && SPI
3158e12ecc2SRaphael Assenat	help
3168e12ecc2SRaphael Assenat	  If you say yes here you will get support for the
3178e12ecc2SRaphael Assenat	  Maxim MAX6902 spi RTC chip.
3188e12ecc2SRaphael Assenat
3198e12ecc2SRaphael Assenat	  This driver can also be built as a module. If so, the module
3208e12ecc2SRaphael Assenat	  will be called rtc-max6902.
3218e12ecc2SRaphael Assenat
322362600feSRaphael Assenatconfig RTC_DRV_V3020
323362600feSRaphael Assenat	tristate "EM Microelectronic V3020"
324362600feSRaphael Assenat	depends on RTC_CLASS
325362600feSRaphael Assenat	help
326362600feSRaphael Assenat	  If you say yes here you will get support for the
327362600feSRaphael Assenat	  EM Microelectronic v3020 RTC chip.
328362600feSRaphael Assenat
329362600feSRaphael Assenat	  This driver can also be built as a module. If so, the module
330362600feSRaphael Assenat	  will be called rtc-v3020.
331362600feSRaphael Assenat
3320c86edc0SAlessandro Zummoendmenu
333