Skip to contentSkip to conversation

M48T35: new RTC driver

PATCH Superseded Thomas Bogendoerfer 1 participant 1 message Aug 9, 2008

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Thomas Bogendoerfer

author maintainer
#0 lore raw

PATCH v3 1/1 M48T35: new RTC driver

This driver replaces the broken ip27-rtc driver in drivers/char and gives back RTC support for SGI IP27 machines.

---

Changes in v3:

- switch to bcd2bin/bin2bcd
- do kzalloc with sizeof(struct m48t35_priv)

Changes in v2:

- don't depend on SGI_IP27
- use rtc_valid_tm() for tm validation
- resource is now a physical address and is ioremapped now
- added kludge to workaround current ioc3 resource conflict

 drivers/rtc/Kconfig      |    9 ++
 drivers/rtc/Makefile     |    1 +
 drivers/rtc/rtc-m48t35.c |  237 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 247 insertions(+), 0 deletions(-)
drivers/rtc/Kconfig +9 -0
index 90ab738..2e5a578 100644
@@ -405,6 +405,15 @@ config RTC_DRV_M48T86
 	  This driver can also be built as a module. If so, the module
 	  will be called rtc-m48t86.
 
+config RTC_DRV_M48T35
+	tristate "ST M48T35"
+	help
+	  If you say Y here you will get support for the
+	  ST M48T35 RTC chip.
+
+	  This driver can also be built as a module, if so, the module
+	  will be called "rtc-m48t35".
+
 config RTC_DRV_M48T59
 	tristate "ST M48T59"
 	help
drivers/rtc/Makefile +1 -0
index 18622ef..7d10cc0 100644
@@ -36,6 +36,7 @@ obj-$(CONFIG_RTC_DRV_FM3130)	+= rtc-fm3130.o
 obj-$(CONFIG_RTC_DRV_ISL1208)	+= rtc-isl1208.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
 obj-$(CONFIG_RTC_DRV_M48T59)	+= rtc-m48t59.o
 obj-$(CONFIG_RTC_DRV_M48T86)	+= rtc-m48t86.o
 obj-$(CONFIG_RTC_DRV_MAX6900)	+= rtc-max6900.o
drivers/rtc/rtc-m48t35.c new file +237 -0

237 lines not on this page · raw message