Kconfig 14 KB

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