rtc: pcf2127: add support for pcf2127 watchdog functionality
RFC PATCH 1/1 rtc: pcf2127: add support for pcf2127 watchdog functionality
From: Sean Nyekjaer <[email protected]>
PCF2129 does not have watchdog functionality built-in so we are only allowing to enable watchdog for PCF2127.
Watchdog functionality is done with great inspiration from the rtc-ds1374 driver.
Signed-off-by Sean Nyekjaer <[email protected]>
---
- Still missing devicetre documentation
- Untested on real hardware :-/ hardware is ready in january
- Is a compile option and devicetree the right choice? or would it be fine with only devicetree option?
drivers/rtc/Kconfig | 7 ++ drivers/rtc/rtc-pcf2127.c | 171 +++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 177 insertions(+), 1 deletion(-)
drivers/rtc/Kconfig +7 -0
@@ -799,6 +799,13 @@ config RTC_DRV_PCF2127 This driver can also be built as a module. If so, the module will be called rtc-pcf2127. +config RTC_DRV_PCF2127_WDT + bool "NXP PCF2127 watchdog timer" + depends on RTC_DRV_PCF2127 + help + If you say Y here you will get support for the + watchdog timer in the NXP PCF2127 chip real-time clock chips. + config RTC_DRV_RV3029C2 tristate "Micro Crystal RV3029/3049" depends on RTC_I2C_AND_SPI
drivers/rtc/rtc-pcf2127.c +170 -1
207 lines not on this page · raw message
Signature · 11 lines
2.11.0 -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.