diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-08-27 13:59:05 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2009-09-17 03:47:13 -0400 |
commit | 35c86bf66d9d0ebc3f32f8c56251197b3921394e (patch) | |
tree | 937d483de3d3144a6958de7c77129a3aff1ecab0 /drivers/rtc/Kconfig | |
parent | 70fde5cbd421773f0b9d684933ecb441efe89c84 (diff) |
rtc: Add support for RTCs on Wolfson WM831x devices
The WM831x series of PMICs contain RTC functionality. The hardware
provides a 32 bit counter incrementing at 1Hz together with a per
tick interrupt and an alarm value. For simplicity the driver chooses
to define the epoch for the counter as the Unix epoch - if required
platform data can be used in future to customise this.
When powered on from a completely cold state the RTC reports that it
has not been configured - when this happens an error is returned
when attempting to read the RTC in order to avoid use of values we
know to be invalid.
The hardware also provides security features which mean that it can
ignore attempts to set the RTC time in certain circumstances, most
notably if the RTC is written to too often. These errors are detected
by verifying the written RTC value.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/rtc/Kconfig')
-rw-r--r-- | drivers/rtc/Kconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 81adbdbd5042..b136299a237e 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig | |||
@@ -518,6 +518,16 @@ config RTC_DRV_V3020 | |||
518 | This driver can also be built as a module. If so, the module | 518 | This driver can also be built as a module. If so, the module |
519 | will be called rtc-v3020. | 519 | will be called rtc-v3020. |
520 | 520 | ||
521 | config RTC_DRV_WM831X | ||
522 | tristate "Wolfson Microelectronics WM831x RTC" | ||
523 | depends on MFD_WM831X | ||
524 | help | ||
525 | If you say yes here you will get support for the RTC subsystem | ||
526 | of the Wolfson Microelectronics WM831X series PMICs. | ||
527 | |||
528 | This driver can also be built as a module. If so, the module | ||
529 | will be called "rtc-wm831x". | ||
530 | |||
521 | config RTC_DRV_WM8350 | 531 | config RTC_DRV_WM8350 |
522 | tristate "Wolfson Microelectronics WM8350 RTC" | 532 | tristate "Wolfson Microelectronics WM8350 RTC" |
523 | depends on MFD_WM8350 | 533 | depends on MFD_WM8350 |