David Brownell | 7be2c7c | 2007-02-10 01:46:02 -0800 | [diff] [blame] | 1 | # |
Alessandro Zummo | c58411e | 2006-03-27 01:16:34 -0800 | [diff] [blame] | 2 | # RTC class/drivers configuration |
| 3 | # |
| 4 | |
Alessandro Zummo | 0c86edc | 2006-03-27 01:16:37 -0800 | [diff] [blame] | 5 | menu "Real Time Clock" |
| 6 | |
Alessandro Zummo | c58411e | 2006-03-27 01:16:34 -0800 | [diff] [blame] | 7 | config RTC_LIB |
Alessandro Zummo | 0c86edc | 2006-03-27 01:16:37 -0800 | [diff] [blame] | 8 | tristate |
| 9 | |
| 10 | config RTC_CLASS |
| 11 | tristate "RTC class" |
| 12 | depends on EXPERIMENTAL |
| 13 | default n |
| 14 | select RTC_LIB |
| 15 | help |
| 16 | Generic RTC class support. If you say yes here, you will |
| 17 | be allowed to plug one or more RTCs to your system. You will |
Adrian Bunk | 27ae410 | 2006-06-30 18:18:41 +0200 | [diff] [blame] | 18 | probably want to enable one or more of the interfaces below. |
Alessandro Zummo | 0c86edc | 2006-03-27 01:16:37 -0800 | [diff] [blame] | 19 | |
| 20 | This driver can also be built as a module. If so, the module |
| 21 | will be called rtc-class. |
| 22 | |
| 23 | config RTC_HCTOSYS |
| 24 | bool "Set system time from RTC on startup" |
| 25 | depends on RTC_CLASS = y |
| 26 | default y |
| 27 | help |
| 28 | If you say yes here, the system time will be set using |
| 29 | the value read from the specified RTC device. This is useful |
Pavel Machek | af3ffa6 | 2006-09-29 02:01:14 -0700 | [diff] [blame] | 30 | in order to avoid unnecessary fsck runs. |
Alessandro Zummo | 0c86edc | 2006-03-27 01:16:37 -0800 | [diff] [blame] | 31 | |
| 32 | config RTC_HCTOSYS_DEVICE |
| 33 | string "The RTC to read the time from" |
| 34 | depends on RTC_HCTOSYS = y |
| 35 | default "rtc0" |
| 36 | help |
| 37 | The RTC device that will be used as the source for |
| 38 | the system time, usually rtc0. |
| 39 | |
David Brownell | 9e86ecb | 2006-09-30 23:28:14 -0700 | [diff] [blame] | 40 | config RTC_DEBUG |
| 41 | bool "RTC debug support" |
| 42 | depends on RTC_CLASS = y |
| 43 | help |
| 44 | Say yes here to enable debugging support in the RTC framework |
| 45 | and individual RTC drivers. |
| 46 | |
Alessandro Zummo | 0c86edc | 2006-03-27 01:16:37 -0800 | [diff] [blame] | 47 | comment "RTC interfaces" |
| 48 | depends on RTC_CLASS |
| 49 | |
Alessandro Zummo | c5c3e19 | 2006-03-27 01:16:39 -0800 | [diff] [blame] | 50 | config RTC_INTF_SYSFS |
| 51 | tristate "sysfs" |
| 52 | depends on RTC_CLASS && SYSFS |
| 53 | default RTC_CLASS |
| 54 | help |
David Brownell | 9e86ecb | 2006-09-30 23:28:14 -0700 | [diff] [blame] | 55 | Say yes here if you want to use your RTCs using sysfs interfaces, |
| 56 | /sys/class/rtc/rtc0 through /sys/.../rtcN. |
Alessandro Zummo | c5c3e19 | 2006-03-27 01:16:39 -0800 | [diff] [blame] | 57 | |
| 58 | This driver can also be built as a module. If so, the module |
| 59 | will be called rtc-sysfs. |
| 60 | |
Alessandro Zummo | 728a294 | 2006-03-27 01:16:40 -0800 | [diff] [blame] | 61 | config RTC_INTF_PROC |
| 62 | tristate "proc" |
| 63 | depends on RTC_CLASS && PROC_FS |
| 64 | default RTC_CLASS |
| 65 | help |
David Brownell | 9e86ecb | 2006-09-30 23:28:14 -0700 | [diff] [blame] | 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. |
Alessandro Zummo | 728a294 | 2006-03-27 01:16:40 -0800 | [diff] [blame] | 69 | |
| 70 | This driver can also be built as a module. If so, the module |
| 71 | will be called rtc-proc. |
| 72 | |
Alessandro Zummo | e824290 | 2006-03-27 01:16:41 -0800 | [diff] [blame] | 73 | config RTC_INTF_DEV |
| 74 | tristate "dev" |
| 75 | depends on RTC_CLASS |
| 76 | default RTC_CLASS |
| 77 | help |
David Brownell | 9e86ecb | 2006-09-30 23:28:14 -0700 | [diff] [blame] | 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. |
Alessandro Zummo | e824290 | 2006-03-27 01:16:41 -0800 | [diff] [blame] | 83 | |
| 84 | This driver can also be built as a module. If so, the module |
| 85 | will be called rtc-dev. |
| 86 | |
Atsushi Nemoto | 655066c | 2006-06-25 05:48:17 -0700 | [diff] [blame] | 87 | config RTC_INTF_DEV_UIE_EMUL |
| 88 | bool "RTC UIE emulation on dev interface" |
| 89 | depends on RTC_INTF_DEV |
| 90 | help |
| 91 | Provides an emulation for RTC_UIE if the underlaying rtc chip |
David Brownell | 9e86ecb | 2006-09-30 23:28:14 -0700 | [diff] [blame] | 92 | driver does not expose RTC_UIE ioctls. Those requests generate |
| 93 | once-per-second update interrupts, used for synchronization. |
Atsushi Nemoto | 655066c | 2006-06-25 05:48:17 -0700 | [diff] [blame] | 94 | |
Alessandro Zummo | 0c86edc | 2006-03-27 01:16:37 -0800 | [diff] [blame] | 95 | comment "RTC drivers" |
| 96 | depends on RTC_CLASS |
| 97 | |
David Brownell | 7be2c7c | 2007-02-10 01:46:02 -0800 | [diff] [blame] | 98 | # this 'CMOS' RTC driver is arch dependent because <asm-generic/rtc.h> |
| 99 | # requires <asm/mc146818rtc.h> defining CMOS_READ/CMOS_WRITE, and a |
| 100 | # global rtc_lock ... it's not yet just another platform_device. |
| 101 | |
| 102 | config RTC_DRV_CMOS |
| 103 | tristate "PC-style 'CMOS' real time clock" |
Dave Jones | c066332 | 2007-02-20 13:58:07 -0800 | [diff] [blame] | 104 | depends on RTC_CLASS && (X86 || ALPHA || ARM26 || ARM \ |
David Brownell | 7be2c7c | 2007-02-10 01:46:02 -0800 | [diff] [blame] | 105 | || M32R || ATARI || POWERPC) |
| 106 | help |
| 107 | Say "yes" here to get direct support for the real time clock |
| 108 | found in every PC or ACPI-based system, and some other boards. |
| 109 | Specifically the original MC146818, compatibles like those in |
| 110 | PC south bridges, the DS12887 or M48T86, some multifunction |
| 111 | or LPC bus chips, and so on. |
| 112 | |
| 113 | Your system will need to define the platform device used by |
| 114 | this driver, otherwise it won't be accessible. This means |
| 115 | you can safely enable this driver if you don't know whether |
| 116 | or not your board has this kind of hardware. |
| 117 | |
| 118 | This driver can also be built as a module. If so, the module |
| 119 | will be called rtc-cmos. |
| 120 | |
Alessandro Zummo | 1fec7c6 | 2006-03-27 01:16:42 -0800 | [diff] [blame] | 121 | config RTC_DRV_X1205 |
| 122 | tristate "Xicor/Intersil X1205" |
| 123 | depends on RTC_CLASS && I2C |
| 124 | help |
| 125 | If you say yes here you get support for the |
| 126 | Xicor/Intersil X1205 RTC chip. |
| 127 | |
| 128 | This driver can also be built as a module. If so, the module |
| 129 | will be called rtc-x1205. |
| 130 | |
David Brownell | 1abb0dc | 2006-06-25 05:48:17 -0700 | [diff] [blame] | 131 | config RTC_DRV_DS1307 |
| 132 | tristate "Dallas/Maxim DS1307 and similar I2C RTC chips" |
| 133 | depends on RTC_CLASS && I2C |
| 134 | help |
| 135 | If you say yes here you get support for various compatible RTC |
| 136 | chips (often with battery backup) connected with I2C. This driver |
| 137 | should handle DS1307, DS1337, DS1338, DS1339, DS1340, ST M41T00, |
| 138 | and probably other chips. In some cases the RTC must already |
| 139 | have been initialized (by manufacturing or a bootloader). |
| 140 | |
| 141 | The first seven registers on these chips hold an RTC, and other |
| 142 | registers may add features such as NVRAM, a trickle charger for |
| 143 | the RTC/NVRAM backup power, and alarms. This driver may not |
| 144 | expose all those available chip features. |
| 145 | |
| 146 | This driver can also be built as a module. If so, the module |
| 147 | will be called rtc-ds1307. |
| 148 | |
Atsushi Nemoto | 9bf5b4f | 2006-06-25 05:48:28 -0700 | [diff] [blame] | 149 | config RTC_DRV_DS1553 |
| 150 | tristate "Dallas DS1553" |
| 151 | depends on RTC_CLASS |
| 152 | help |
| 153 | If you say yes here you get support for the |
| 154 | Dallas DS1553 timekeeping chip. |
| 155 | |
| 156 | This driver can also be built as a module. If so, the module |
| 157 | will be called rtc-ds1553. |
| 158 | |
Herbert Valerio Riedel | 7e56a7d | 2006-07-14 00:24:11 -0700 | [diff] [blame] | 159 | config RTC_DRV_ISL1208 |
| 160 | tristate "Intersil 1208" |
| 161 | depends on RTC_CLASS && I2C |
| 162 | help |
| 163 | If you say yes here you get support for the |
| 164 | Intersil 1208 RTC chip. |
| 165 | |
| 166 | This driver can also be built as a module. If so, the module |
| 167 | will be called rtc-isl1208. |
| 168 | |
Alessandro Zummo | edf1aaa | 2006-03-27 01:16:43 -0800 | [diff] [blame] | 169 | config RTC_DRV_DS1672 |
| 170 | tristate "Dallas/Maxim DS1672" |
| 171 | depends on RTC_CLASS && I2C |
| 172 | help |
| 173 | If you say yes here you get support for the |
| 174 | Dallas/Maxim DS1672 timekeeping chip. |
| 175 | |
| 176 | This driver can also be built as a module. If so, the module |
| 177 | will be called rtc-ds1672. |
| 178 | |
Atsushi Nemoto | 5ec3e4b | 2006-06-25 05:48:29 -0700 | [diff] [blame] | 179 | config RTC_DRV_DS1742 |
Torsten Ertbjerg Rasmussen | f9231a0 | 2006-12-06 20:39:41 -0800 | [diff] [blame] | 180 | tristate "Dallas DS1742/1743" |
Atsushi Nemoto | 5ec3e4b | 2006-06-25 05:48:29 -0700 | [diff] [blame] | 181 | depends on RTC_CLASS |
| 182 | help |
| 183 | If you say yes here you get support for the |
Torsten Ertbjerg Rasmussen | f9231a0 | 2006-12-06 20:39:41 -0800 | [diff] [blame] | 184 | Dallas DS1742/1743 timekeeping chip. |
Atsushi Nemoto | 5ec3e4b | 2006-06-25 05:48:29 -0700 | [diff] [blame] | 185 | |
| 186 | This driver can also be built as a module. If so, the module |
| 187 | will be called rtc-ds1742. |
| 188 | |
David Brownell | db68b18 | 2006-12-06 20:38:36 -0800 | [diff] [blame] | 189 | config RTC_DRV_OMAP |
| 190 | tristate "TI OMAP1" |
| 191 | depends on RTC_CLASS && ( \ |
| 192 | ARCH_OMAP15XX || ARCH_OMAP16XX || ARCH_OMAP730 ) |
| 193 | help |
| 194 | Say "yes" here to support the real time clock on TI OMAP1 chips. |
| 195 | This driver can also be built as a module called rtc-omap. |
| 196 | |
Alessandro Zummo | b5a82d6 | 2006-03-27 01:16:44 -0800 | [diff] [blame] | 197 | config RTC_DRV_PCF8563 |
| 198 | tristate "Philips PCF8563/Epson RTC8564" |
| 199 | depends on RTC_CLASS && I2C |
| 200 | help |
| 201 | If you say yes here you get support for the |
| 202 | Philips PCF8563 RTC chip. The Epson RTC8564 |
| 203 | should work as well. |
| 204 | |
| 205 | This driver can also be built as a module. If so, the module |
| 206 | will be called rtc-pcf8563. |
| 207 | |
G. Liakhovetski | 9c0c570 | 2006-06-25 05:48:18 -0700 | [diff] [blame] | 208 | config RTC_DRV_PCF8583 |
| 209 | tristate "Philips PCF8583" |
Russell King | bb71f99 | 2007-03-04 20:33:07 +0000 | [diff] [blame^] | 210 | depends on RTC_CLASS && I2C && ARCH_RPC |
G. Liakhovetski | 9c0c570 | 2006-06-25 05:48:18 -0700 | [diff] [blame] | 211 | help |
Russell King | bb71f99 | 2007-03-04 20:33:07 +0000 | [diff] [blame^] | 212 | If you say yes here you get support for the Philips PCF8583 |
| 213 | RTC chip found on Acorn RiscPCs. This driver supports the |
| 214 | platform specific method of retrieving the current year from |
| 215 | the RTC's SRAM. |
G. Liakhovetski | 9c0c570 | 2006-06-25 05:48:18 -0700 | [diff] [blame] | 216 | |
| 217 | This driver can also be built as a module. If so, the module |
| 218 | will be called rtc-pcf8583. |
| 219 | |
Atsushi Nemoto | e0ac476 | 2006-06-28 04:26:47 -0700 | [diff] [blame] | 220 | config RTC_DRV_RS5C348 |
| 221 | tristate "Ricoh RS5C348A/B" |
| 222 | depends on RTC_CLASS && SPI |
| 223 | help |
| 224 | If you say yes here you get support for the |
| 225 | Ricoh RS5C348A and RS5C348B RTC chips. |
| 226 | |
| 227 | This driver can also be built as a module. If so, the module |
| 228 | will be called rtc-rs5c348. |
| 229 | |
Alessandro Zummo | 7520b94 | 2006-03-27 01:16:45 -0800 | [diff] [blame] | 230 | config RTC_DRV_RS5C372 |
| 231 | tristate "Ricoh RS5C372A/B" |
| 232 | depends on RTC_CLASS && I2C |
| 233 | help |
| 234 | If you say yes here you get support for the |
| 235 | Ricoh RS5C372A and RS5C372B RTC chips. |
| 236 | |
| 237 | This driver can also be built as a module. If so, the module |
| 238 | will be called rtc-rs5c372. |
| 239 | |
Ben Dooks | 1add678 | 2006-07-01 04:36:26 -0700 | [diff] [blame] | 240 | config RTC_DRV_S3C |
| 241 | tristate "Samsung S3C series SoC RTC" |
| 242 | depends on RTC_CLASS && ARCH_S3C2410 |
| 243 | help |
| 244 | RTC (Realtime Clock) driver for the clock inbuilt into the |
| 245 | Samsung S3C24XX series of SoCs. This can provide periodic |
| 246 | interrupt rates from 1Hz to 64Hz for user programs, and |
| 247 | wakeup from Alarm. |
| 248 | |
| 249 | The driver currently supports the common features on all the |
| 250 | S3C24XX range, such as the S3C2410, S3C2412, S3C2413, S3C2440 |
| 251 | and S3C2442. |
| 252 | |
| 253 | This driver can also be build as a module. If so, the module |
| 254 | will be called rtc-s3c. |
| 255 | |
Alessandro Zummo | 1d98af8 | 2006-03-27 01:16:47 -0800 | [diff] [blame] | 256 | config RTC_DRV_M48T86 |
| 257 | tristate "ST M48T86/Dallas DS12887" |
| 258 | depends on RTC_CLASS |
| 259 | help |
| 260 | If you say Y here you will get support for the |
| 261 | ST M48T86 and Dallas DS12887 RTC chips. |
| 262 | |
| 263 | This driver can also be built as a module. If so, the module |
| 264 | will be called rtc-m48t86. |
| 265 | |
Alessandro Zummo | fd507e2 | 2006-03-27 01:16:45 -0800 | [diff] [blame] | 266 | config RTC_DRV_EP93XX |
| 267 | tristate "Cirrus Logic EP93XX" |
| 268 | depends on RTC_CLASS && ARCH_EP93XX |
| 269 | help |
| 270 | If you say yes here you get support for the |
| 271 | RTC embedded in the Cirrus Logic EP93XX processors. |
| 272 | |
| 273 | This driver can also be built as a module. If so, the module |
| 274 | will be called rtc-ep93xx. |
| 275 | |
Richard Purdie | e842f1c | 2006-03-27 01:16:46 -0800 | [diff] [blame] | 276 | config RTC_DRV_SA1100 |
| 277 | tristate "SA11x0/PXA2xx" |
| 278 | depends on RTC_CLASS && (ARCH_SA1100 || ARCH_PXA) |
| 279 | help |
| 280 | If you say Y here you will get access to the real time clock |
| 281 | built into your SA11x0 or PXA2xx CPU. |
| 282 | |
| 283 | To compile this driver as a module, choose M here: the |
| 284 | module will be called rtc-sa1100. |
Alessandro Zummo | fd507e2 | 2006-03-27 01:16:45 -0800 | [diff] [blame] | 285 | |
Paul Mundt | 317a610 | 2006-09-27 17:13:19 +0900 | [diff] [blame] | 286 | config RTC_DRV_SH |
| 287 | tristate "SuperH On-Chip RTC" |
| 288 | depends on RTC_CLASS && SUPERH |
| 289 | help |
| 290 | Say Y here to enable support for the on-chip RTC found in |
| 291 | most SuperH processors. |
| 292 | |
| 293 | To compile this driver as a module, choose M here: the |
| 294 | module will be called rtc-sh. |
| 295 | |
Yoichi Yuasa | 8417eb7 | 2006-04-10 22:54:47 -0700 | [diff] [blame] | 296 | config RTC_DRV_VR41XX |
Alessandro Zummo | 3e16f6a | 2006-04-10 22:54:48 -0700 | [diff] [blame] | 297 | tristate "NEC VR41XX" |
Yoichi Yuasa | 8417eb7 | 2006-04-10 22:54:47 -0700 | [diff] [blame] | 298 | depends on RTC_CLASS && CPU_VR41XX |
Alessandro Zummo | 3e16f6a | 2006-04-10 22:54:48 -0700 | [diff] [blame] | 299 | help |
| 300 | If you say Y here you will get access to the real time clock |
| 301 | built into your NEC VR41XX CPU. |
| 302 | |
| 303 | To compile this driver as a module, choose M here: the |
| 304 | module will be called rtc-vr41xx. |
Yoichi Yuasa | 8417eb7 | 2006-04-10 22:54:47 -0700 | [diff] [blame] | 305 | |
Deepak Saxena | 8ae6e16 | 2006-06-25 05:47:38 -0700 | [diff] [blame] | 306 | config RTC_DRV_PL031 |
| 307 | tristate "ARM AMBA PL031 RTC" |
| 308 | depends on RTC_CLASS && ARM_AMBA |
| 309 | help |
| 310 | If you say Y here you will get access to ARM AMBA |
| 311 | PrimeCell PL031 UART found on certain ARM SOCs. |
| 312 | |
| 313 | To compile this driver as a module, choose M here: the |
| 314 | module will be called rtc-pl031. |
| 315 | |
Andrew Victor | 7fc39f6 | 2006-12-10 02:19:03 -0800 | [diff] [blame] | 316 | config RTC_DRV_AT91RM9200 |
Andrew Victor | 788b1fc | 2006-06-25 05:48:27 -0700 | [diff] [blame] | 317 | tristate "AT91RM9200" |
| 318 | depends on RTC_CLASS && ARCH_AT91RM9200 |
| 319 | help |
| 320 | Driver for the Atmel AT91RM9200's internal RTC (Realtime Clock). |
| 321 | |
Alessandro Zummo | a95579c | 2006-03-27 01:16:42 -0800 | [diff] [blame] | 322 | config RTC_DRV_TEST |
| 323 | tristate "Test driver/device" |
| 324 | depends on RTC_CLASS |
| 325 | help |
| 326 | If you say yes here you get support for the |
| 327 | RTC test driver. It's a software RTC which can be |
| 328 | used to test the RTC subsystem APIs. It gets |
| 329 | the time from the system clock. |
| 330 | You want this driver only if you are doing development |
| 331 | on the RTC subsystem. Please read the source code |
| 332 | for further details. |
| 333 | |
| 334 | This driver can also be built as a module. If so, the module |
| 335 | will be called rtc-test. |
| 336 | |
Raphael Assenat | 8e12ecc | 2006-06-25 05:48:23 -0700 | [diff] [blame] | 337 | config RTC_DRV_MAX6902 |
| 338 | tristate "Maxim 6902" |
| 339 | depends on RTC_CLASS && SPI |
| 340 | help |
| 341 | If you say yes here you will get support for the |
| 342 | Maxim MAX6902 spi RTC chip. |
| 343 | |
| 344 | This driver can also be built as a module. If so, the module |
| 345 | will be called rtc-max6902. |
| 346 | |
Raphael Assenat | 362600f | 2006-06-25 05:48:24 -0700 | [diff] [blame] | 347 | config RTC_DRV_V3020 |
| 348 | tristate "EM Microelectronic V3020" |
| 349 | depends on RTC_CLASS |
| 350 | help |
| 351 | If you say yes here you will get support for the |
| 352 | EM Microelectronic v3020 RTC chip. |
| 353 | |
| 354 | This driver can also be built as a module. If so, the module |
| 355 | will be called rtc-v3020. |
| 356 | |
Alessandro Zummo | 0c86edc | 2006-03-27 01:16:37 -0800 | [diff] [blame] | 357 | endmenu |