xref: /linux/drivers/rtc/Kconfig (revision fd507e2ff3a5adaccbefa05f4bc9f58f44e930db)
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
760c86edc0SAlessandro Zummocomment "RTC drivers"
770c86edc0SAlessandro Zummo	depends on RTC_CLASS
780c86edc0SAlessandro Zummo
791fec7c66SAlessandro Zummoconfig RTC_DRV_X1205
801fec7c66SAlessandro Zummo	tristate "Xicor/Intersil X1205"
811fec7c66SAlessandro Zummo	depends on RTC_CLASS && I2C
821fec7c66SAlessandro Zummo	help
831fec7c66SAlessandro Zummo	  If you say yes here you get support for the
841fec7c66SAlessandro Zummo	  Xicor/Intersil X1205 RTC chip.
851fec7c66SAlessandro Zummo
861fec7c66SAlessandro Zummo	  This driver can also be built as a module. If so, the module
871fec7c66SAlessandro Zummo	  will be called rtc-x1205.
881fec7c66SAlessandro Zummo
89edf1aaa3SAlessandro Zummoconfig RTC_DRV_DS1672
90edf1aaa3SAlessandro Zummo	tristate "Dallas/Maxim DS1672"
91edf1aaa3SAlessandro Zummo	depends on RTC_CLASS && I2C
92edf1aaa3SAlessandro Zummo	help
93edf1aaa3SAlessandro Zummo	  If you say yes here you get support for the
94edf1aaa3SAlessandro Zummo	  Dallas/Maxim DS1672 timekeeping chip.
95edf1aaa3SAlessandro Zummo
96edf1aaa3SAlessandro Zummo	  This driver can also be built as a module. If so, the module
97edf1aaa3SAlessandro Zummo	  will be called rtc-ds1672.
98edf1aaa3SAlessandro Zummo
99b5a82d62SAlessandro Zummoconfig RTC_DRV_PCF8563
100b5a82d62SAlessandro Zummo	tristate "Philips PCF8563/Epson RTC8564"
101b5a82d62SAlessandro Zummo	depends on RTC_CLASS && I2C
102b5a82d62SAlessandro Zummo	help
103b5a82d62SAlessandro Zummo	  If you say yes here you get support for the
104b5a82d62SAlessandro Zummo	  Philips PCF8563 RTC chip. The Epson RTC8564
105b5a82d62SAlessandro Zummo	  should work as well.
106b5a82d62SAlessandro Zummo
107b5a82d62SAlessandro Zummo	  This driver can also be built as a module. If so, the module
108b5a82d62SAlessandro Zummo	  will be called rtc-pcf8563.
109b5a82d62SAlessandro Zummo
1107520b94dSAlessandro Zummoconfig RTC_DRV_RS5C372
1117520b94dSAlessandro Zummo	tristate "Ricoh RS5C372A/B"
1127520b94dSAlessandro Zummo	depends on RTC_CLASS && I2C
1137520b94dSAlessandro Zummo	help
1147520b94dSAlessandro Zummo	  If you say yes here you get support for the
1157520b94dSAlessandro Zummo	  Ricoh RS5C372A and RS5C372B RTC chips.
1167520b94dSAlessandro Zummo
1177520b94dSAlessandro Zummo	  This driver can also be built as a module. If so, the module
1187520b94dSAlessandro Zummo	  will be called rtc-rs5c372.
1197520b94dSAlessandro Zummo
120*fd507e2fSAlessandro Zummoconfig RTC_DRV_EP93XX
121*fd507e2fSAlessandro Zummo	tristate "Cirrus Logic EP93XX"
122*fd507e2fSAlessandro Zummo	depends on RTC_CLASS && ARCH_EP93XX
123*fd507e2fSAlessandro Zummo	help
124*fd507e2fSAlessandro Zummo	  If you say yes here you get support for the
125*fd507e2fSAlessandro Zummo	  RTC embedded in the Cirrus Logic EP93XX processors.
126*fd507e2fSAlessandro Zummo
127*fd507e2fSAlessandro Zummo	  This driver can also be built as a module. If so, the module
128*fd507e2fSAlessandro Zummo	  will be called rtc-ep93xx.
129*fd507e2fSAlessandro Zummo
130*fd507e2fSAlessandro Zummo
131a95579cdSAlessandro Zummoconfig RTC_DRV_TEST
132a95579cdSAlessandro Zummo	tristate "Test driver/device"
133a95579cdSAlessandro Zummo	depends on RTC_CLASS
134a95579cdSAlessandro Zummo	help
135a95579cdSAlessandro Zummo	  If you say yes here you get support for the
136a95579cdSAlessandro Zummo	  RTC test driver. It's a software RTC which can be
137a95579cdSAlessandro Zummo	  used to test the RTC subsystem APIs. It gets
138a95579cdSAlessandro Zummo	  the time from the system clock.
139a95579cdSAlessandro Zummo	  You want this driver only if you are doing development
140a95579cdSAlessandro Zummo	  on the RTC subsystem. Please read the source code
141a95579cdSAlessandro Zummo	  for further details.
142a95579cdSAlessandro Zummo
143a95579cdSAlessandro Zummo	  This driver can also be built as a module. If so, the module
144a95579cdSAlessandro Zummo	  will be called rtc-test.
145a95579cdSAlessandro Zummo
1460c86edc0SAlessandro Zummoendmenu
147