DS1286: new RTC driver
Subsystems (2)
Thomas Bogendoerfer
maintainerPATCH v2 1/1 DS1286: new RTC driver
This driver replaces the broken DS1286 driver in drivers/char and gives back RTC support for SGI IP22 and IP28 machines.
Signed-off-by Thomas Bogendoerfer <[email protected]>
---
Changes in v2:
- switch to bcd2bin/bin2bcd
- do kzalloc with sizeof(struct ds1286_priv)
- don't depend on SGI_HAS_DS1286
- use rtc_valid_tm() for tm validation
drivers/rtc/Kconfig | 5 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-ds1286.c | 413 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 419 insertions(+), 0 deletions(-)
drivers/rtc/Kconfig +5 -0
@@ -352,6 +352,11 @@ config RTC_DRV_DS1216 help If you say yes here you get support for the Dallas DS1216 RTC chips. +config RTC_DRV_DS1286 + tristate "Dallas DS1286" + help + If you say yes here you get support for the Dallas DS1286 RTC chips. + config RTC_DRV_DS1302 tristate "Dallas DS1302" depends on SH_SECUREEDGE5410
drivers/rtc/Makefile +1 -0
@@ -23,6 +23,7 @@ obj-$(CONFIG_RTC_DRV_AT91SAM9) += rtc-at91sam9.o obj-$(CONFIG_RTC_DRV_BFIN) += rtc-bfin.o obj-$(CONFIG_RTC_DRV_CMOS) += rtc-cmos.o obj-$(CONFIG_RTC_DRV_DS1216) += rtc-ds1216.o +obj-$(CONFIG_RTC_DRV_DS1286) += rtc-ds1286.o obj-$(CONFIG_RTC_DRV_DS1302) += rtc-ds1302.o obj-$(CONFIG_RTC_DRV_DS1305) += rtc-ds1305.o obj-$(CONFIG_RTC_DRV_DS1307) += rtc-ds1307.o
drivers/rtc/rtc-ds1286.c new file +413 -0
413 lines not on this page · raw message