Kconfig 16 KB

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