xref: /linux/drivers/rtc/Kconfig (revision b253c2e96a80aac8e2bc67b425bf007ed78d4d8c)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# RTC class/drivers configuration
4#
5
6config RTC_LIB
7	bool
8
9config RTC_MC146818_LIB
10	bool
11	select RTC_LIB
12
13menuconfig RTC_CLASS
14	bool "Real Time Clock"
15	default n
16	depends on !S390
17	select RTC_LIB
18	help
19	  Generic RTC class support. If you say yes here, you will
20	  be allowed to plug one or more RTCs to your system. You will
21	  probably want to enable one or more of the interfaces below.
22
23if RTC_CLASS
24
25config RTC_HCTOSYS
26	bool "Set system time from RTC on startup and resume"
27	default y
28	help
29	  If you say yes here, the system time (wall clock) will be set using
30	  the value read from a specified RTC device. This is useful to avoid
31	  unnecessary fsck runs at boot time, and to network better.
32
33config RTC_HCTOSYS_TIME32_LIMIT
34	bool "Reject RTC dates after the 2038 cutoff"
35	depends on RTC_HCTOSYS && COMPAT_32BIT_TIME && !64BIT
36	default y
37	help
38	  Reject RTC dates after 03:14:07 UTC on 19 January 2038 when
39	  initializing the system clock in order to work around broken
40	  RTC implementations that produce nondeterministic timestamps
41	  without a working backup battery.
42
43	  A rejected date leaves system time unchanged, normally near
44	  the Unix epoch, and the RTC's hctosys sysfs attribute reads
45	  0. Userspace must supply the time if no other source has
46	  initialized it.
47
48	  Say Y here if the kernel may have to run old time32 userspace on
49	  hardware that can produce unpredictable RTC timestamps.  If the
50	  kernel is intended to only run time64 compatible userspace and
51	  continue working past 2038, you must pick N here in order to
52	  have a working RTC_HCTOSYS functionality.
53
54config RTC_HCTOSYS_DEVICE
55	string "RTC used to set the system time"
56	depends on RTC_HCTOSYS
57	default "rtc0"
58	help
59	  The RTC device that will be used to (re)initialize the system
60	  clock, usually rtc0. Initialization is done when the system
61	  starts up, and when it resumes from a low power state. This
62	  device should record time in UTC, since the kernel won't do
63	  timezone correction.
64
65	  This clock should be battery-backed, so that it reads the correct
66	  time when the system boots from a power-off state. Otherwise, your
67	  system will need an external clock source (like an NTP server).
68
69	  If the clock you specify here is not battery backed, it may still
70	  be useful to reinitialize system time when resuming from system
71	  sleep states. Do not specify an RTC here unless it stays powered
72	  during all this system's supported sleep states.
73
74config RTC_SYSTOHC
75	bool "Set the RTC time based on NTP synchronization"
76	default y
77	help
78	  If you say yes here, the system time (wall clock) will be stored
79	  in the RTC specified by RTC_HCTOSYS_DEVICE approximately every 11
80	  minutes if userspace reports synchronized NTP status.
81
82config RTC_SYSTOHC_DEVICE
83	string "RTC used to synchronize NTP adjustment"
84	depends on RTC_SYSTOHC
85	default RTC_HCTOSYS_DEVICE if RTC_HCTOSYS
86	default "rtc0"
87	help
88	  The RTC device used for NTP synchronization. The main difference
89	  between RTC_HCTOSYS_DEVICE and RTC_SYSTOHC_DEVICE is that this
90	  one can sleep when setting time, because it runs in the workqueue
91	  context.
92
93config RTC_DEBUG
94	bool "RTC debug support"
95	help
96	  Say yes here to enable debugging support in the RTC framework
97	  and individual RTC drivers.
98
99config RTC_LIB_KUNIT_TEST
100	tristate "KUnit test for RTC lib functions" if !KUNIT_ALL_TESTS
101	depends on KUNIT
102	default KUNIT_ALL_TESTS
103	help
104	  Enable this option to test RTC library functions.
105
106	  If unsure, say N.
107
108config RTC_NVMEM
109	bool "RTC non volatile storage support"
110	select NVMEM
111	default RTC_CLASS
112	help
113	  Say yes here to add support for the non volatile (often battery
114	  backed) storage present on RTCs.
115
116comment "RTC interfaces"
117
118config RTC_INTF_SYSFS
119	bool "/sys/class/rtc/rtcN (sysfs)"
120	depends on SYSFS
121	default RTC_CLASS
122	help
123	  Say yes here if you want to use your RTCs using sysfs interfaces,
124	  /sys/class/rtc/rtc0 through /sys/.../rtcN.
125
126	  If unsure, say Y.
127
128config RTC_INTF_PROC
129	bool "/proc/driver/rtc (procfs for rtcN)"
130	depends on PROC_FS
131	default RTC_CLASS
132	help
133	  Say yes here if you want to use your system clock RTC through
134	  the proc interface, /proc/driver/rtc.
135	  Other RTCs will not be available through that API.
136	  If there is no RTC for the system clock, then the first RTC(rtc0)
137	  is used by default.
138
139	  If unsure, say Y.
140
141config RTC_INTF_DEV
142	bool "/dev/rtcN (character devices)"
143	default RTC_CLASS
144	help
145	  Say yes here if you want to use your RTCs using the /dev
146	  interfaces, which "udev" sets up as /dev/rtc0 through
147	  /dev/rtcN.
148
149	  You may want to set up a symbolic link so one of these
150	  can be accessed as /dev/rtc, which is a name
151	  expected by "hwclock" and some other programs. Recent
152	  versions of "udev" are known to set up the symlink for you.
153
154	  If unsure, say Y.
155
156config RTC_INTF_DEV_UIE_EMUL
157	bool "RTC UIE emulation on dev interface"
158	depends on RTC_INTF_DEV
159	help
160	  Provides an emulation for RTC_UIE if the underlying rtc chip
161	  driver does not expose RTC_UIE ioctls. Those requests generate
162	  once-per-second update interrupts, used for synchronization.
163
164	  The emulation code will read the time from the hardware
165	  clock several times per second, please enable this option
166	  only if you know that you really need it.
167
168config RTC_DRV_TEST
169	tristate "Test driver/device"
170	help
171	  If you say yes here you get support for the
172	  RTC test driver. It's a software RTC which can be
173	  used to test the RTC subsystem APIs. It gets
174	  the time from the system clock.
175	  You want this driver only if you are doing development
176	  on the RTC subsystem. Please read the source code
177	  for further details.
178
179	  This driver can also be built as a module. If so, the module
180	  will be called rtc-test.
181
182comment "I2C RTC drivers"
183
184if I2C
185
186config RTC_DRV_88PM860X
187	tristate "Marvell 88PM860x"
188	depends on MFD_88PM860X
189	help
190	  If you say yes here you get support for RTC function in Marvell
191	  88PM860x chips.
192
193	  This driver can also be built as a module. If so, the module
194	  will be called rtc-88pm860x.
195
196config RTC_DRV_88PM80X
197	tristate "Marvell 88PM80x"
198	depends on MFD_88PM800
199	help
200	  If you say yes here you get support for RTC function in Marvell
201	  88PM80x chips.
202
203	  This driver can also be built as a module. If so, the module
204	  will be called rtc-88pm80x.
205
206config RTC_DRV_88PM886
207	tristate "Marvell 88PM886 RTC driver"
208	depends on MFD_88PM886_PMIC
209	help
210	  If you say yes here you will get support for the RTC function in the
211	  Marvell 88PM886 chip.
212
213	  This driver can also be built as a module. If so, the module
214	  will be called rtc-88pm886.
215
216config RTC_DRV_ABB5ZES3
217	select REGMAP_I2C
218	tristate "Abracon AB-RTCMC-32.768kHz-B5ZE-S3"
219	help
220	  If you say yes here you get support for the Abracon
221	  AB-RTCMC-32.768kHz-B5ZE-S3 I2C RTC chip.
222
223	  This driver can also be built as a module. If so, the module
224	  will be called rtc-ab-b5ze-s3.
225
226config RTC_DRV_ABEOZ9
227	select REGMAP_I2C
228	tristate "Abracon AB-RTCMC-32.768kHz-EOZ9"
229	help
230	  If you say yes here you get support for the Abracon
231	  AB-RTCMC-32.768kHz-EOA9 I2C RTC chip.
232
233	  This driver can also be built as a module. If so, the module
234	  will be called rtc-ab-e0z9.
235
236config RTC_DRV_AC100
237	tristate "X-Powers AC100"
238	depends on MFD_AC100
239	help
240	  If you say yes here you get support for the real-time clock found
241	  in X-Powers AC100 family peripheral ICs.
242
243	  This driver can also be built as a module. If so, the module
244	  will be called rtc-ac100.
245
246config RTC_DRV_BRCMSTB
247	tristate "Broadcom STB wake-timer"
248	depends on ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST
249	default ARCH_BRCMSTB || BMIPS_GENERIC
250	help
251	  If you say yes here you get support for the wake-timer found on
252	  Broadcom STB SoCs (BCM7xxx).
253
254	  This driver can also be built as a module. If so, the module will
255	  be called rtc-brcmstb-waketimer.
256
257config RTC_DRV_AS3722
258	tristate "ams AS3722 RTC driver"
259	depends on MFD_AS3722
260	help
261	  If you say yes here you get support for the RTC of ams AS3722 PMIC
262	  chips.
263
264	  This driver can also be built as a module. If so, the module
265	  will be called rtc-as3722.
266
267config RTC_DRV_DS1307
268	tristate "Dallas/Maxim DS1307/37/38/39/40/41, ST M41T00, EPSON RX-8025, ISL12057"
269	select REGMAP_I2C
270	select WATCHDOG_CORE if WATCHDOG
271	help
272	  If you say yes here you get support for various compatible RTC
273	  chips (often with battery backup) connected with I2C. This driver
274	  should handle DS1307, DS1337, DS1338, DS1339, DS1340, DS1341,
275	  ST M41T00, EPSON RX-8025, Intersil ISL12057 and probably other chips.
276	  In some cases the RTC must already have been initialized (by
277	  manufacturing or a bootloader).
278
279	  The first seven registers on these chips hold an RTC, and other
280	  registers may add features such as NVRAM, a trickle charger for
281	  the RTC/NVRAM backup power, and alarms. NVRAM is visible in
282	  sysfs, but other chip features may not be available.
283
284	  This driver can also be built as a module. If so, the module
285	  will be called rtc-ds1307.
286
287config RTC_DRV_DS1307_CENTURY
288	bool "Century bit support for rtc-ds1307"
289	depends on RTC_DRV_DS1307
290	default n
291	help
292	  The DS1307 driver suffered from a bug where it was enabling the
293	  century bit inconditionnally but never used it when reading the time.
294	  It made the driver unable to support dates beyond 2099.
295	  Setting this option will add proper support for the century bit but if
296	  the time was previously set using a kernel predating this option,
297	  reading the date will return a date in the next century.
298	  To solve that, you could boot a kernel without this option set, set
299	  the RTC date and then boot a kernel with this option set.
300
301config RTC_DRV_DS1374
302	tristate "Dallas/Maxim DS1374"
303	help
304	  If you say yes here you get support for Dallas Semiconductor
305	  DS1374 real-time clock chips. If an interrupt is associated
306	  with the device, the alarm functionality is supported.
307
308	  This driver can also be built as a module. If so, the module
309	  will be called rtc-ds1374.
310
311config RTC_DRV_DS1374_WDT
312	bool "Dallas/Maxim DS1374 watchdog timer"
313	depends on RTC_DRV_DS1374 && WATCHDOG
314	select WATCHDOG_CORE
315	help
316	  If you say Y here you will get support for the
317	  watchdog timer in the Dallas Semiconductor DS1374
318	  real-time clock chips.
319
320config RTC_DRV_DS1672
321	tristate "Dallas/Maxim DS1672"
322	help
323	  If you say yes here you get support for the
324	  Dallas/Maxim DS1672 timekeeping chip.
325
326	  This driver can also be built as a module. If so, the module
327	  will be called rtc-ds1672.
328
329config RTC_DRV_HYM8563
330	tristate "Haoyu Microelectronics HYM8563"
331	depends on OF
332	help
333	  Say Y to enable support for the HYM8563 I2C RTC chip. Apart
334	  from the usual rtc functions it provides a clock output of
335	  up to 32kHz.
336
337	  This driver can also be built as a module. If so, the module
338	  will be called rtc-hym8563.
339
340config RTC_DRV_LP8788
341	tristate "TI LP8788 RTC driver"
342	depends on MFD_LP8788
343	help
344	  Say Y to enable support for the LP8788 RTC/ALARM driver.
345
346config RTC_DRV_MAX6900
347	tristate "Maxim MAX6900"
348	help
349	  If you say yes here you will get support for the
350	  Maxim MAX6900 I2C RTC chip.
351
352	  This driver can also be built as a module. If so, the module
353	  will be called rtc-max6900.
354
355config RTC_DRV_MAX8907
356	tristate "Maxim MAX8907"
357	depends on MFD_MAX8907 || COMPILE_TEST
358	select REGMAP_IRQ
359	help
360	  If you say yes here you will get support for the
361	  RTC of Maxim MAX8907 PMIC.
362
363	  This driver can also be built as a module. If so, the module
364	  will be called rtc-max8907.
365
366config RTC_DRV_MAX8925
367	tristate "Maxim MAX8925"
368	depends on MFD_MAX8925
369	help
370	  If you say yes here you will get support for the
371	  RTC of Maxim MAX8925 PMIC.
372
373	  This driver can also be built as a module. If so, the module
374	  will be called rtc-max8925.
375
376config RTC_DRV_MAX8998
377	tristate "Maxim MAX8998"
378	depends on MFD_MAX8998
379	help
380	  If you say yes here you will get support for the
381	  RTC of Maxim MAX8998 PMIC.
382
383	  This driver can also be built as a module. If so, the module
384	  will be called rtc-max8998.
385
386config RTC_DRV_MAX8997
387	tristate "Maxim MAX8997"
388	depends on MFD_MAX8997
389	help
390	  If you say yes here you will get support for the
391	  RTC of Maxim MAX8997 PMIC.
392
393	  This driver can also be built as a module. If so, the module
394	  will be called rtc-max8997.
395
396config RTC_DRV_MAX31335
397	tristate "Analog Devices MAX31335"
398	depends on I2C
399	depends on COMMON_CLK
400	depends on HWMON || HWMON=n
401	select REGMAP_I2C
402	help
403	  If you say yes here you get support for the Analog Devices
404	  MAX31335.
405
406	  This driver can also be built as a module. If so, the module
407	  will be called rtc-max31335.
408
409config RTC_DRV_MAX77686
410	tristate "Maxim MAX77686"
411	depends on MFD_MAX77686 || MFD_MAX77620 || MFD_MAX77714 || COMPILE_TEST
412	help
413	  If you say yes here you will get support for the
414	  RTC of Maxim MAX77686/MAX77620/MAX77802 PMIC.
415
416	  This driver can also be built as a module. If so, the module
417	  will be called rtc-max77686.
418
419config RTC_DRV_SPACEMIT_P1
420	tristate "SpacemiT P1 RTC"
421	depends on ARCH_SPACEMIT || COMPILE_TEST
422	depends on MFD_SPACEMIT_P1
423	default MFD_SPACEMIT_P1
424	help
425	  Enable support for the RTC function in the SpacemiT P1 PMIC.
426	  This driver can also be built as a module, which will be called
427	  "spacemit-p1-rtc".
428
429config RTC_DRV_NVIDIA_VRS10
430	tristate "NVIDIA VRS10 RTC device"
431	depends on ARCH_TEGRA || COMPILE_TEST
432	help
433	  If you say yes here you will get support for the battery backed RTC device
434	  of NVIDIA VRS (Voltage Regulator Specification). The RTC is connected via
435	  I2C interface and supports alarm functionality.
436	  This driver can also be built as a module. If so, the module will be called
437	  rtc-nvidia-vrs10.
438
439config RTC_DRV_NCT3018Y
440	tristate "Nuvoton NCT3018Y"
441	depends on OF
442	help
443	   If you say yes here you get support for the Nuvoton NCT3018Y I2C RTC
444	   chip.
445
446	   This driver can also be built as a module, if so, the module will be
447	   called "rtc-nct3018y".
448
449config RTC_DRV_NCT6694
450	tristate "Nuvoton NCT6694 RTC support"
451	depends on MFD_NCT6694
452	help
453	  If you say yes to this option, support will be included for Nuvoton
454	  NCT6694, a USB device to RTC.
455
456	  This driver can also be built as a module. If so, the module will
457	  be called rtc-nct6694.
458
459config RTC_DRV_RK808
460	tristate "Rockchip RK805/RK808/RK809/RK817/RK818 RTC"
461	depends on MFD_RK8XX
462	help
463	  If you say yes here you will get support for the
464	  RTC of RK805, RK809 and RK817, RK808 and RK818 PMIC.
465
466	  This driver can also be built as a module. If so, the module
467	  will be called rk808-rtc.
468
469config RTC_DRV_RS5C372
470	tristate "Ricoh R2025S/D, RS5C372A/B, RV5C386, RV5C387A"
471	help
472	  If you say yes here you get support for the
473	  Ricoh R2025S/D, RS5C372A, RS5C372B, RV5C386, and RV5C387A RTC chips.
474
475	  This driver can also be built as a module. If so, the module
476	  will be called rtc-rs5c372.
477
478config RTC_DRV_ISL1208
479	tristate "Intersil ISL1208"
480	help
481	  If you say yes here you get support for the
482	  Intersil ISL1208 RTC chip.
483
484	  This driver can also be built as a module. If so, the module
485	  will be called rtc-isl1208.
486
487config RTC_DRV_ISL12022
488	tristate "Intersil ISL12022"
489	select REGMAP_I2C
490	help
491	  If you say yes here you get support for the
492	  Intersil ISL12022 RTC chip.
493
494	  This driver can also be built as a module. If so, the module
495	  will be called rtc-isl12022.
496
497config RTC_DRV_ISL12026
498	tristate "Intersil ISL12026"
499	depends on OF
500	help
501	  If you say yes here you get support for the
502	  Intersil ISL12026 RTC chip.
503
504	  This driver can also be built as a module. If so, the module
505	  will be called rtc-isl12026.
506
507config RTC_DRV_X1205
508	tristate "Xicor/Intersil X1205"
509	help
510	  If you say yes here you get support for the
511	  Xicor/Intersil X1205 RTC chip.
512
513	  This driver can also be built as a module. If so, the module
514	  will be called rtc-x1205.
515
516config RTC_DRV_PCF8523
517	tristate "NXP PCF8523"
518	select REGMAP_I2C
519	help
520	  If you say yes here you get support for the NXP PCF8523 RTC
521	  chips.
522
523	  This driver can also be built as a module. If so, the module
524	  will be called rtc-pcf8523.
525
526config RTC_DRV_PCF85363
527	tristate "NXP PCF85363"
528	select REGMAP_I2C
529	help
530	  If you say yes here you get support for the PCF85363 RTC chip.
531
532	  This driver can also be built as a module. If so, the module
533	  will be called rtc-pcf85363.
534
535	  The nvmem interface will be named pcf85363-#, where # is the
536	  zero-based instance number.
537
538config RTC_DRV_PCF8563
539	tristate "Philips PCF8563/Epson RTC8564"
540	select REGMAP_I2C
541	help
542	  If you say yes here you get support for the
543	  Philips PCF8563 RTC chip. The Epson RTC8564
544	  should work as well.
545
546	  This driver can also be built as a module. If so, the module
547	  will be called rtc-pcf8563.
548
549config RTC_DRV_PCF8583
550	tristate "Philips PCF8583"
551	help
552	  If you say yes here you get support for the Philips PCF8583
553	  RTC chip found on Acorn RiscPCs. This driver supports the
554	  platform specific method of retrieving the current year from
555	  the RTC's SRAM. It will work on other platforms with the same
556	  chip, but the year will probably have to be tweaked.
557
558	  This driver can also be built as a module. If so, the module
559	  will be called rtc-pcf8583.
560
561config RTC_DRV_M41T80
562	tristate "ST M41T62/65/M41T80/81/82/83/84/85/87 and compatible"
563	help
564	  If you say Y here you will get support for the ST M41T60
565	  and M41T80 RTC chips series. Currently, the following chips are
566	  supported: M41T62, M41T65, M41T80, M41T81, M41T82, M41T83, M41ST84,
567	  M41ST85, M41ST87, and MicroCrystal RV4162.
568
569	  This driver can also be built as a module. If so, the module
570	  will be called rtc-m41t80.
571
572config RTC_DRV_M41T80_WDT
573	bool "ST M41T65/M41T80 series RTC watchdog timer"
574	depends on RTC_DRV_M41T80
575	help
576	  If you say Y here you will get support for the
577	  watchdog timer in the ST M41T60 and M41T80 RTC chips series.
578
579config RTC_DRV_BD70528
580	tristate "ROHM BD71815 and BD71828 PMIC RTC"
581	depends on MFD_ROHM_BD71828
582	help
583	  If you say Y here you will get support for the RTC
584	  block on ROHM BD71815, BD71828 and BD72720 Power
585	  Management ICs.
586
587	  This driver can also be built as a module. If so, the module
588	  will be called rtc-bd70528.
589
590config RTC_DRV_BQ32K
591	tristate "TI BQ32000"
592	help
593	  If you say Y here you will get support for the TI
594	  BQ32000 I2C RTC chip.
595
596	  This driver can also be built as a module. If so, the module
597	  will be called rtc-bq32k.
598
599config RTC_DRV_TWL92330
600	bool "TI TWL92330/Menelaus"
601	depends on MENELAUS
602	help
603	  If you say yes here you get support for the RTC on the
604	  TWL92330 "Menelaus" power management chip, used with OMAP2
605	  platforms. The support is integrated with the rest of
606	  the Menelaus driver; it's not separate module.
607
608config RTC_DRV_TWL4030
609	tristate "TI TWL4030/TWL5030/TWL6030/TPS659x0"
610	depends on TWL4030_CORE
611	depends on OF
612	help
613	  If you say yes here you get support for the RTC on the
614	  TWL4030/TWL5030/TWL6030 family chips, used mostly with OMAP3 platforms.
615
616	  This driver can also be built as a module. If so, the module
617	  will be called rtc-twl.
618
619config RTC_DRV_PALMAS
620	tristate "TI Palmas RTC driver"
621	depends on MFD_PALMAS
622	help
623	  If you say yes here you get support for the RTC of TI PALMA series PMIC
624	  chips.
625
626	  This driver can also be built as a module. If so, the module
627	  will be called rtc-palma.
628
629config RTC_DRV_TPS6586X
630	tristate "TI TPS6586X RTC driver"
631	depends on MFD_TPS6586X
632	help
633	  TI Power Management IC TPS6586X supports RTC functionality
634	  along with alarm. This driver supports the RTC driver for
635	  the TPS6586X RTC module.
636
637config RTC_DRV_TPS6594
638	tristate "TI TPS6594 RTC driver"
639	depends on MFD_TPS6594
640	default MFD_TPS6594
641	help
642	  TI Power Management IC TPS6594 supports RTC functionality
643	  along with alarm. This driver supports the RTC driver for
644	  the TPS6594 RTC module.
645
646	  This driver can also be built as a module. If so, the module
647	  will be called rtc-tps6594.
648
649config RTC_DRV_TPS65910
650	tristate "TI TPS65910 RTC driver"
651	depends on MFD_TPS65910
652	help
653	  If you say yes here you get support for the RTC on the
654	  TPS65910 chips.
655
656	  This driver can also be built as a module. If so, the module
657	  will be called rtc-tps65910.
658
659config RTC_DRV_RC5T583
660	tristate "RICOH 5T583 RTC driver"
661	depends on MFD_RC5T583
662	help
663	  If you say yes here you get support for the RTC on the
664	  RICOH 5T583 chips.
665
666	  This driver can also be built as a module. If so, the module
667	  will be called rtc-rc5t583.
668
669config RTC_DRV_RC5T619
670	tristate "RICOH RC5T619 RTC driver"
671	depends on MFD_RN5T618
672	help
673	  If you say yes here you get support for the RTC on the
674	  RICOH RC5T619 chips.
675
676	  This driver can also be built as a module. If so, the module
677	  will be called rtc-rc5t619.
678
679config RTC_DRV_S35390A
680	tristate "Seiko Instruments S-35390A"
681	select BITREVERSE
682	help
683	  If you say yes here you will get support for the Seiko
684	  Instruments S-35390A.
685
686	  This driver can also be built as a module. If so the module
687	  will be called rtc-s35390a.
688
689config RTC_DRV_FM3130
690	tristate "Ramtron FM3130"
691	help
692	  If you say Y here you will get support for the
693	  Ramtron FM3130 RTC chips.
694	  Ramtron FM3130 is a chip with two separate devices inside,
695	  RTC clock and FRAM. This driver provides only RTC functionality.
696
697	  This driver can also be built as a module. If so the module
698	  will be called rtc-fm3130.
699
700config RTC_DRV_RX8010
701	tristate "Epson RX8010SJ"
702	select REGMAP_I2C
703	help
704	  If you say yes here you get support for the Epson RX8010SJ RTC
705	  chip.
706
707	  This driver can also be built as a module. If so, the module
708	  will be called rtc-rx8010.
709
710config RTC_DRV_RX8111
711	tristate "Epson RX8111"
712	select REGMAP_I2C
713	depends on I2C
714	help
715	  If you say yes here you will get support for the Epson RX8111 RTC.
716
717	  This driver can also be built as a module. If so, the module will be
718	  called rtc-rx8111.
719
720config RTC_DRV_RX8581
721	tristate "Epson RX-8571/RX-8581"
722	select REGMAP_I2C
723	help
724	  If you say yes here you will get support for the Epson RX-8571/
725	  RX-8581.
726
727	  This driver can also be built as a module. If so the module
728	  will be called rtc-rx8581.
729
730config RTC_DRV_RX8025
731	tristate "Epson RX-8025SA/NB"
732	help
733	  If you say yes here you get support for the Epson
734	  RX-8025SA/NB RTC chips.
735
736	  This driver can also be built as a module. If so, the module
737	  will be called rtc-rx8025.
738
739config RTC_DRV_EM3027
740	tristate "EM Microelectronic EM3027"
741	help
742	  If you say yes here you get support for the EM
743	  Microelectronic EM3027 RTC chips.
744
745	  This driver can also be built as a module. If so, the module
746	  will be called rtc-em3027.
747
748config RTC_DRV_RV3028
749	tristate "Micro Crystal RV3028"
750	select REGMAP_I2C
751	help
752	  If you say yes here you get support for the Micro Crystal
753	  RV3028.
754
755	  This driver can also be built as a module. If so, the module
756	  will be called rtc-rv3028.
757
758config RTC_DRV_RV3032
759	tristate "Micro Crystal RV3032"
760	select REGMAP_I2C
761	help
762	  If you say yes here you get support for the Micro Crystal
763	  RV3032.
764
765	  This driver can also be built as a module. If so, the module
766	  will be called rtc-rv3032.
767
768config RTC_DRV_RV8803
769	tristate "Micro Crystal RV8803, Epson RX8900"
770	help
771	  If you say yes here you get support for the Micro Crystal RV8803 and
772	  Epson RX8900 RTC chips.
773
774	  This driver can also be built as a module. If so, the module
775	  will be called rtc-rv8803.
776
777config RTC_DRV_S5M
778	tristate "Samsung S2M/S5M series"
779	depends on MFD_SEC_CORE || COMPILE_TEST
780	select REGMAP_IRQ
781	select REGMAP_I2C
782	help
783	  If you say yes here you will get support for the
784	  RTC of Samsung S2MPS14 and S5M PMIC series.
785
786	  This driver can also be built as a module. If so, the module
787	  will be called rtc-s5m.
788
789config RTC_DRV_SD2405AL
790	tristate "DFRobot SD2405AL"
791	select REGMAP_I2C
792	help
793	  If you say yes here you will get support for the
794	  DFRobot SD2405AL I2C RTC Module.
795
796	  This driver can also be built as a module. If so, the module
797	  will be called rtc-sd2405al.
798
799config RTC_DRV_SD3078
800	tristate "ZXW Shenzhen whwave SD3078"
801	select REGMAP_I2C
802	help
803	  If you say yes here you get support for the ZXW Shenzhen whwave
804	  SD3078 RTC chips.
805
806	  This driver can also be built as a module. If so, the module
807	  will be called rtc-sd3078
808
809endif # I2C
810
811comment "SPI RTC drivers"
812
813if SPI_MASTER
814
815config RTC_DRV_M41T93
816	tristate "ST M41T93"
817	help
818	  If you say yes here you will get support for the
819	  ST M41T93 SPI RTC chip.
820
821	  This driver can also be built as a module. If so, the module
822	  will be called rtc-m41t93.
823
824config RTC_DRV_M41T94
825	tristate "ST M41T94"
826	help
827	  If you say yes here you will get support for the
828	  ST M41T94 SPI RTC chip.
829
830	  This driver can also be built as a module. If so, the module
831	  will be called rtc-m41t94.
832
833config RTC_DRV_DS1302
834	tristate "Dallas/Maxim DS1302"
835	depends on SPI
836	help
837	  If you say yes here you get support for the Dallas DS1302 RTC chips.
838
839	  This driver can also be built as a module. If so, the module
840	  will be called rtc-ds1302.
841
842config RTC_DRV_DS1305
843	tristate "Dallas/Maxim DS1305/DS1306"
844	help
845	  Select this driver to get support for the Dallas/Maxim DS1305
846	  and DS1306 real time clock chips. These support a trickle
847	  charger, alarms, and NVRAM in addition to the clock.
848
849	  This driver can also be built as a module. If so, the module
850	  will be called rtc-ds1305.
851
852config RTC_DRV_DS1343
853	select REGMAP_SPI
854	tristate "Dallas/Maxim DS1343/DS1344"
855	help
856	  If you say yes here you get support for the
857	  Dallas/Maxim DS1343 and DS1344 real time clock chips.
858	  Support for trickle charger, alarm is provided.
859
860	  This driver can also be built as a module. If so, the module
861	  will be called rtc-ds1343.
862
863config RTC_DRV_DS1347
864	select REGMAP_SPI
865	tristate "Dallas/Maxim DS1347"
866	help
867	  If you say yes here you get support for the
868	  Dallas/Maxim DS1347 chips.
869
870	  This driver only supports the RTC feature, and not other chip
871	  features such as alarms.
872
873	  This driver can also be built as a module. If so, the module
874	  will be called rtc-ds1347.
875
876config RTC_DRV_DS1390
877	tristate "Dallas/Maxim DS1390/93/94"
878	help
879	  If you say yes here you get support for the
880	  Dallas/Maxim DS1390/93/94 chips.
881
882	  This driver supports the RTC feature and trickle charging but not
883	  other chip features such as alarms.
884
885	  This driver can also be built as a module. If so, the module
886	  will be called rtc-ds1390.
887
888config RTC_DRV_MAX6916
889	tristate "Maxim MAX6916"
890	help
891	  If you say yes here you will get support for the
892	  Maxim MAX6916 SPI RTC chip.
893
894	  This driver only supports the RTC feature, and not other chip
895	  features such as alarms.
896
897	  This driver can also be built as a module. If so, the module
898	  will be called rtc-max6916.
899
900config RTC_DRV_R9701
901	tristate "Epson RTC-9701JE"
902	help
903	  If you say yes here you will get support for the
904	  Epson RTC-9701JE SPI RTC chip.
905
906	  This driver can also be built as a module. If so, the module
907	  will be called rtc-r9701.
908
909config RTC_DRV_RX4581
910	tristate "Epson RX-4581"
911	help
912	  If you say yes here you will get support for the Epson RX-4581.
913
914	  This driver can also be built as a module. If so the module
915	  will be called rtc-rx4581.
916
917config RTC_DRV_RS5C348
918	tristate "Ricoh RS5C348A/B"
919	help
920	  If you say yes here you get support for the
921	  Ricoh RS5C348A and RS5C348B RTC chips.
922
923	  This driver can also be built as a module. If so, the module
924	  will be called rtc-rs5c348.
925
926config RTC_DRV_MAX6902
927	tristate "Maxim MAX6902"
928	help
929	  If you say yes here you will get support for the
930	  Maxim MAX6902 SPI RTC chip.
931
932	  This driver can also be built as a module. If so, the module
933	  will be called rtc-max6902.
934
935config RTC_DRV_PCF2123
936	tristate "NXP PCF2123"
937	select REGMAP_SPI
938	help
939	  If you say yes here you get support for the NXP PCF2123
940	  RTC chip.
941
942	  This driver can also be built as a module. If so, the module
943	  will be called rtc-pcf2123.
944
945config RTC_DRV_MCP795
946	tristate "Microchip MCP795"
947	help
948	  If you say yes here you will get support for the Microchip MCP795.
949
950	  This driver can also be built as a module. If so the module
951	  will be called rtc-mcp795.
952
953endif # SPI_MASTER
954
955#
956# Helper to resolve issues with configs that have SPI enabled but I2C
957# modular.  See SND_SOC_I2C_AND_SPI for more information
958#
959config RTC_I2C_AND_SPI
960	tristate
961	default m if I2C=m
962	default y if I2C=y
963	default y if SPI_MASTER=y
964
965comment "SPI and I2C RTC drivers"
966
967config RTC_DRV_ABX80X
968	tristate "Abracon ABx80x"
969	depends on RTC_I2C_AND_SPI
970	select WATCHDOG_CORE if WATCHDOG
971	select REGMAP_I2C if I2C
972	select REGMAP_SPI if SPI_MASTER
973	help
974	  If you say yes here you get support for Abracon AB080X, AB180X,
975	  AB081X and AB181X families of ultra-low-power  battery- and
976	  capacitor-backed real-time clock chips.
977
978	  This driver can also be built as a module. If so, the module
979	  will be called rtc-abx80x.
980
981config RTC_DRV_DS3232
982	tristate "Dallas/Maxim DS3232/DS3234"
983	depends on RTC_I2C_AND_SPI
984	select REGMAP_I2C if I2C
985	select REGMAP_SPI if SPI_MASTER
986	help
987	  If you say yes here you get support for Dallas Semiconductor
988	  DS3232 and DS3234 real-time clock chips. If an interrupt is associated
989	  with the device, the alarm functionality is supported.
990
991	  This driver can also be built as a module.  If so, the module
992	  will be called rtc-ds3232.
993
994config RTC_DRV_DS3232_HWMON
995	bool "HWMON support for Dallas/Maxim DS3232/DS3234"
996	depends on RTC_DRV_DS3232 && HWMON && !(RTC_DRV_DS3232=y && HWMON=m)
997	default y
998	help
999	  Say Y here if you want to expose temperature sensor data on
1000	  rtc-ds3232
1001
1002config RTC_DRV_PCF2127
1003	tristate "NXP PCF2127"
1004	depends on RTC_I2C_AND_SPI
1005	select REGMAP_I2C if I2C
1006	select REGMAP_SPI if SPI_MASTER
1007	select WATCHDOG_CORE if WATCHDOG
1008	help
1009	  If you say yes here you get support for the NXP PCF2127/29/31 RTC
1010	  chips with integrated quartz crystal for industrial applications.
1011	  These chips also have watchdog timer and tamper switch detection
1012	  features.
1013
1014	  PCF2127 has an additional feature of 512 bytes battery backed
1015	  memory that's accessible using nvmem interface.
1016
1017	  This driver can also be built as a module. If so, the module
1018	  will be called rtc-pcf2127.
1019
1020config RTC_DRV_PCF85063
1021	tristate "NXP PCF85063"
1022	depends on RTC_I2C_AND_SPI
1023	select REGMAP_I2C if I2C
1024	select REGMAP_SPI if SPI_MASTER
1025	help
1026	  If you say yes here you get support for the PCF85063 and RV8063
1027	  RTC chips.
1028
1029	  This driver can also be built as a module. If so, the module
1030	  will be called rtc-pcf85063.
1031
1032config RTC_DRV_RV3029C2
1033	tristate "Micro Crystal RV3029/3049"
1034	depends on RTC_I2C_AND_SPI
1035	select REGMAP_I2C if I2C
1036	select REGMAP_SPI if SPI_MASTER
1037	help
1038	  If you say yes here you get support for the Micro Crystal
1039	  RV3029 and RV3049 RTC chips.
1040
1041	  This driver can also be built as a module. If so, the module
1042	  will be called rtc-rv3029c2.
1043
1044config RTC_DRV_RV3029_HWMON
1045	bool "HWMON support for RV3029/3049"
1046	depends on RTC_DRV_RV3029C2 && HWMON
1047	depends on !(RTC_DRV_RV3029C2=y && HWMON=m)
1048	default y
1049	help
1050	  Say Y here if you want to expose temperature sensor data on
1051	  rtc-rv3029.
1052
1053config RTC_DRV_RX6110
1054	tristate "Epson RX-6110"
1055	depends on RTC_I2C_AND_SPI
1056	select REGMAP_SPI if SPI_MASTER
1057	select REGMAP_I2C if I2C
1058	help
1059	  If you say yes here you will get support for the Epson RX-6110.
1060
1061	  This driver can also be built as a module. If so the module
1062	  will be called rtc-rx6110.
1063
1064comment "Platform RTC drivers"
1065
1066# this 'CMOS' RTC driver is arch dependent because it requires
1067# <asm/mc146818rtc.h> defining CMOS_READ/CMOS_WRITE, and a
1068# global rtc_lock ... it's not yet just another platform_device.
1069
1070config RTC_DRV_CMOS
1071	tristate "PC-style 'CMOS'"
1072	depends on X86 || ARM || PPC || MIPS || SPARC64
1073	depends on HAS_IOPORT || MACH_DECSTATION
1074	default y if X86
1075	select RTC_MC146818_LIB
1076	help
1077	  Say "yes" here to get direct support for the real time clock
1078	  found in every PC or ACPI-based system, and some other boards.
1079	  Specifically the original MC146818, compatibles like those in
1080	  PC south bridges, the DS12887 or M48T86, some multifunction
1081	  or LPC bus chips, and so on.
1082
1083	  Your system will need to define the platform device used by
1084	  this driver, otherwise it won't be accessible. This means
1085	  you can safely enable this driver if you don't know whether
1086	  or not your board has this kind of hardware.
1087
1088	  This driver can also be built as a module. If so, the module
1089	  will be called rtc-cmos.
1090
1091config RTC_DRV_ALPHA
1092	bool "Alpha PC-style CMOS"
1093	depends on ALPHA
1094	depends on HAS_IOPORT
1095	select RTC_MC146818_LIB
1096	default y
1097	help
1098	  Direct support for the real-time clock found on every Alpha
1099	  system, specifically MC146818 compatibles.  If in doubt, say Y.
1100
1101config RTC_DRV_ATCRTC100
1102	tristate "Andes ATCRTC100"
1103	depends on ARCH_ANDES || COMPILE_TEST
1104	select REGMAP_MMIO
1105	help
1106	  If you say yes here you will get support for the Andes ATCRTC100
1107	  RTC driver.
1108
1109	  This driver provides support for the Andes ATCRTC100 real-time clock
1110	  device. It allows setting and retrieving the time and date, as well
1111	  as setting alarms.
1112
1113	  To compile this driver as a module, choose M here: the module will
1114	  be called rtc-atcrtc100.
1115
1116config RTC_DRV_DS1216
1117	tristate "Dallas DS1216"
1118	depends on SNI_RM
1119	help
1120	  If you say yes here you get support for the Dallas DS1216 RTC chips.
1121
1122config RTC_DRV_DS1286
1123	tristate "Dallas DS1286"
1124	depends on HAS_IOMEM
1125	help
1126	  If you say yes here you get support for the Dallas DS1286 RTC chips.
1127
1128config RTC_DRV_DS1511
1129	tristate "Dallas DS1511"
1130	depends on HAS_IOMEM
1131	help
1132	  If you say yes here you get support for the
1133	  Dallas DS1511 timekeeping/watchdog chip.
1134
1135	  This driver can also be built as a module. If so, the module
1136	  will be called rtc-ds1511.
1137
1138config RTC_DRV_DS1553
1139	tristate "Maxim/Dallas DS1553"
1140	depends on HAS_IOMEM
1141	help
1142	  If you say yes here you get support for the
1143	  Maxim/Dallas DS1553 timekeeping chip.
1144
1145	  This driver can also be built as a module. If so, the module
1146	  will be called rtc-ds1553.
1147
1148config RTC_DRV_DS1685_FAMILY
1149	tristate "Dallas/Maxim DS1685 Family"
1150	depends on HAS_IOMEM
1151	help
1152	  If you say yes here you get support for the Dallas/Maxim DS1685
1153	  family of real time chips.  This family includes the DS1685/DS1687,
1154	  DS1689/DS1693, DS17285/DS17287, DS17485/DS17487, and
1155	  DS17885/DS17887 chips.
1156
1157	  This driver can also be built as a module. If so, the module
1158	  will be called rtc-ds1685.
1159
1160choice
1161	prompt "Subtype"
1162	depends on RTC_DRV_DS1685_FAMILY
1163	default RTC_DRV_DS1685
1164
1165config RTC_DRV_DS1685
1166	bool "DS1685/DS1687"
1167	help
1168	  This enables support for the Dallas/Maxim DS1685/DS1687 real time
1169	  clock chip.
1170
1171	  This chip is commonly found in SGI O2 (IP32) and SGI Octane (IP30)
1172	  systems, as well as EPPC-405-UC modules by electronic system design
1173	  GmbH.
1174
1175config RTC_DRV_DS1689
1176	bool "DS1689/DS1693"
1177	help
1178	  This enables support for the Dallas/Maxim DS1689/DS1693 real time
1179	  clock chip.
1180
1181	  This is an older RTC chip, supplanted by the DS1685/DS1687 above,
1182	  which supports a few minor features such as Vcc, Vbat, and Power
1183	  Cycle counters, plus a customer-specific, 8-byte ROM/Serial number.
1184
1185	  It also works for the even older DS1688/DS1691 RTC chips, which are
1186	  virtually the same and carry the same model number.  Both chips
1187	  have 114 bytes of user NVRAM.
1188
1189config RTC_DRV_DS17285
1190	bool "DS17285/DS17287"
1191	help
1192	  This enables support for the Dallas/Maxim DS17285/DS17287 real time
1193	  clock chip.
1194
1195	  This chip features 2kb of extended NV-SRAM.  It may possibly be
1196	  found in some SGI O2 systems (rare).
1197
1198config RTC_DRV_DS17485
1199	bool "DS17485/DS17487"
1200	help
1201	  This enables support for the Dallas/Maxim DS17485/DS17487 real time
1202	  clock chip.
1203
1204	  This chip features 4kb of extended NV-SRAM.
1205
1206config RTC_DRV_DS17885
1207	bool "DS17885/DS17887"
1208	help
1209	  This enables support for the Dallas/Maxim DS17885/DS17887 real time
1210	  clock chip.
1211
1212	  This chip features 8kb of extended NV-SRAM.
1213
1214endchoice
1215
1216config RTC_DRV_DS1742
1217	tristate "Maxim/Dallas DS1742/1743"
1218	depends on HAS_IOMEM
1219	help
1220	  If you say yes here you get support for the
1221	  Maxim/Dallas DS1742/1743 timekeeping chip.
1222
1223	  This driver can also be built as a module. If so, the module
1224	  will be called rtc-ds1742.
1225
1226config RTC_DRV_DS2404
1227	tristate "Maxim/Dallas DS2404"
1228	help
1229	  If you say yes here you get support for the
1230	  Dallas DS2404 RTC chip.
1231
1232	  This driver can also be built as a module. If so, the module
1233	  will be called rtc-ds2404.
1234
1235config RTC_DRV_DA9052
1236	tristate "Dialog DA9052/DA9053 RTC"
1237	depends on PMIC_DA9052
1238	help
1239	  Say y here to support the RTC driver for Dialog Semiconductor
1240	  DA9052-BC and DA9053-AA/Bx PMICs.
1241
1242config RTC_DRV_DA9055
1243	tristate "Dialog Semiconductor DA9055 RTC"
1244	depends on MFD_DA9055
1245	help
1246	  If you say yes here you will get support for the
1247	  RTC of the Dialog DA9055 PMIC.
1248
1249	  This driver can also be built as a module. If so, the module
1250	  will be called rtc-da9055
1251
1252config RTC_DRV_DA9063
1253	tristate "Dialog Semiconductor DA9063/DA9062 RTC"
1254	depends on MFD_DA9063 || MFD_DA9062
1255	help
1256	  If you say yes here you will get support for the RTC subsystem
1257	  for the Dialog Semiconductor PMIC chips DA9063 and DA9062.
1258
1259	  This driver can also be built as a module. If so, the module
1260	  will be called "rtc-da9063".
1261
1262config RTC_DRV_EFI
1263	tristate "EFI RTC"
1264	depends on EFI && !X86
1265	help
1266	  If you say yes here you will get support for the EFI
1267	  Real Time Clock.
1268
1269	  This driver can also be built as a module. If so, the module
1270	  will be called rtc-efi.
1271
1272config RTC_DRV_STK17TA8
1273	tristate "Simtek STK17TA8"
1274	depends on HAS_IOMEM
1275	help
1276	  If you say yes here you get support for the
1277	  Simtek STK17TA8 timekeeping chip.
1278
1279	  This driver can also be built as a module. If so, the module
1280	  will be called rtc-stk17ta8.
1281
1282config RTC_DRV_M48T86
1283	tristate "ST M48T86/Dallas DS12887"
1284	depends on HAS_IOMEM
1285	help
1286	  If you say Y here you will get support for the
1287	  ST M48T86 and Dallas DS12887 RTC chips.
1288
1289	  This driver can also be built as a module. If so, the module
1290	  will be called rtc-m48t86.
1291
1292config RTC_DRV_M48T35
1293	tristate "ST M48T35"
1294	depends on HAS_IOMEM
1295	help
1296	  If you say Y here you will get support for the
1297	  ST M48T35 RTC chip.
1298
1299	  This driver can also be built as a module, if so, the module
1300	  will be called "rtc-m48t35".
1301
1302config RTC_DRV_M48T59
1303	tristate "ST M48T59/M48T08/M48T02"
1304	depends on HAS_IOMEM
1305	help
1306	  If you say Y here you will get support for the
1307	  ST M48T59 RTC chip and compatible ST M48T08 and M48T02.
1308
1309	  These chips are usually found in Sun SPARC and UltraSPARC
1310	  workstations.
1311
1312	  This driver can also be built as a module, if so, the module
1313	  will be called "rtc-m48t59".
1314
1315config RTC_DRV_MSM6242
1316	tristate "Oki MSM6242"
1317	depends on HAS_IOMEM
1318	help
1319	  If you say yes here you get support for the Oki MSM6242
1320	  timekeeping chip. It is used in some Amiga models (e.g. A2000).
1321
1322	  This driver can also be built as a module. If so, the module
1323	  will be called rtc-msm6242.
1324
1325config RTC_DRV_BQ4802
1326	tristate "TI BQ4802"
1327	depends on HAS_IOMEM && HAS_IOPORT
1328	depends on SPARC || COMPILE_TEST
1329	help
1330	  If you say Y here you will get support for the TI
1331	  BQ4802 RTC chip.
1332
1333	  This driver can also be built as a module. If so, the module
1334	  will be called rtc-bq4802.
1335
1336config RTC_DRV_RP5C01
1337	tristate "Ricoh RP5C01"
1338	depends on HAS_IOMEM
1339	help
1340	  If you say yes here you get support for the Ricoh RP5C01
1341	  timekeeping chip. It is used in some Amiga models (e.g. A3000
1342	  and A4000).
1343
1344	  This driver can also be built as a module. If so, the module
1345	  will be called rtc-rp5c01.
1346
1347config RTC_DRV_GAMECUBE
1348	tristate "Nintendo GameCube, Wii and Wii U RTC"
1349	depends on GAMECUBE || WII || COMPILE_TEST
1350	select REGMAP
1351	help
1352	  If you say yes here you will get support for the RTC subsystem
1353	  of the Nintendo GameCube, Wii and Wii U.
1354
1355	  This driver can also be built as a module. If so, the module
1356	  will be called "rtc-gamecube".
1357
1358config RTC_DRV_WM831X
1359	tristate "Wolfson Microelectronics WM831x RTC"
1360	depends on MFD_WM831X
1361	help
1362	  If you say yes here you will get support for the RTC subsystem
1363	  of the Wolfson Microelectronics WM831X series PMICs.
1364
1365	  This driver can also be built as a module. If so, the module
1366	  will be called "rtc-wm831x".
1367
1368config RTC_DRV_WM8350
1369	tristate "Wolfson Microelectronics WM8350 RTC"
1370	depends on MFD_WM8350
1371	help
1372	  If you say yes here you will get support for the RTC subsystem
1373	  of the Wolfson Microelectronics WM8350.
1374
1375	  This driver can also be built as a module. If so, the module
1376	  will be called "rtc-wm8350".
1377
1378config RTC_DRV_SC27XX
1379	tristate "Spreadtrum SC27xx RTC"
1380	depends on MFD_SC27XX_PMIC || COMPILE_TEST
1381	help
1382	  If you say Y here you will get support for the RTC subsystem
1383	  of the Spreadtrum SC27xx series PMICs. The SC27xx series PMICs
1384	  includes the SC2720, SC2721, SC2723, SC2730 and SC2731 chips.
1385
1386	  This driver can also be built as a module. If so, the module
1387	  will be called rtc-sc27xx.
1388
1389config RTC_DRV_SPEAR
1390	tristate "SPEAR ST RTC"
1391	depends on PLAT_SPEAR || COMPILE_TEST
1392	default PLAT_SPEAR
1393	help
1394	 If you say Y here you will get support for the RTC found on
1395	 spear
1396
1397config RTC_DRV_AB8500
1398	tristate "ST-Ericsson AB8500 RTC"
1399	depends on AB8500_CORE
1400	select RTC_INTF_DEV
1401	select RTC_INTF_DEV_UIE_EMUL
1402	help
1403	  Select this to enable the ST-Ericsson AB8500 power management IC RTC
1404	  support. This chip contains a battery- and capacitor-backed RTC.
1405
1406config RTC_DRV_OPAL
1407	tristate "IBM OPAL RTC driver"
1408	depends on PPC_POWERNV
1409	default y
1410	help
1411	  If you say yes here you get support for the PowerNV platform RTC
1412	  driver based on OPAL interfaces.
1413
1414	  This driver can also be built as a module. If so, the module
1415	  will be called rtc-opal.
1416
1417config RTC_DRV_OPTEE
1418	tristate "OP-TEE based RTC driver"
1419	depends on OPTEE
1420	help
1421	  Select this to get support for OP-TEE based RTC control on SoCs where
1422	  RTC are not accessible to the normal world (Linux).
1423
1424	  This driver can also be built as a module. If so, the module
1425	  will be called rtc-optee.
1426
1427config RTC_DRV_ZYNQMP
1428	tristate "Xilinx Zynq Ultrascale+ MPSoC RTC"
1429	depends on OF && HAS_IOMEM
1430	help
1431	  If you say yes here you get support for the RTC controller found on
1432	  Xilinx Zynq Ultrascale+ MPSoC.
1433
1434config RTC_DRV_CROS_EC
1435	tristate "Chrome OS EC RTC driver"
1436	depends on CROS_EC
1437	help
1438	  If you say yes here you will get support for the
1439	  Chrome OS Embedded Controller's RTC.
1440
1441	  This driver can also be built as a module. If so, the module
1442	  will be called rtc-cros-ec.
1443
1444config RTC_DRV_NTXEC
1445	tristate "Netronix embedded controller RTC"
1446	depends on MFD_NTXEC
1447	help
1448	  Say yes here if you want to support the RTC functionality of the
1449	  embedded controller found in certain e-book readers designed by the
1450	  original design manufacturer Netronix.
1451
1452comment "on-CPU RTC drivers"
1453
1454config RTC_DRV_ASM9260
1455	tristate "Alphascale asm9260 RTC"
1456	depends on MACH_ASM9260 || COMPILE_TEST
1457	help
1458	  If you say yes here you get support for the RTC on the
1459	  Alphascale asm9260 SoC.
1460
1461	  This driver can also be built as a module. If so, the module
1462	  will be called rtc-asm9260.
1463
1464config RTC_DRV_CV1800
1465	tristate "Sophgo CV1800 RTC"
1466	depends on SOPHGO_CV1800_RTCSYS || COMPILE_TEST
1467	select MFD_SYSCON
1468	select REGMAP
1469	help
1470	  If you say yes here you get support the RTC driver for Sophgo CV1800
1471	  series SoC.
1472
1473	  This driver can also be built as a module. If so, the module will be
1474	  called rtc-cv1800.
1475
1476config RTC_DRV_DIGICOLOR
1477	tristate "Conexant Digicolor RTC"
1478	depends on ARCH_DIGICOLOR || COMPILE_TEST
1479	help
1480	  If you say yes here you get support for the RTC on Conexant
1481	  Digicolor platforms. This currently includes the CX92755 SoC.
1482
1483	  This driver can also be built as a module. If so, the module
1484	  will be called rtc-digicolor.
1485
1486config RTC_DRV_IMXDI
1487	tristate "Freescale IMX DryIce Real Time Clock"
1488	depends on ARCH_MXC || COMPILE_TEST
1489	depends on OF
1490	help
1491	   Support for Freescale IMX DryIce RTC
1492
1493	   This driver can also be built as a module, if so, the module
1494	   will be called "rtc-imxdi".
1495
1496config RTC_DRV_FSL_FTM_ALARM
1497	tristate "Freescale FlexTimer alarm timer"
1498	depends on ARCH_LAYERSCAPE || SOC_LS1021A || COMPILE_TEST
1499	help
1500	   For the FlexTimer in LS1012A, LS1021A, LS1028A, LS1043A, LS1046A,
1501	   LS1088A, LS208xA, we can use FTM as the wakeup source.
1502
1503	   Say y here to enable FTM alarm support. The FTM alarm provides
1504	   alarm functions for wakeup system from deep sleep.
1505
1506	   This driver can also be built as a module, if so, the module
1507	   will be called "rtc-fsl-ftm-alarm".
1508
1509config RTC_DRV_MESON
1510	tristate "Amlogic Meson RTC"
1511	depends on (ARM && ARCH_MESON) || COMPILE_TEST
1512	select REGMAP_MMIO
1513	help
1514	   Support for the RTC block on the Amlogic Meson6, Meson8, Meson8b
1515	   and Meson8m2 SoCs.
1516
1517	   This driver can also be built as a module, if so, the module
1518	   will be called "rtc-meson".
1519
1520config RTC_DRV_MESON_VRTC
1521	tristate "Amlogic Meson Virtual RTC"
1522	depends on ARCH_MESON || COMPILE_TEST
1523	default m if ARCH_MESON
1524	help
1525	  If you say yes here you will get support for the
1526	  Virtual RTC of Amlogic SoCs.
1527
1528	  This driver can also be built as a module. If so, the module
1529	  will be called rtc-meson-vrtc.
1530
1531config RTC_DRV_OMAP
1532	tristate "TI OMAP Real Time Clock"
1533	depends on ARCH_OMAP || ARCH_DAVINCI || COMPILE_TEST
1534	depends on OF
1535	depends on PINCTRL
1536	select GENERIC_PINCONF
1537	help
1538	  Say "yes" here to support the on chip real time clock
1539	  present on TI OMAP1, AM33xx, DA8xx/OMAP-L13x, AM43xx and DRA7xx.
1540
1541	  This driver can also be built as a module, if so, module
1542	  will be called rtc-omap.
1543
1544config RTC_DRV_S3C
1545	tristate "Samsung S3C series SoC RTC"
1546	depends on ARCH_EXYNOS || ARCH_S3C64XX || ARCH_S5PV210 || \
1547		   COMPILE_TEST
1548	help
1549	  RTC (Realtime Clock) driver for the clock inbuilt into the
1550	  Samsung S3C64XX series of SoCs. This can provide periodic
1551	  interrupt rates from 1Hz to 64Hz for user programs, and
1552	  wakeup from Alarm.
1553
1554	  This driver can also be build as a module. If so, the module
1555	  will be called rtc-s3c.
1556
1557config RTC_DRV_EP93XX
1558	tristate "Cirrus Logic EP93XX"
1559	depends on ARCH_EP93XX || COMPILE_TEST
1560	help
1561	  If you say yes here you get support for the
1562	  RTC embedded in the Cirrus Logic EP93XX processors.
1563
1564	  This driver can also be built as a module. If so, the module
1565	  will be called rtc-ep93xx.
1566
1567config RTC_DRV_SA1100
1568	tristate "SA11x0/PXA2xx/PXA910"
1569	depends on ARCH_SA1100 || ARCH_PXA || ARCH_MMP
1570	help
1571	  If you say Y here you will get access to the real time clock
1572	  built into your SA11x0 or PXA2xx CPU.
1573
1574	  To compile this driver as a module, choose M here: the
1575	  module will be called rtc-sa1100.
1576
1577config RTC_DRV_SH
1578	tristate "SuperH On-Chip RTC"
1579	depends on SUPERH || ARCH_RENESAS
1580	help
1581	  Say Y here to enable support for the on-chip RTC found in
1582	  most SuperH processors. This RTC is also found in RZ/A SoCs.
1583
1584	  To compile this driver as a module, choose M here: the
1585	  module will be called rtc-sh.
1586
1587config RTC_DRV_SUNPLUS
1588	tristate "Sunplus SP7021 RTC"
1589	depends on SOC_SP7021
1590	help
1591	  Say 'yes' to get support for the real-time clock present in
1592	  Sunplus SP7021 - a SoC for industrial applications. It provides
1593	  RTC status check, timer/alarm functionalities, user data
1594	  reservation with the battery over 2.5V, RTC power status check
1595	  and battery charge.
1596
1597	  This driver can also be built as a module. If so, the module
1598	  will be called rtc-sunplus.
1599
1600config RTC_DRV_PL030
1601	tristate "ARM AMBA PL030 RTC"
1602	depends on ARM_AMBA
1603	help
1604	  If you say Y here you will get access to ARM AMBA
1605	  PrimeCell PL030 RTC found on certain ARM SOCs.
1606
1607	  To compile this driver as a module, choose M here: the
1608	  module will be called rtc-pl030.
1609
1610config RTC_DRV_PL031
1611	tristate "ARM AMBA PL031 RTC"
1612	depends on ARM_AMBA
1613	help
1614	  If you say Y here you will get access to ARM AMBA
1615	  PrimeCell PL031 RTC found on certain ARM SOCs.
1616
1617	  To compile this driver as a module, choose M here: the
1618	  module will be called rtc-pl031.
1619
1620config RTC_DRV_AT91RM9200
1621	tristate "AT91RM9200 or some AT91SAM9 RTC"
1622	depends on ARCH_AT91 || COMPILE_TEST
1623	depends on OF
1624	help
1625	  Driver for the internal RTC (Realtime Clock) module found on
1626	  Atmel AT91RM9200's and some  AT91SAM9 chips. On AT91SAM9 chips
1627	  this is powered by the backup power supply.
1628
1629config RTC_DRV_AT91SAM9
1630	tristate "AT91SAM9 RTT as RTC"
1631	depends on ARCH_AT91 || COMPILE_TEST
1632	depends on OF && HAS_IOMEM
1633	select MFD_SYSCON
1634	help
1635	  Some AT91SAM9 SoCs provide an RTT (Real Time Timer) block which
1636	  can be used as an RTC thanks to the backup power supply (e.g. a
1637	  small coin cell battery) which keeps this block and the GPBR
1638	  (General Purpose Backup Registers) block powered when the device
1639	  is shutdown.
1640	  Some AT91SAM9 SoCs provide a real RTC block, on those ones you'd
1641	  probably want to use the real RTC block instead of the "RTT as an
1642	  RTC" driver.
1643
1644config RTC_DRV_AU1XXX
1645	tristate "Au1xxx Counter0 RTC support"
1646	depends on MIPS_ALCHEMY
1647	help
1648	  This is a driver for the Au1xxx on-chip Counter0 (Time-Of-Year
1649	  counter) to be used as a RTC.
1650
1651	  This driver can also be built as a module. If so, the module
1652	  will be called rtc-au1xxx.
1653
1654config RTC_DRV_RS5C313
1655	tristate "Ricoh RS5C313"
1656	depends on SH_LANDISK
1657	help
1658	  If you say yes here you get support for the Ricoh RS5C313 RTC chips.
1659
1660config RTC_DRV_RZN1
1661	tristate "Renesas RZ/N1 RTC"
1662	depends on ARCH_RENESAS || COMPILE_TEST
1663	depends on OF && HAS_IOMEM
1664	help
1665	  If you say yes here you get support for the RTC initially found on
1666	  Renesas RZ/N1 SoCs.
1667
1668config RTC_DRV_GENERIC
1669	tristate "Generic RTC support"
1670	# Please consider writing a new RTC driver instead of using the generic
1671	# RTC abstraction
1672	depends on PARISC || M68K || PPC || SUPERH || COMPILE_TEST
1673	help
1674	  Say Y or M here to enable RTC support on systems using the generic
1675	  RTC abstraction. If you do not know what you are doing, you should
1676	  just say Y.
1677
1678config RTC_DRV_PXA
1679	tristate "PXA27x/PXA3xx"
1680	depends on ARCH_PXA
1681	select RTC_DRV_SA1100
1682	help
1683	 If you say Y here you will get access to the real time clock
1684	 built into your PXA27x or PXA3xx CPU. This RTC is actually 2 RTCs
1685	 consisting of an SA1100 compatible RTC and the extended PXA RTC.
1686
1687	 This RTC driver uses PXA RTC registers available since pxa27x
1688	 series (RDxR, RYxR) instead of legacy RCNR, RTAR.
1689
1690config RTC_DRV_VT8500
1691	tristate "VIA/WonderMedia 85xx SoC RTC"
1692	depends on ARCH_VT8500 || COMPILE_TEST
1693	help
1694	  If you say Y here you will get access to the real time clock
1695	  built into your VIA VT8500 SoC or its relatives.
1696
1697
1698config RTC_DRV_SUN4V
1699	bool "SUN4V Hypervisor RTC"
1700	depends on SPARC64
1701	help
1702	  If you say Y here you will get support for the Hypervisor
1703	  based RTC on SUN4V systems.
1704
1705config RTC_DRV_SUN6I
1706	bool "Allwinner A31 RTC"
1707	default MACH_SUN6I || MACH_SUN8I
1708	depends on COMMON_CLK
1709	depends on ARCH_SUNXI || COMPILE_TEST
1710	help
1711	  If you say Y here you will get support for the RTC found in
1712	  some Allwinner SoCs like the A31 or the A64.
1713
1714config RTC_DRV_SUNXI
1715	tristate "Allwinner sun4i/sun7i RTC"
1716	depends on MACH_SUN4I || MACH_SUN7I || COMPILE_TEST
1717	help
1718	  If you say Y here you will get support for the RTC found on
1719	  Allwinner A10/A20.
1720
1721config RTC_DRV_STARFIRE
1722	bool "Starfire RTC"
1723	depends on SPARC64
1724	help
1725	  If you say Y here you will get support for the RTC found on
1726	  Starfire systems.
1727
1728config RTC_DRV_MV
1729	tristate "Marvell SoC RTC"
1730	depends on ARCH_DOVE || ARCH_MVEBU || COMPILE_TEST
1731	help
1732	  If you say yes here you will get support for the in-chip RTC
1733	  that can be found in some of Marvell's SoC devices, such as
1734	  the Kirkwood 88F6281 and 88F6192.
1735
1736	  This driver can also be built as a module. If so, the module
1737	  will be called rtc-mv.
1738
1739config RTC_DRV_ARMADA38X
1740	tristate "Armada 38x Marvell SoC RTC"
1741	depends on ARCH_MVEBU || COMPILE_TEST
1742	depends on OF
1743	help
1744	  If you say yes here you will get support for the in-chip RTC
1745	  that can be found in the Armada 38x Marvell's SoC device
1746
1747	  This driver can also be built as a module. If so, the module
1748	  will be called armada38x-rtc.
1749
1750config RTC_DRV_CADENCE
1751	tristate "Cadence RTC driver"
1752	depends on OF && HAS_IOMEM
1753	help
1754	  If you say Y here you will get access to Cadence RTC IP
1755	  found on certain SOCs.
1756
1757	  To compile this driver as a module, choose M here: the
1758	  module will be called rtc-cadence.
1759
1760config RTC_DRV_FTRTC010
1761	tristate "Faraday Technology FTRTC010 RTC"
1762	depends on HAS_IOMEM
1763	default ARCH_GEMINI
1764	help
1765	  If you say Y here you will get support for the
1766	  Faraday Technolog FTRTC010 found on e.g. Gemini SoC's.
1767
1768	  This driver can also be built as a module. If so, the module
1769	  will be called rtc-ftrtc010.
1770
1771config RTC_DRV_PS3
1772	tristate "PS3 RTC"
1773	depends on PPC_PS3
1774	help
1775	  If you say yes here you will get support for the RTC on PS3.
1776
1777	  This driver can also be built as a module. If so, the module
1778	  will be called rtc-ps3.
1779
1780config RTC_DRV_STMP
1781	tristate "Freescale STMP3xxx/i.MX23/i.MX28 RTC"
1782	depends on ARCH_MXS || COMPILE_TEST
1783	select STMP_DEVICE
1784	help
1785	  If you say yes here you will get support for the onboard
1786	  STMP3xxx/i.MX23/i.MX28 RTC.
1787
1788	  This driver can also be built as a module. If so, the module
1789	  will be called rtc-stmp3xxx.
1790
1791config RTC_DRV_MC13XXX
1792	depends on MFD_MC13XXX
1793	tristate "Freescale MC13xxx RTC"
1794	help
1795	  This enables support for the RTCs found on Freescale's PMICs
1796	  MC13783, MC13892 and MC34708.
1797
1798config RTC_DRV_MPC5121
1799	tristate "Freescale MPC5121 built-in RTC"
1800	depends on PPC_MPC512x || PPC_MPC52xx
1801	help
1802	  If you say yes here you will get support for the
1803	  built-in RTC on MPC5121 or on MPC5200.
1804
1805	  This driver can also be built as a module. If so, the module
1806	  will be called rtc-mpc5121.
1807
1808config RTC_DRV_JZ4740
1809	tristate "Ingenic JZ4740 SoC"
1810	depends on MIPS || COMPILE_TEST
1811	depends on OF && COMMON_CLK
1812	help
1813	  If you say yes here you get support for the Ingenic JZ47xx SoCs RTC
1814	  controllers.
1815
1816	  This driver can also be built as a module. If so, the module
1817	  will be called rtc-jz4740.
1818
1819config RTC_DRV_LOONGSON
1820	tristate "Loongson On-chip RTC"
1821	depends on MACH_LOONGSON32 || MACH_LOONGSON64 || COMPILE_TEST
1822	select REGMAP_MMIO
1823	help
1824	  This is a driver for the Loongson on-chip Counter0 (Time-Of-Year
1825	  counter) to be used as a RTC.
1826	  It can be found on Loongson-1 series cpu, Loongson-2K series cpu
1827	  and Loongson LS7A bridge chips.
1828
1829	  This driver can also be built as a module. If so, the module
1830	  will be called rtc-loongson.
1831
1832config RTC_DRV_LPC24XX
1833	tristate "NXP RTC for LPC178x/18xx/408x/43xx"
1834	depends on ARCH_LPC18XX || COMPILE_TEST
1835	depends on OF && HAS_IOMEM
1836	depends on COMMON_CLK
1837	help
1838	  This enables support for the NXP RTC found which can be found on
1839	  NXP LPC178x/18xx/408x/43xx devices.
1840
1841	  If you have one of the devices above enable this driver to use
1842	  the hardware RTC. This driver can also be built as a module. If
1843	  so, the module will be called rtc-lpc24xx.
1844
1845config RTC_DRV_LPC32XX
1846	depends on ARCH_LPC32XX || COMPILE_TEST
1847	tristate "NXP LPC32XX RTC"
1848	help
1849	  This enables support for the NXP RTC in the LPC32XX
1850
1851	  This driver can also be built as a module. If so, the module
1852	  will be called rtc-lpc32xx.
1853
1854config RTC_DRV_PM8XXX
1855	tristate "Qualcomm PMIC8XXX RTC"
1856	depends on MFD_PM8XXX || MFD_SPMI_PMIC || COMPILE_TEST
1857	help
1858	  If you say yes here you get support for the
1859	  Qualcomm PMIC8XXX RTC.
1860
1861	  To compile this driver as a module, choose M here: the
1862	  module will be called rtc-pm8xxx.
1863
1864config RTC_DRV_TEGRA
1865	tristate "NVIDIA Tegra Internal RTC driver"
1866	depends on ARCH_TEGRA || COMPILE_TEST
1867	help
1868	  If you say yes here you get support for the
1869	  Tegra 200 series internal RTC module.
1870
1871	  This drive can also be built as a module. If so, the module
1872	  will be called rtc-tegra.
1873
1874config RTC_DRV_MXC
1875	tristate "Freescale MXC Real Time Clock"
1876	depends on ARCH_MXC || COMPILE_TEST
1877	depends on HAS_IOMEM
1878	depends on OF
1879	help
1880	   If you say yes here you get support for the Freescale MXC
1881	   RTC module.
1882
1883	   This driver can also be built as a module, if so, the module
1884	   will be called "rtc-mxc".
1885
1886config RTC_DRV_MXC_V2
1887	tristate "Freescale MXC Real Time Clock for i.MX53"
1888	depends on ARCH_MXC || COMPILE_TEST
1889	depends on HAS_IOMEM
1890	depends on OF
1891	help
1892	   If you say yes here you get support for the Freescale MXC
1893	   SRTC module in i.MX53 processor.
1894
1895	   This driver can also be built as a module, if so, the module
1896	   will be called "rtc-mxc_v2".
1897
1898config RTC_DRV_SNVS
1899	tristate "Freescale SNVS RTC support"
1900	select REGMAP_MMIO
1901	depends on ARCH_MXC || COMPILE_TEST
1902	depends on HAS_IOMEM
1903	depends on OF
1904	help
1905	   If you say yes here you get support for the Freescale SNVS
1906	   Low Power (LP) RTC module.
1907
1908	   This driver can also be built as a module, if so, the module
1909	   will be called "rtc-snvs".
1910
1911config RTC_DRV_BBNSM
1912	tristate "NXP BBNSM RTC support"
1913	select REGMAP_MMIO
1914	depends on ARCH_MXC || COMPILE_TEST
1915	depends on HAS_IOMEM
1916	depends on OF
1917	help
1918	   If you say yes here you get support for the NXP BBNSM RTC module.
1919
1920	   This driver can also be built as a module, if so, the module
1921	   will be called "rtc-bbnsm".
1922
1923config RTC_DRV_IMX_BBM_SCMI
1924	depends on IMX_SCMI_BBM_EXT || COMPILE_TEST
1925	default y if ARCH_MXC
1926	tristate "NXP i.MX BBM SCMI RTC support"
1927	help
1928	  If you say yes here you get support for the NXP i.MX BBSM SCMI
1929	  RTC module.
1930
1931	  To compile this driver as a module, choose M here: the
1932	  module will be called rtc-imx-sm-bbm.
1933
1934config RTC_DRV_IMX_SC
1935	depends on IMX_SCU
1936	depends on HAVE_ARM_SMCCC
1937	tristate "NXP i.MX System Controller RTC support"
1938	help
1939	   If you say yes here you get support for the NXP i.MX System
1940	   Controller RTC module.
1941
1942config RTC_DRV_ST_LPC
1943	tristate "STMicroelectronics LPC RTC"
1944	depends on ARCH_STI
1945	depends on OF
1946	help
1947	  Say Y here to include STMicroelectronics Low Power Controller
1948	  (LPC) based RTC support.
1949
1950	  To compile this driver as a module, choose M here: the
1951	  module will be called rtc-st-lpc.
1952
1953config RTC_DRV_MOXART
1954	tristate "MOXA ART RTC"
1955	depends on ARCH_MOXART || COMPILE_TEST
1956	help
1957	   If you say yes here you get support for the MOXA ART
1958	   RTC module.
1959
1960	   This driver can also be built as a module. If so, the module
1961	   will be called rtc-moxart
1962
1963config RTC_DRV_MT2712
1964	tristate "MediaTek MT2712 SoC based RTC"
1965	depends on ARCH_MEDIATEK || COMPILE_TEST
1966	help
1967	  This enables support for the real time clock built in the MediaTek
1968	  SoCs for MT2712.
1969
1970	  This drive can also be built as a module. If so, the module
1971	  will be called rtc-mt2712.
1972
1973config RTC_DRV_MT6397
1974	tristate "MediaTek PMIC based RTC"
1975	depends on MFD_MT6397 || COMPILE_TEST
1976	select IRQ_DOMAIN
1977	help
1978	  This selects the MediaTek(R) RTC driver. RTC is part of MediaTek
1979	  MT6397 PMIC. You should enable MT6397 PMIC MFD before select
1980	  MediaTek(R) RTC driver.
1981
1982	  If you want to use MediaTek(R) RTC interface, select Y or M here.
1983
1984config RTC_DRV_MT7622
1985	tristate "MediaTek SoC based RTC"
1986	depends on ARCH_MEDIATEK || COMPILE_TEST
1987	help
1988	  This enables support for the real time clock built in the MediaTek
1989	  SoCs.
1990
1991	  This drive can also be built as a module. If so, the module
1992	  will be called rtc-mt7622.
1993
1994config RTC_DRV_XGENE
1995	tristate "APM X-Gene RTC"
1996	depends on HAS_IOMEM
1997	depends on ARCH_XGENE || COMPILE_TEST
1998	help
1999	  If you say yes here you get support for the APM X-Gene SoC real time
2000	  clock.
2001
2002	  This driver can also be built as a module, if so, the module
2003	  will be called "rtc-xgene".
2004
2005config RTC_DRV_PIC32
2006	tristate "Microchip PIC32 RTC"
2007	depends on MACH_PIC32 || COMPILE_TEST
2008	default y
2009	help
2010	   If you say yes here you get support for the PIC32 RTC module.
2011
2012	   This driver can also be built as a module. If so, the module
2013	   will be called rtc-pic32
2014
2015config RTC_DRV_R7301
2016	tristate "EPSON TOYOCOM RTC-7301SF/DG"
2017	select REGMAP_MMIO
2018	depends on OF && HAS_IOMEM
2019	help
2020	   If you say yes here you get support for the EPSON TOYOCOM
2021	   RTC-7301SF/DG chips.
2022
2023	   This driver can also be built as a module. If so, the module
2024	   will be called rtc-r7301.
2025
2026config RTC_DRV_RPI
2027	tristate "Raspberry Pi RTC"
2028	depends on RASPBERRYPI_FIRMWARE || (COMPILE_TEST && !RASPBERRYPI_FIRMWARE)
2029	depends on ARCH_BCM2835 || COMPILE_TEST
2030	default ARCH_BCM2835
2031	help
2032	  If you say yes here you get support for the RTC found on
2033	  Raspberry Pi 5th gen devices.
2034
2035	  This driver can also be built as a module. If so, the module
2036	  will be called rtc-raspberrypi.
2037
2038config RTC_DRV_STM32
2039	tristate "STM32 RTC"
2040	select REGMAP_MMIO
2041	depends on ARCH_STM32 || COMPILE_TEST
2042	depends on OF
2043	depends on PINCTRL
2044	select PINMUX
2045	select PINCONF
2046	select GENERIC_PINCONF
2047	depends on COMMON_CLK
2048	help
2049	   If you say yes here you get support for the STM32 On-Chip
2050	   Real Time Clock.
2051
2052	   This driver can also be built as a module, if so, the module
2053	   will be called "rtc-stm32".
2054
2055config RTC_DRV_CPCAP
2056	depends on MFD_CPCAP
2057	tristate "Motorola CPCAP RTC"
2058	help
2059	   Say y here for CPCAP rtc found on some Motorola phones
2060	   and tablets such as Droid 4.
2061
2062config RTC_DRV_RTD119X
2063	bool "Realtek RTD129x RTC"
2064	depends on ARCH_REALTEK || COMPILE_TEST
2065	default ARCH_REALTEK
2066	help
2067	  If you say yes here, you get support for the RTD1295 SoC
2068	  Real Time Clock.
2069
2070config RTC_DRV_ASPEED
2071	tristate "ASPEED RTC"
2072	depends on OF
2073	depends on ARCH_ASPEED || COMPILE_TEST
2074	help
2075	  If you say yes here you get support for the ASPEED BMC SoC real time
2076	  clocks.
2077
2078	  This driver can also be built as a module, if so, the module
2079	  will be called "rtc-aspeed".
2080
2081config RTC_DRV_TI_K3
2082	tristate "TI K3 RTC"
2083	depends on ARCH_K3 || COMPILE_TEST
2084	select REGMAP_MMIO
2085	help
2086	  If you say yes here you get support for the Texas Instruments's
2087	  Real Time Clock for K3 architecture.
2088
2089	  This driver can also be built as a module, if so, the module
2090	  will be called "rtc-ti-k3".
2091
2092config RTC_DRV_MA35D1
2093	tristate "Nuvoton MA35D1 RTC"
2094	depends on ARCH_MA35 || COMPILE_TEST
2095	select REGMAP_MMIO
2096	help
2097	   If you say yes here you get support for the Nuvoton MA35D1
2098	   On-Chip Real Time Clock.
2099
2100	   This driver can also be built as a module, if so, the module
2101	   will be called "rtc-ma35d1".
2102
2103config RTC_DRV_RENESAS_RTCA3
2104	tristate "Renesas RTCA-3 RTC"
2105	depends on ARCH_RENESAS
2106	help
2107	  If you say yes here you get support for the Renesas RTCA-3 RTC
2108	  available on the Renesas RZ/G3S SoC.
2109
2110	  This driver can also be built as a module, if so, the module
2111	  will be called "rtc-rtca3".
2112
2113config RTC_DRV_GOLDFISH
2114	tristate "Goldfish Real Time Clock"
2115	depends on HAS_IOMEM
2116	help
2117	  Say yes to enable RTC driver for the Goldfish based virtual platform.
2118
2119	  Goldfish is a code name for the virtual platform developed by Google
2120	  for Android emulation.
2121
2122config RTC_DRV_WILCO_EC
2123	tristate "Wilco EC RTC"
2124	depends on WILCO_EC
2125	default m
2126	help
2127	  If you say yes here, you get read/write support for the Real Time
2128	  Clock on the Wilco Embedded Controller (Wilco is a kind of Chromebook)
2129
2130	  This can also be built as a module. If so, the module will
2131	  be named "rtc_wilco_ec".
2132
2133config RTC_DRV_MACSMC
2134	tristate "Apple Mac System Management Controller RTC"
2135	depends on MFD_MACSMC
2136	help
2137	  If you say yes here you get support for RTC functions
2138	  inside Apple SPMI PMUs accessed through the SoC's
2139	  System Management Controller
2140
2141	  To compile this driver as a module, choose M here: the
2142	  module will be called rtc-macsmc.
2143
2144config RTC_DRV_MSC313
2145	tristate "MStar MSC313 RTC"
2146	depends on ARCH_MSTARV7 || COMPILE_TEST
2147	default ARCH_MSTARV7
2148	help
2149	  If you say yes here you get support for the Mstar MSC313e On-Chip
2150	  Real Time Clock.
2151
2152	  This driver can also be built as a module, if so, the module
2153	  will be called "rtc-msc313".
2154
2155config RTC_DRV_POLARFIRE_SOC
2156	tristate "Microchip PolarFire SoC built-in RTC"
2157	depends on ARCH_MICROCHIP_POLARFIRE
2158	help
2159	  If you say yes here you will get support for the
2160	  built-in RTC on Polarfire SoC.
2161
2162	  This driver can also be built as a module, if so, the module
2163	  will be called "rtc-mpfs".
2164
2165config RTC_DRV_SSD202D
2166	tristate "SigmaStar SSD202D RTC"
2167	depends on ARCH_MSTARV7 || COMPILE_TEST
2168	default ARCH_MSTARV7
2169	help
2170	  If you say yes here you get support for the SigmaStar SSD202D On-Chip
2171	  Real Time Clock.
2172
2173	  This driver can also be built as a module, if so, the module
2174	  will be called "rtc-ssd20xd".
2175
2176config RTC_DRV_AMLOGIC_A4
2177	tristate "Amlogic RTC"
2178	depends on ARCH_MESON || COMPILE_TEST
2179	select REGMAP_MMIO
2180	default ARCH_MESON
2181	help
2182	  If you say yes here you get support for the RTC block on the
2183	  Amlogic A113L2(A4) and A113X2(A5) SoCs.
2184
2185	  This driver can also be built as a module. If so, the module
2186	  will be called "rtc-amlogic-a4".
2187
2188config RTC_DRV_S32G
2189	tristate "RTC driver for S32G2/S32G3 SoCs"
2190	depends on ARCH_S32 || COMPILE_TEST
2191	depends on COMMON_CLK
2192	help
2193	  Say yes to enable RTC driver for platforms based on the
2194	  S32G2/S32G3 SoC family.
2195
2196	  This RTC module can be used as a wakeup source.
2197	  Please note that it is not battery-powered.
2198
2199comment "HID Sensor RTC drivers"
2200
2201config RTC_DRV_HID_SENSOR_TIME
2202	tristate "HID Sensor Time"
2203	depends on USB_HID
2204	depends on HID_SENSOR_HUB && IIO
2205	select HID_SENSOR_IIO_COMMON
2206	help
2207	  Say yes here to build support for the HID Sensors of type Time.
2208	  This drivers makes such sensors available as RTCs.
2209
2210	  If this driver is compiled as a module, it will be named
2211	  rtc-hid-sensor-time.
2212
2213endif # RTC_CLASS
2214