RTC subsystem, x1205 driver
RFC PATCH 6/7 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.
Signed-off-by Alessandro Zummo <[email protected]>
--
drivers/rtc/Kconfig | 10 drivers/rtc/Makefile | 3 drivers/rtc/rtc-x1205.c | 727 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 740 insertions(+)
drivers/rtc/Kconfig +10 -0
@@ -55,4 +55,14 @@ 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
@@ -8,3 +8,6 @@ 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 +727 -0
727 lines not on this page · raw message