S3C24XX: RTC class driver for S3C24XX SoCs
Subsystems (2)
RFC 1/1 S3C24XX: RTC class driver for S3C24XX SoCs
The following patch adds the RTC class driver for the Samsung S3C24XX class of SoCs. It is update from drivers/char/s3c2410-rtc.c (which this patch does not remove).
There are two issues that I would like to resolve before finally submitting this patch:
1) The calling of rtc_update_irq(), should the count be initialised to 1 when the periodic interrupt is started
2) The original dirver is s3c2410-rtc, abut the new one is now named rtc-s3c24xx to fit in with the new drivers. This will mean tha the name of the module produced will change.
Is it ok to keep the s3c2410-rtc name, or will the rename be preferred?
drivers/rtc/Kconfig +12 -0
@@ -117,6 +117,18 @@ config RTC_DRV_RS5C372 This driver can also be built as a module. If so, the module will be called rtc-rs5c372. +config RTC_DRV_S3C24XX + tristate "Samsung S3C24XX SoC RTC" + depends on RTC_CLASS + help + RTC (Realtime Clock) driver for the clock inbuilt into the + Samsung S3C24XX series of SoCs. This can provide periodic + interrupt rates from 1Hz to 64Hz for user programs, and + wakeup from Alarm. + + This driver can also be build as a module. If so, the module + will be called rtc-s3c24xx. + config RTC_DRV_M48T86 tristate "ST M48T86/Dallas DS12887" depends on RTC_CLASS
drivers/rtc/Makefile +1 -0
@@ -16,6 +16,7 @@ obj-$(CONFIG_RTC_DRV_TEST) += rtc-test.o obj-$(CONFIG_RTC_DRV_DS1672) += rtc-ds1672.o obj-$(CONFIG_RTC_DRV_PCF8563) += rtc-pcf8563.o obj-$(CONFIG_RTC_DRV_RS5C372) += rtc-rs5c372.o +obj-$(CONFIG_RTC_DRV_S3C24XX) += rtc-s3c24xx.o obj-$(CONFIG_RTC_DRV_M48T86) += rtc-m48t86.o obj-$(CONFIG_RTC_DRV_EP93XX) += rtc-ep93xx.o obj-$(CONFIG_RTC_DRV_SA1100) += rtc-sa1100.o
drivers/rtc/rtc-s3c24xx.c +603 -0
603 lines not on this page · raw message