Skip to contentSkip to conversation

RTC subsystem, X1205 driver

RFC PATCH In review Alessandro Zummo 1 participant 1 message Dec 20, 2005 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

RFC PATCH 6/6 RTC subsystem, X1205 driver

This patch is a port of the existing x1205 driver under the new RTC subsystem.

It is actually under test within the NSLU2 project (http://www.nslu2-linux.org) and it is working quite well.

It is the first driver under this new subsystem and should be used as a guide to port other drivers.

Ideally, at some point in the future, all rtc drivers will reside under linux/rtc.

--

 drivers/rtc/Kconfig     |   10 
 drivers/rtc/Makefile    |    3 
 drivers/rtc/rtc-x1205.c |  736 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 749 insertions(+)
drivers/rtc/Kconfig +10 -0
@@ -55,4 +55,14 @@ config RTC_INTF_DEV
 comment "RTC drivers"
 	depends on RTC_CLASS
 
+config RTC_DRV_X1205
+	tristate "Xicor/Intersil X1205 RTC chip"
+	depends on RTC_CLASS && I2C
+	help
+	  If you say yes here you get support for the
+	  Xicor/Intersil X1205 RTC chip.
+
+	  This driver can also be built as a module. If so, the module
+	  will be called rtc-x1205.
+
 endmenu
drivers/rtc/Makefile +3 -0
@@ -9,3 +9,6 @@ rtc-core-objs			:= $(rtc-core-y)
 obj-$(CONFIG_RTC_INTF_SYSFS)	+= rtc-sysfs.o
 obj-$(CONFIG_RTC_INTF_PROC)	+= rtc-proc.o
 obj-$(CONFIG_RTC_INTF_DEV)	+= rtc-dev.o
+
+obj-$(CONFIG_RTC_DRV_X1205)	+= rtc-x1205.o
+
drivers/rtc/rtc-x1205.c new file +736 -0

736 lines not on this page · raw message