Kconfig 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  1. #
  2. # RTC class/drivers configuration
  3. #
  4. config RTC_LIB
  5. tristate
  6. menuconfig RTC_CLASS
  7. tristate "Real Time Clock"
  8. default n
  9. depends on !S390
  10. select RTC_LIB
  11. help
  12. Generic RTC class support. If you say yes here, you will
  13. be allowed to plug one or more RTCs to your system. You will
  14. probably want to enable one or more of the interfaces below.
  15. This driver can also be built as a module. If so, the module
  16. will be called rtc-core.
  17. if RTC_CLASS
  18. config RTC_HCTOSYS
  19. bool "Set system time from RTC on startup and resume"
  20. depends on RTC_CLASS = y
  21. default y
  22. help
  23. If you say yes here, the system time (wall clock) will be set using
  24. the value read from a specified RTC device. This is useful to avoid
  25. unnecessary fsck runs at boot time, and to network better.
  26. config RTC_HCTOSYS_DEVICE
  27. string "RTC used to set the system time"
  28. depends on RTC_HCTOSYS = y
  29. default "rtc0"
  30. help
  31. The RTC device that will be used to (re)initialize the system
  32. clock, usually rtc0. Initialization is done when the system
  33. starts up, and when it resumes from a low power state. This
  34. device should record time in UTC, since the kernel won't do
  35. timezone correction.
  36. The driver for this RTC device must be loaded before late_initcall
  37. functions run, so it must usually be statically linked.
  38. This clock should be battery-backed, so that it reads the correct
  39. time when the system boots from a power-off state. Otherwise, your
  40. system will need an external clock source (like an NTP server).
  41. If the clock you specify here is not battery backed, it may still
  42. be useful to reinitialize system time when resuming from system
  43. sleep states. Do not specify an RTC here unless it stays powered
  44. during all this system's supported sleep states.
  45. config RTC_DEBUG
  46. bool "RTC debug support"
  47. depends on RTC_CLASS = y
  48. help
  49. Say yes here to enable debugging support in the RTC framework
  50. and individual RTC drivers.
  51. comment "RTC interfaces"
  52. config RTC_INTF_SYSFS
  53. boolean "/sys/class/rtc/rtcN (sysfs)"
  54. depends on SYSFS
  55. default RTC_CLASS
  56. help
  57. Say yes here if you want to use your RTCs using sysfs interfaces,
  58. /sys/class/rtc/rtc0 through /sys/.../rtcN.
  59. This driver can also be built as a module. If so, the module
  60. will be called rtc-sysfs.
  61. config RTC_INTF_PROC
  62. boolean "/proc/driver/rtc (procfs for rtc0)"
  63. depends on PROC_FS
  64. default RTC_CLASS
  65. help
  66. Say yes here if you want to use your first RTC through the proc
  67. interface, /proc/driver/rtc. Other RTCs will not be available
  68. through that API.
  69. This driver can also be built as a module. If so, the module
  70. will be called rtc-proc.
  71. config RTC_INTF_DEV
  72. boolean "/dev/rtcN (character devices)"
  73. default RTC_CLASS
  74. help
  75. Say yes here if you want to use your RTCs using the /dev
  76. interfaces, which "udev" sets up as /dev/rtc0 through
  77. /dev/rtcN. You may want to set up a symbolic link so one
  78. of these can be accessed as /dev/rtc, which is a name
  79. expected by "hwclock" and some other programs.
  80. This driver can also be built as a module. If so, the module
  81. will be called rtc-dev.
  82. config RTC_INTF_DEV_UIE_EMUL
  83. bool "RTC UIE emulation on dev interface"
  84. depends on RTC_INTF_DEV
  85. help
  86. Provides an emulation for RTC_UIE if the underlying rtc chip
  87. driver does not expose RTC_UIE ioctls. Those requests generate
  88. once-per-second update interrupts, used for synchronization.
  89. config RTC_DRV_TEST
  90. tristate "Test driver/device"
  91. help
  92. If you say yes here you get support for the
  93. RTC test driver. It's a software RTC which can be
  94. used to test the RTC subsystem APIs. It gets
  95. the time from the system clock.
  96. You want this driver only if you are doing development
  97. on the RTC subsystem. Please read the source code
  98. for further details.
  99. This driver can also be built as a module. If so, the module
  100. will be called rtc-test.
  101. comment "I2C RTC drivers"
  102. depends on I2C
  103. if I2C
  104. config RTC_DRV_DS1307
  105. tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00"
  106. help
  107. If you say yes here you get support for various compatible RTC
  108. chips (often with battery backup) connected with I2C. This driver
  109. should handle DS1307, DS1337, DS1338, DS1339, DS1340, ST M41T00,
  110. and probably other chips. In some cases the RTC must already
  111. have been initialized (by manufacturing or a bootloader).
  112. The first seven registers on these chips hold an RTC, and other
  113. registers may add features such as NVRAM, a trickle charger for
  114. the RTC/NVRAM backup power, and alarms. NVRAM is visible in
  115. sysfs, but other chip features may not be available.
  116. This driver can also be built as a module. If so, the module
  117. will be called rtc-ds1307.
  118. config RTC_DRV_DS1374
  119. tristate "Dallas/Maxim DS1374"
  120. depends on RTC_CLASS && I2C
  121. help
  122. If you say yes here you get support for Dallas Semiconductor
  123. DS1374 real-time clock chips. If an interrupt is associated
  124. with the device, the alarm functionality is supported.
  125. This driver can also be built as a module. If so, the module
  126. will be called rtc-ds1374.
  127. config RTC_DRV_DS1672
  128. tristate "Dallas/Maxim DS1672"
  129. help
  130. If you say yes here you get support for the
  131. Dallas/Maxim DS1672 timekeeping chip.
  132. This driver can also be built as a module. If so, the module
  133. will be called rtc-ds1672.
  134. config RTC_DRV_MAX6900
  135. tristate "Maxim MAX6900"
  136. help
  137. If you say yes here you will get support for the
  138. Maxim MAX6900 I2C RTC chip.
  139. This driver can also be built as a module. If so, the module
  140. will be called rtc-max6900.
  141. config RTC_DRV_RS5C372
  142. tristate "Ricoh R2025S/D, RS5C372A/B, RV5C386, RV5C387A"
  143. help
  144. If you say yes here you get support for the
  145. Ricoh R2025S/D, RS5C372A, RS5C372B, RV5C386, and RV5C387A RTC chips.
  146. This driver can also be built as a module. If so, the module
  147. will be called rtc-rs5c372.
  148. config RTC_DRV_ISL1208
  149. tristate "Intersil ISL1208"
  150. help
  151. If you say yes here you get support for the
  152. Intersil ISL1208 RTC chip.
  153. This driver can also be built as a module. If so, the module
  154. will be called rtc-isl1208.
  155. config RTC_DRV_X1205
  156. tristate "Xicor/Intersil X1205"
  157. help
  158. If you say yes here you get support for the
  159. Xicor/Intersil X1205 RTC chip.
  160. This driver can also be built as a module. If so, the module
  161. will be called rtc-x1205.
  162. config RTC_DRV_PCF8563
  163. tristate "Philips PCF8563/Epson RTC8564"
  164. help
  165. If you say yes here you get support for the
  166. Philips PCF8563 RTC chip. The Epson RTC8564
  167. should work as well.
  168. This driver can also be built as a module. If so, the module
  169. will be called rtc-pcf8563.
  170. config RTC_DRV_PCF8583
  171. tristate "Philips PCF8583"
  172. help
  173. If you say yes here you get support for the Philips PCF8583
  174. RTC chip found on Acorn RiscPCs. This driver supports the
  175. platform specific method of retrieving the current year from
  176. the RTC's SRAM. It will work on other platforms with the same
  177. chip, but the year will probably have to be tweaked.
  178. This driver can also be built as a module. If so, the module
  179. will be called rtc-pcf8583.
  180. config RTC_DRV_M41T80
  181. tristate "ST M41T65/M41T80/81/82/83/84/85/87"
  182. help
  183. If you say Y here you will get support for the ST M41T60
  184. and M41T80 RTC chips series. Currently, the following chips are
  185. supported: M41T65, M41T80, M41T81, M41T82, M41T83, M41ST84,
  186. M41ST85, and M41ST87.
  187. This driver can also be built as a module. If so, the module
  188. will be called rtc-m41t80.
  189. config RTC_DRV_M41T80_WDT
  190. bool "ST M41T65/M41T80 series RTC watchdog timer"
  191. depends on RTC_DRV_M41T80
  192. help
  193. If you say Y here you will get support for the
  194. watchdog timer in the ST M41T60 and M41T80 RTC chips series.
  195. config RTC_DRV_TWL92330
  196. boolean "TI TWL92330/Menelaus"
  197. depends on MENELAUS
  198. help
  199. If you say yes here you get support for the RTC on the
  200. TWL92330 "Menelaus" power management chip, used with OMAP2
  201. platforms. The support is integrated with the rest of
  202. the Menelaus driver; it's not separate module.
  203. config RTC_DRV_TWL4030
  204. tristate "TI TWL4030/TWL5030/TPS659x0"
  205. depends on RTC_CLASS && TWL4030_CORE
  206. help
  207. If you say yes here you get support for the RTC on the
  208. TWL4030 family chips, used mostly with OMAP3 platforms.
  209. This driver can also be built as a module. If so, the module
  210. will be called rtc-twl4030.
  211. config RTC_DRV_S35390A
  212. tristate "Seiko Instruments S-35390A"
  213. select BITREVERSE
  214. help
  215. If you say yes here you will get support for the Seiko
  216. Instruments S-35390A.
  217. This driver can also be built as a module. If so the module
  218. will be called rtc-s35390a.
  219. config RTC_DRV_FM3130
  220. tristate "Ramtron FM3130"
  221. help
  222. If you say Y here you will get support for the
  223. Ramtron FM3130 RTC chips.
  224. Ramtron FM3130 is a chip with two separate devices inside,
  225. RTC clock and FRAM. This driver provides only RTC functionality.
  226. This driver can also be built as a module. If so the module
  227. will be called rtc-fm3130.
  228. endif # I2C
  229. comment "SPI RTC drivers"
  230. if SPI_MASTER
  231. config RTC_DRV_M41T94
  232. tristate "ST M41T94"
  233. help
  234. If you say yes here you will get support for the
  235. ST M41T94 SPI RTC chip.
  236. This driver can also be built as a module. If so, the module
  237. will be called rtc-m41t94.
  238. config RTC_DRV_DS1305
  239. tristate "Dallas/Maxim DS1305/DS1306"
  240. help
  241. Select this driver to get support for the Dallas/Maxim DS1305
  242. and DS1306 real time clock chips. These support a trickle
  243. charger, alarms, and NVRAM in addition to the clock.
  244. This driver can also be built as a module. If so, the module
  245. will be called rtc-ds1305.
  246. config RTC_DRV_MAX6902
  247. tristate "Maxim MAX6902"
  248. help
  249. If you say yes here you will get support for the
  250. Maxim MAX6902 SPI RTC chip.
  251. This driver can also be built as a module. If so, the module
  252. will be called rtc-max6902.
  253. config RTC_DRV_R9701
  254. tristate "Epson RTC-9701JE"
  255. help
  256. If you say yes here you will get support for the
  257. Epson RTC-9701JE SPI RTC chip.
  258. This driver can also be built as a module. If so, the module
  259. will be called rtc-r9701.
  260. config RTC_DRV_RS5C348
  261. tristate "Ricoh RS5C348A/B"
  262. help
  263. If you say yes here you get support for the
  264. Ricoh RS5C348A and RS5C348B RTC chips.
  265. This driver can also be built as a module. If so, the module
  266. will be called rtc-rs5c348.
  267. config RTC_DRV_DS3234
  268. tristate "Maxim/Dallas DS3234"
  269. help
  270. If you say yes here you get support for the
  271. Maxim/Dallas DS3234 SPI RTC chip.
  272. This driver can also be built as a module. If so, the module
  273. will be called rtc-ds3234.
  274. endif # SPI_MASTER
  275. comment "Platform RTC drivers"
  276. # this 'CMOS' RTC driver is arch dependent because <asm-generic/rtc.h>
  277. # requires <asm/mc146818rtc.h> defining CMOS_READ/CMOS_WRITE, and a
  278. # global rtc_lock ... it's not yet just another platform_device.
  279. config RTC_DRV_CMOS
  280. tristate "PC-style 'CMOS'"
  281. depends on X86 || ALPHA || ARM || M32R || ATARI || PPC || MIPS || SPARC64
  282. default y if X86
  283. help
  284. Say "yes" here to get direct support for the real time clock
  285. found in every PC or ACPI-based system, and some other boards.
  286. Specifically the original MC146818, compatibles like those in
  287. PC south bridges, the DS12887 or M48T86, some multifunction
  288. or LPC bus chips, and so on.
  289. Your system will need to define the platform device used by
  290. this driver, otherwise it won't be accessible. This means
  291. you can safely enable this driver if you don't know whether
  292. or not your board has this kind of hardware.
  293. This driver can also be built as a module. If so, the module
  294. will be called rtc-cmos.
  295. config RTC_DRV_DS1216
  296. tristate "Dallas DS1216"
  297. depends on SNI_RM
  298. help
  299. If you say yes here you get support for the Dallas DS1216 RTC chips.
  300. config RTC_DRV_DS1286
  301. tristate "Dallas DS1286"
  302. help
  303. If you say yes here you get support for the Dallas DS1286 RTC chips.
  304. config RTC_DRV_DS1302
  305. tristate "Dallas DS1302"
  306. depends on SH_SECUREEDGE5410
  307. help
  308. If you say yes here you get support for the Dallas DS1302 RTC chips.
  309. config RTC_DRV_DS1511
  310. tristate "Dallas DS1511"
  311. depends on RTC_CLASS
  312. help
  313. If you say yes here you get support for the
  314. Dallas DS1511 timekeeping/watchdog chip.
  315. This driver can also be built as a module. If so, the module
  316. will be called rtc-ds1511.
  317. config RTC_DRV_DS1553
  318. tristate "Maxim/Dallas DS1553"
  319. help
  320. If you say yes here you get support for the
  321. Maxim/Dallas DS1553 timekeeping chip.
  322. This driver can also be built as a module. If so, the module
  323. will be called rtc-ds1553.
  324. config RTC_DRV_DS1742
  325. tristate "Maxim/Dallas DS1742/1743"
  326. help
  327. If you say yes here you get support for the
  328. Maxim/Dallas DS1742/1743 timekeeping chip.
  329. This driver can also be built as a module. If so, the module
  330. will be called rtc-ds1742.
  331. config RTC_DRV_STK17TA8
  332. tristate "Simtek STK17TA8"
  333. depends on RTC_CLASS
  334. help
  335. If you say yes here you get support for the
  336. Simtek STK17TA8 timekeeping chip.
  337. This driver can also be built as a module. If so, the module
  338. will be called rtc-stk17ta8.
  339. config RTC_DRV_M48T86
  340. tristate "ST M48T86/Dallas DS12887"
  341. help
  342. If you say Y here you will get support for the
  343. ST M48T86 and Dallas DS12887 RTC chips.
  344. This driver can also be built as a module. If so, the module
  345. will be called rtc-m48t86.
  346. config RTC_DRV_M48T35
  347. tristate "ST M48T35"
  348. help
  349. If you say Y here you will get support for the
  350. ST M48T35 RTC chip.
  351. This driver can also be built as a module, if so, the module
  352. will be called "rtc-m48t35".
  353. config RTC_DRV_M48T59
  354. tristate "ST M48T59/M48T08/M48T02"
  355. help
  356. If you say Y here you will get support for the
  357. ST M48T59 RTC chip and compatible ST M48T08 and M48T02.
  358. These chips are usually found in Sun SPARC and UltraSPARC
  359. workstations.
  360. This driver can also be built as a module, if so, the module
  361. will be called "rtc-m48t59".
  362. config RTC_DRV_BQ4802
  363. tristate "TI BQ4802"
  364. help
  365. If you say Y here you will get support for the TI
  366. BQ4802 RTC chip.
  367. This driver can also be built as a module. If so, the module
  368. will be called rtc-bq4802.
  369. config RTC_DRV_V3020
  370. tristate "EM Microelectronic V3020"
  371. help
  372. If you say yes here you will get support for the
  373. EM Microelectronic v3020 RTC chip.
  374. This driver can also be built as a module. If so, the module
  375. will be called rtc-v3020.
  376. comment "on-CPU RTC drivers"
  377. config RTC_DRV_OMAP
  378. tristate "TI OMAP1"
  379. depends on ARCH_OMAP15XX || ARCH_OMAP16XX || ARCH_OMAP730
  380. help
  381. Say "yes" here to support the real time clock on TI OMAP1 chips.
  382. This driver can also be built as a module called rtc-omap.
  383. config RTC_DRV_S3C
  384. tristate "Samsung S3C series SoC RTC"
  385. depends on ARCH_S3C2410
  386. help
  387. RTC (Realtime Clock) driver for the clock inbuilt into the
  388. Samsung S3C24XX series of SoCs. This can provide periodic
  389. interrupt rates from 1Hz to 64Hz for user programs, and
  390. wakeup from Alarm.
  391. The driver currently supports the common features on all the
  392. S3C24XX range, such as the S3C2410, S3C2412, S3C2413, S3C2440
  393. and S3C2442.
  394. This driver can also be build as a module. If so, the module
  395. will be called rtc-s3c.
  396. config RTC_DRV_EP93XX
  397. tristate "Cirrus Logic EP93XX"
  398. depends on ARCH_EP93XX
  399. help
  400. If you say yes here you get support for the
  401. RTC embedded in the Cirrus Logic EP93XX processors.
  402. This driver can also be built as a module. If so, the module
  403. will be called rtc-ep93xx.
  404. config RTC_DRV_SA1100
  405. tristate "SA11x0/PXA2xx"
  406. depends on ARCH_SA1100 || ARCH_PXA
  407. help
  408. If you say Y here you will get access to the real time clock
  409. built into your SA11x0 or PXA2xx CPU.
  410. To compile this driver as a module, choose M here: the
  411. module will be called rtc-sa1100.
  412. config RTC_DRV_SH
  413. tristate "SuperH On-Chip RTC"
  414. depends on RTC_CLASS && SUPERH
  415. help
  416. Say Y here to enable support for the on-chip RTC found in
  417. most SuperH processors.
  418. To compile this driver as a module, choose M here: the
  419. module will be called rtc-sh.
  420. config RTC_DRV_VR41XX
  421. tristate "NEC VR41XX"
  422. depends on CPU_VR41XX
  423. help
  424. If you say Y here you will get access to the real time clock
  425. built into your NEC VR41XX CPU.
  426. To compile this driver as a module, choose M here: the
  427. module will be called rtc-vr41xx.
  428. config RTC_DRV_PL030
  429. tristate "ARM AMBA PL030 RTC"
  430. depends on ARM_AMBA
  431. help
  432. If you say Y here you will get access to ARM AMBA
  433. PrimeCell PL030 RTC found on certain ARM SOCs.
  434. To compile this driver as a module, choose M here: the
  435. module will be called rtc-pl030.
  436. config RTC_DRV_PL031
  437. tristate "ARM AMBA PL031 RTC"
  438. depends on ARM_AMBA
  439. help
  440. If you say Y here you will get access to ARM AMBA
  441. PrimeCell PL031 RTC found on certain ARM SOCs.
  442. To compile this driver as a module, choose M here: the
  443. module will be called rtc-pl031.
  444. config RTC_DRV_AT32AP700X
  445. tristate "AT32AP700X series RTC"
  446. depends on PLATFORM_AT32AP
  447. help
  448. Driver for the internal RTC (Realtime Clock) on Atmel AVR32
  449. AT32AP700x family processors.
  450. config RTC_DRV_AT91RM9200
  451. tristate "AT91RM9200 or AT91SAM9RL"
  452. depends on ARCH_AT91RM9200 || ARCH_AT91SAM9RL
  453. help
  454. Driver for the internal RTC (Realtime Clock) module found on
  455. Atmel AT91RM9200's and AT91SAM9RL chips. On SAM9RL chips
  456. this is powered by the backup power supply.
  457. config RTC_DRV_AT91SAM9
  458. tristate "AT91SAM9x/AT91CAP9"
  459. depends on ARCH_AT91 && !(ARCH_AT91RM9200 || ARCH_AT91X40)
  460. help
  461. RTC driver for the Atmel AT91SAM9x and AT91CAP9 internal RTT
  462. (Real Time Timer). These timers are powered by the backup power
  463. supply (such as a small coin cell battery), but do not need to
  464. be used as RTCs.
  465. (On AT91SAM9rl chips you probably want to use the dedicated RTC
  466. module and leave the RTT available for other uses.)
  467. config RTC_DRV_AT91SAM9_RTT
  468. int
  469. range 0 1
  470. default 0
  471. prompt "RTT module Number" if ARCH_AT91SAM9263
  472. depends on RTC_DRV_AT91SAM9
  473. help
  474. More than one RTT module is available. You can choose which
  475. one will be used as an RTC. The default of zero is normally
  476. OK to use, though some systems use that for non-RTC purposes.
  477. config RTC_DRV_AT91SAM9_GPBR
  478. int
  479. range 0 3 if !ARCH_AT91SAM9263
  480. range 0 15 if ARCH_AT91SAM9263
  481. default 0
  482. prompt "Backup Register Number"
  483. depends on RTC_DRV_AT91SAM9
  484. help
  485. The RTC driver needs to use one of the General Purpose Backup
  486. Registers (GPBRs) as well as the RTT. You can choose which one
  487. will be used. The default of zero is normally OK to use, but
  488. on some systems other software needs to use that register.
  489. config RTC_DRV_BFIN
  490. tristate "Blackfin On-Chip RTC"
  491. depends on BLACKFIN && !BF561
  492. help
  493. If you say yes here you will get support for the
  494. Blackfin On-Chip Real Time Clock.
  495. This driver can also be built as a module. If so, the module
  496. will be called rtc-bfin.
  497. config RTC_DRV_RS5C313
  498. tristate "Ricoh RS5C313"
  499. depends on SH_LANDISK
  500. help
  501. If you say yes here you get support for the Ricoh RS5C313 RTC chips.
  502. config RTC_DRV_PARISC
  503. tristate "PA-RISC firmware RTC support"
  504. depends on PARISC
  505. help
  506. Say Y or M here to enable RTC support on PA-RISC systems using
  507. firmware calls. If you do not know what you are doing, you should
  508. just say Y.
  509. config RTC_DRV_PPC
  510. tristate "PowerPC machine dependent RTC support"
  511. depends on PPC
  512. help
  513. The PowerPC kernel has machine-specific functions for accessing
  514. the RTC. This exposes that functionality through the generic RTC
  515. class.
  516. config RTC_DRV_SUN4V
  517. bool "SUN4V Hypervisor RTC"
  518. depends on SPARC64
  519. help
  520. If you say Y here you will get support for the Hypervisor
  521. based RTC on SUN4V systems.
  522. config RTC_DRV_STARFIRE
  523. bool "Starfire RTC"
  524. depends on SPARC64
  525. help
  526. If you say Y here you will get support for the RTC found on
  527. Starfire systems.
  528. endif # RTC_CLASS