RTC: add Intersil ISL12022 RTC driver
PATCH v2 1/1 RTC: add Intersil ISL12022 RTC driver
From: Roman Fietze <[email protected]>
This patch is to add Intersil ISL12022 RTC driver,which derived from rtc-pcf8563.
Changes v1 -> v2:
(1)The isl12022->rtc cannot be NULL inside isl12022_remove, so remove 'if' check code. (2)To move up module init and exit macros.
(3)Be less verbose inside probe function, remove dev_info().
Signed-off-by Roman Fietze <[email protected]>
Signed-off-by Wan ZongShun <[email protected]>
--- drivers/rtc/Kconfig | 9 ++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-isl12022.c | 327 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 337 insertions(+), 0 deletions(-) create mode 100644 drivers/rtc/rtc-isl12022.c
drivers/rtc/Kconfig +9 -0
@@ -203,6 +203,15 @@ config RTC_DRV_ISL1208 This driver can also be built as a module. If so, the module will be called rtc-isl1208. +config RTC_DRV_ISL12022 + tristate "Intersil ISL12022" + help + If you say yes here you get support for the + Intersil ISL12022 RTC chip. + + This driver can also be built as a module. If so, the module + will be called rtc-isl12022. + config RTC_DRV_X1205 tristate "Xicor/Intersil X1205" help
drivers/rtc/Makefile +1 -0
@@ -45,6 +45,7 @@ obj-$(CONFIG_RTC_DRV_EP93XX) += rtc-ep93xx.o obj-$(CONFIG_RTC_DRV_FM3130) += rtc-fm3130.o obj-$(CONFIG_RTC_DRV_GENERIC) += rtc-generic.o obj-$(CONFIG_RTC_DRV_ISL1208) += rtc-isl1208.o +obj-$(CONFIG_RTC_DRV_ISL12022) += rtc-isl12022.o obj-$(CONFIG_RTC_DRV_M41T80) += rtc-m41t80.o obj-$(CONFIG_RTC_DRV_M41T94) += rtc-m41t94.o obj-$(CONFIG_RTC_DRV_M48T35) += rtc-m48t35.o
drivers/rtc/rtc-isl12022.c new file +327 -0
327 lines not on this page · raw message
Signature · 1 line
1.7.1