xref: /linux/drivers/rtc/Kconfig (revision 788b1fc619a31ebdbadd3a8863631f59a4bd2944)
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
180c86edc0SAlessandro Zummo	  probably want to enable one of 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
300c86edc0SAlessandro Zummo	  in order to avoid unnecessary fschk 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
400c86edc0SAlessandro Zummocomment "RTC interfaces"
410c86edc0SAlessandro Zummo	depends on RTC_CLASS
420c86edc0SAlessandro Zummo
43c5c3e192SAlessandro Zummoconfig RTC_INTF_SYSFS
44c5c3e192SAlessandro Zummo	tristate "sysfs"
45c5c3e192SAlessandro Zummo	depends on RTC_CLASS && SYSFS
46c5c3e192SAlessandro Zummo	default RTC_CLASS
47c5c3e192SAlessandro Zummo	help
48c5c3e192SAlessandro Zummo	  Say yes here if you want to use your RTC using the sysfs
49c5c3e192SAlessandro Zummo	  interface, /sys/class/rtc/rtcX .
50c5c3e192SAlessandro Zummo
51c5c3e192SAlessandro Zummo	  This driver can also be built as a module. If so, the module
52c5c3e192SAlessandro Zummo	  will be called rtc-sysfs.
53c5c3e192SAlessandro Zummo
54728a2947SAlessandro Zummoconfig RTC_INTF_PROC
55728a2947SAlessandro Zummo	tristate "proc"
56728a2947SAlessandro Zummo	depends on RTC_CLASS && PROC_FS
57728a2947SAlessandro Zummo	default RTC_CLASS
58728a2947SAlessandro Zummo	help
59728a2947SAlessandro Zummo	  Say yes here if you want to use your RTC using the proc
60728a2947SAlessandro Zummo	  interface, /proc/driver/rtc .
61728a2947SAlessandro Zummo
62728a2947SAlessandro Zummo	  This driver can also be built as a module. If so, the module
63728a2947SAlessandro Zummo	  will be called rtc-proc.
64728a2947SAlessandro Zummo
65e824290eSAlessandro Zummoconfig RTC_INTF_DEV
66e824290eSAlessandro Zummo	tristate "dev"
67e824290eSAlessandro Zummo	depends on RTC_CLASS
68e824290eSAlessandro Zummo	default RTC_CLASS
69e824290eSAlessandro Zummo	help
70e824290eSAlessandro Zummo	  Say yes here if you want to use your RTC using the dev
71e824290eSAlessandro Zummo	  interface, /dev/rtc .
72e824290eSAlessandro Zummo
73e824290eSAlessandro Zummo	  This driver can also be built as a module. If so, the module
74e824290eSAlessandro Zummo	  will be called rtc-dev.
75e824290eSAlessandro Zummo
76655066c3SAtsushi Nemotoconfig RTC_INTF_DEV_UIE_EMUL
77655066c3SAtsushi Nemoto	bool "RTC UIE emulation on dev interface"
78655066c3SAtsushi Nemoto	depends on RTC_INTF_DEV
79655066c3SAtsushi Nemoto	help
80655066c3SAtsushi Nemoto	  Provides an emulation for RTC_UIE if the underlaying rtc chip
81655066c3SAtsushi Nemoto	  driver did not provide RTC_UIE ioctls.
82655066c3SAtsushi Nemoto
830c86edc0SAlessandro Zummocomment "RTC drivers"
840c86edc0SAlessandro Zummo	depends on RTC_CLASS
850c86edc0SAlessandro Zummo
861fec7c66SAlessandro Zummoconfig RTC_DRV_X1205
871fec7c66SAlessandro Zummo	tristate "Xicor/Intersil X1205"
881fec7c66SAlessandro Zummo	depends on RTC_CLASS && I2C
891fec7c66SAlessandro Zummo	help
901fec7c66SAlessandro Zummo	  If you say yes here you get support for the
911fec7c66SAlessandro Zummo	  Xicor/Intersil X1205 RTC chip.
921fec7c66SAlessandro Zummo
931fec7c66SAlessandro Zummo	  This driver can also be built as a module. If so, the module
941fec7c66SAlessandro Zummo	  will be called rtc-x1205.
951fec7c66SAlessandro Zummo
961abb0dc9SDavid Brownellconfig RTC_DRV_DS1307
971abb0dc9SDavid Brownell	tristate "Dallas/Maxim DS1307 and similar I2C RTC chips"
981abb0dc9SDavid Brownell	depends on RTC_CLASS && I2C
991abb0dc9SDavid Brownell	help
1001abb0dc9SDavid Brownell	  If you say yes here you get support for various compatible RTC
1011abb0dc9SDavid Brownell	  chips (often with battery backup) connected with I2C.  This driver
1021abb0dc9SDavid Brownell	  should handle DS1307, DS1337, DS1338, DS1339, DS1340, ST M41T00,
1031abb0dc9SDavid Brownell	  and probably other chips.  In some cases the RTC must already
1041abb0dc9SDavid Brownell	  have been initialized (by manufacturing or a bootloader).
1051abb0dc9SDavid Brownell
1061abb0dc9SDavid Brownell	  The first seven registers on these chips hold an RTC, and other
1071abb0dc9SDavid Brownell	  registers may add features such as NVRAM, a trickle charger for
1081abb0dc9SDavid Brownell	  the RTC/NVRAM backup power, and alarms.  This driver may not
1091abb0dc9SDavid Brownell	  expose all those available chip features.
1101abb0dc9SDavid Brownell
1111abb0dc9SDavid Brownell	  This driver can also be built as a module. If so, the module
1121abb0dc9SDavid Brownell	  will be called rtc-ds1307.
1131abb0dc9SDavid Brownell
114edf1aaa3SAlessandro Zummoconfig RTC_DRV_DS1672
115edf1aaa3SAlessandro Zummo	tristate "Dallas/Maxim DS1672"
116edf1aaa3SAlessandro Zummo	depends on RTC_CLASS && I2C
117edf1aaa3SAlessandro Zummo	help
118edf1aaa3SAlessandro Zummo	  If you say yes here you get support for the
119edf1aaa3SAlessandro Zummo	  Dallas/Maxim DS1672 timekeeping chip.
120edf1aaa3SAlessandro Zummo
121edf1aaa3SAlessandro Zummo	  This driver can also be built as a module. If so, the module
122edf1aaa3SAlessandro Zummo	  will be called rtc-ds1672.
123edf1aaa3SAlessandro Zummo
124b5a82d62SAlessandro Zummoconfig RTC_DRV_PCF8563
125b5a82d62SAlessandro Zummo	tristate "Philips PCF8563/Epson RTC8564"
126b5a82d62SAlessandro Zummo	depends on RTC_CLASS && I2C
127b5a82d62SAlessandro Zummo	help
128b5a82d62SAlessandro Zummo	  If you say yes here you get support for the
129b5a82d62SAlessandro Zummo	  Philips PCF8563 RTC chip. The Epson RTC8564
130b5a82d62SAlessandro Zummo	  should work as well.
131b5a82d62SAlessandro Zummo
132b5a82d62SAlessandro Zummo	  This driver can also be built as a module. If so, the module
133b5a82d62SAlessandro Zummo	  will be called rtc-pcf8563.
134b5a82d62SAlessandro Zummo
1359c0c5705SG. Liakhovetskiconfig RTC_DRV_PCF8583
1369c0c5705SG. Liakhovetski	tristate "Philips PCF8583"
1379c0c5705SG. Liakhovetski	depends on RTC_CLASS && I2C
1389c0c5705SG. Liakhovetski	help
1399c0c5705SG. Liakhovetski	  If you say yes here you get support for the
1409c0c5705SG. Liakhovetski	  Philips PCF8583 RTC chip.
1419c0c5705SG. Liakhovetski
1429c0c5705SG. Liakhovetski	  This driver can also be built as a module. If so, the module
1439c0c5705SG. Liakhovetski	  will be called rtc-pcf8583.
1449c0c5705SG. Liakhovetski
1457520b94dSAlessandro Zummoconfig RTC_DRV_RS5C372
1467520b94dSAlessandro Zummo	tristate "Ricoh RS5C372A/B"
1477520b94dSAlessandro Zummo	depends on RTC_CLASS && I2C
1487520b94dSAlessandro Zummo	help
1497520b94dSAlessandro Zummo	  If you say yes here you get support for the
1507520b94dSAlessandro Zummo	  Ricoh RS5C372A and RS5C372B RTC chips.
1517520b94dSAlessandro Zummo
1527520b94dSAlessandro Zummo	  This driver can also be built as a module. If so, the module
1537520b94dSAlessandro Zummo	  will be called rtc-rs5c372.
1547520b94dSAlessandro Zummo
1551d98af87SAlessandro Zummoconfig RTC_DRV_M48T86
1561d98af87SAlessandro Zummo	tristate "ST M48T86/Dallas DS12887"
1571d98af87SAlessandro Zummo	depends on RTC_CLASS
1581d98af87SAlessandro Zummo	help
1591d98af87SAlessandro Zummo	  If you say Y here you will get support for the
1601d98af87SAlessandro Zummo	  ST M48T86 and Dallas DS12887 RTC chips.
1611d98af87SAlessandro Zummo
1621d98af87SAlessandro Zummo	  This driver can also be built as a module. If so, the module
1631d98af87SAlessandro Zummo	  will be called rtc-m48t86.
1641d98af87SAlessandro Zummo
165fd507e2fSAlessandro Zummoconfig RTC_DRV_EP93XX
166fd507e2fSAlessandro Zummo	tristate "Cirrus Logic EP93XX"
167fd507e2fSAlessandro Zummo	depends on RTC_CLASS && ARCH_EP93XX
168fd507e2fSAlessandro Zummo	help
169fd507e2fSAlessandro Zummo	  If you say yes here you get support for the
170fd507e2fSAlessandro Zummo	  RTC embedded in the Cirrus Logic EP93XX processors.
171fd507e2fSAlessandro Zummo
172fd507e2fSAlessandro Zummo	  This driver can also be built as a module. If so, the module
173fd507e2fSAlessandro Zummo	  will be called rtc-ep93xx.
174fd507e2fSAlessandro Zummo
175e842f1c8SRichard Purdieconfig RTC_DRV_SA1100
176e842f1c8SRichard Purdie	tristate "SA11x0/PXA2xx"
177e842f1c8SRichard Purdie	depends on RTC_CLASS && (ARCH_SA1100 || ARCH_PXA)
178e842f1c8SRichard Purdie	help
179e842f1c8SRichard Purdie	  If you say Y here you will get access to the real time clock
180e842f1c8SRichard Purdie	  built into your SA11x0 or PXA2xx CPU.
181e842f1c8SRichard Purdie
182e842f1c8SRichard Purdie	  To compile this driver as a module, choose M here: the
183e842f1c8SRichard Purdie	  module will be called rtc-sa1100.
184fd507e2fSAlessandro Zummo
1858417eb7aSYoichi Yuasaconfig RTC_DRV_VR41XX
1863e16f6afSAlessandro Zummo	tristate "NEC VR41XX"
1878417eb7aSYoichi Yuasa	depends on RTC_CLASS && CPU_VR41XX
1883e16f6afSAlessandro Zummo	help
1893e16f6afSAlessandro Zummo	  If you say Y here you will get access to the real time clock
1903e16f6afSAlessandro Zummo	  built into your NEC VR41XX CPU.
1913e16f6afSAlessandro Zummo
1923e16f6afSAlessandro Zummo	  To compile this driver as a module, choose M here: the
1933e16f6afSAlessandro Zummo	  module will be called rtc-vr41xx.
1948417eb7aSYoichi Yuasa
1958ae6e163SDeepak Saxenaconfig RTC_DRV_PL031
1968ae6e163SDeepak Saxena	tristate "ARM AMBA PL031 RTC"
1978ae6e163SDeepak Saxena	depends on RTC_CLASS && ARM_AMBA
1988ae6e163SDeepak Saxena	help
1998ae6e163SDeepak Saxena	  If you say Y here you will get access to ARM AMBA
2008ae6e163SDeepak Saxena	  PrimeCell PL031 UART found on certain ARM SOCs.
2018ae6e163SDeepak Saxena
2028ae6e163SDeepak Saxena	  To compile this driver as a module, choose M here: the
2038ae6e163SDeepak Saxena	  module will be called rtc-pl031.
2048ae6e163SDeepak Saxena
205*788b1fc6SAndrew Victorconfig RTC_DRV_AT91
206*788b1fc6SAndrew Victor	tristate "AT91RM9200"
207*788b1fc6SAndrew Victor	depends on RTC_CLASS && ARCH_AT91RM9200
208*788b1fc6SAndrew Victor	help
209*788b1fc6SAndrew Victor	  Driver for the Atmel AT91RM9200's internal RTC (Realtime Clock).
210*788b1fc6SAndrew Victor
211a95579cdSAlessandro Zummoconfig RTC_DRV_TEST
212a95579cdSAlessandro Zummo	tristate "Test driver/device"
213a95579cdSAlessandro Zummo	depends on RTC_CLASS
214a95579cdSAlessandro Zummo	help
215a95579cdSAlessandro Zummo	  If you say yes here you get support for the
216a95579cdSAlessandro Zummo	  RTC test driver. It's a software RTC which can be
217a95579cdSAlessandro Zummo	  used to test the RTC subsystem APIs. It gets
218a95579cdSAlessandro Zummo	  the time from the system clock.
219a95579cdSAlessandro Zummo	  You want this driver only if you are doing development
220a95579cdSAlessandro Zummo	  on the RTC subsystem. Please read the source code
221a95579cdSAlessandro Zummo	  for further details.
222a95579cdSAlessandro Zummo
223a95579cdSAlessandro Zummo	  This driver can also be built as a module. If so, the module
224a95579cdSAlessandro Zummo	  will be called rtc-test.
225a95579cdSAlessandro Zummo
2268e12ecc2SRaphael Assenatconfig RTC_DRV_MAX6902
2278e12ecc2SRaphael Assenat	tristate "Maxim 6902"
2288e12ecc2SRaphael Assenat	depends on RTC_CLASS && SPI
2298e12ecc2SRaphael Assenat	help
2308e12ecc2SRaphael Assenat	  If you say yes here you will get support for the
2318e12ecc2SRaphael Assenat	  Maxim MAX6902 spi RTC chip.
2328e12ecc2SRaphael Assenat
2338e12ecc2SRaphael Assenat	  This driver can also be built as a module. If so, the module
2348e12ecc2SRaphael Assenat	  will be called rtc-max6902.
2358e12ecc2SRaphael Assenat
236362600feSRaphael Assenatconfig RTC_DRV_V3020
237362600feSRaphael Assenat	tristate "EM Microelectronic V3020"
238362600feSRaphael Assenat	depends on RTC_CLASS
239362600feSRaphael Assenat	help
240362600feSRaphael Assenat	  If you say yes here you will get support for the
241362600feSRaphael Assenat	  EM Microelectronic v3020 RTC chip.
242362600feSRaphael Assenat
243362600feSRaphael Assenat	  This driver can also be built as a module. If so, the module
244362600feSRaphael Assenat	  will be called rtc-v3020.
245362600feSRaphael Assenat
2460c86edc0SAlessandro Zummoendmenu
247